Deb: add build-tarball and build-deb commands WIP

This commit is contained in:
Dmitry Maksyoma 2021-01-07 00:36:52 +13:00
parent 5154f86b60
commit 702f817845
4 changed files with 35 additions and 2 deletions

6
builder/build-deb Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
dpkg-buildpackage -us -uc -b
lintian ../*.deb

10
builder/build-tarball Executable file
View 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

View 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

View File

@ -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)