mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-23 14:29:06 +01:00
Deb: add build-tarball and build-deb commands WIP
This commit is contained in:
parent
5154f86b60
commit
702f817845
6
builder/build-deb
Executable file
6
builder/build-deb
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
dpkg-buildpackage -us -uc -b
|
||||
lintian ../*.deb
|
10
builder/build-tarball
Executable file
10
builder/build-tarball
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
docker pull ubuntu:18.04
|
||||
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
||||
mkdir -p builder/build
|
||||
docker run -v ${PWD}/builder/build:/build --rm kasmvncbuilder:18.04
|
8
builder/dockerfile.ubuntu1804.deb.build
Normal file
8
builder/dockerfile.ubuntu1804.deb.build
Normal file
@ -0,0 +1,8 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install vim build-essential devscripts equivs
|
||||
|
||||
COPY ./debian/control /tmp
|
||||
|
||||
RUN echo YYY | mk-build-deps --install /tmp/control
|
13
debian/Makefile.to_fakebuild_tar_package
vendored
13
debian/Makefile.to_fakebuild_tar_package
vendored
@ -1,8 +1,11 @@
|
||||
SRC := ../release/usr/local
|
||||
TARBALL := builder/build/kasmvnc.ubuntu_18.04.tar.gz
|
||||
TAR_DATA := $(shell mktemp -d)
|
||||
SRC := $(TAR_DATA)/usr/local
|
||||
SRC_BIN := $(SRC)/bin
|
||||
DST_MAN := $(DESTDIR)/usr/share/man/man1
|
||||
|
||||
install:
|
||||
install: unpack_tarball
|
||||
echo "TAR_DATA: $(TAR_DATA)"
|
||||
echo "installing files"
|
||||
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1 \
|
||||
$(DESTDIR)/usr/share/doc/kasmvncserver
|
||||
@ -18,3 +21,9 @@ install:
|
||||
cp $(SRC)/share/man/man1/vncserver.1 $(DST_MAN)/kasmvncserver.1
|
||||
cp $(SRC)/share/man/man1/vncpasswd.1 $(DST_MAN)/kasmvncpasswd.1
|
||||
cp $(SRC)/share/man/man1/vncconfig.1 $(DST_MAN)/kasmvncconfig.1
|
||||
|
||||
unpack_tarball:
|
||||
tar -xzf "$(TARBALL)" -C "$(TAR_DATA)"
|
||||
|
||||
clean:
|
||||
rm -rf $(TAR_DATA)
|
||||
|
Loading…
Reference in New Issue
Block a user