2021-01-19 10:44:32 +01:00
|
|
|
TARGET_OS := $(shell lsb_release -is | tr '[:upper:]' '[:lower:]')
|
2021-02-05 11:49:47 +01:00
|
|
|
TARGET_OS_CODENAME := $(shell lsb_release -cs | tr '[:upper:]' '[:lower:]')
|
2021-03-03 11:09:52 +01:00
|
|
|
TARBALL_DIR := builder/build
|
2021-02-05 11:49:47 +01:00
|
|
|
TARBALL := $(TARBALL_DIR)/kasmvnc.$(TARGET_OS)_$(TARGET_OS_CODENAME).tar.gz
|
2021-01-06 12:36:52 +01:00
|
|
|
TAR_DATA := $(shell mktemp -d)
|
|
|
|
SRC := $(TAR_DATA)/usr/local
|
2020-12-29 09:32:31 +01:00
|
|
|
SRC_BIN := $(SRC)/bin
|
|
|
|
DST_MAN := $(DESTDIR)/usr/share/man/man1
|
2020-12-29 09:12:58 +01:00
|
|
|
|
2021-01-06 12:36:52 +01:00
|
|
|
install: unpack_tarball
|
|
|
|
echo "TAR_DATA: $(TAR_DATA)"
|
2020-12-29 08:47:16 +01:00
|
|
|
echo "installing files"
|
2020-12-29 09:32:31 +01:00
|
|
|
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1 \
|
|
|
|
$(DESTDIR)/usr/share/doc/kasmvncserver
|
2021-02-24 10:53:43 +01:00
|
|
|
cp $(SRC_BIN)/Xvnc $(DESTDIR)/usr/bin/Xkasmvnc
|
|
|
|
cp $(SRC_BIN)/vncserver $(DESTDIR)/usr/bin/kasmvncserver
|
|
|
|
cp $(SRC_BIN)/vncconfig $(DESTDIR)/usr/bin/kasmvncconfig
|
|
|
|
cp $(SRC_BIN)/kasmvncpasswd $(DESTDIR)/usr/bin/
|
2020-12-29 09:32:31 +01:00
|
|
|
cp -r $(SRC)/share/doc/kasmvnc*/* $(DESTDIR)/usr/share/doc/kasmvncserver/
|
2021-01-03 11:29:04 +01:00
|
|
|
rsync -r --exclude '.git*' --exclude po2js --exclude xgettext-html \
|
2021-01-21 11:35:56 +01:00
|
|
|
--exclude www/utils/ --exclude .eslintrc \
|
2021-01-03 11:29:04 +01:00
|
|
|
$(SRC)/share/kasmvnc $(DESTDIR)/usr/share
|
2021-02-25 09:22:56 +01:00
|
|
|
cp $(SRC)/man/man1/Xvnc.1 $(DESTDIR)/usr/share/man/man1/Xkasmvnc.1
|
|
|
|
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
|
2021-01-06 12:36:52 +01:00
|
|
|
|
|
|
|
unpack_tarball:
|
|
|
|
tar -xzf "$(TARBALL)" -C "$(TAR_DATA)"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(TAR_DATA)
|