KasmVNC/debian/Makefile.to_fakebuild_tar_package

41 lines
1.8 KiB
Makefile
Raw Normal View History

TARGET_OS := $(shell lsb_release -is | tr '[:upper:]' '[:lower:]')
TARGET_OS_CODENAME := $(shell lsb_release -cs | tr '[:upper:]' '[:lower:]')
2021-03-03 11:09:52 +01:00
TARBALL_DIR := builder/build
TARBALL := $(TARBALL_DIR)/kasmvnc.$(TARGET_OS)_$(TARGET_OS_CODENAME)$(BUILD_TAG).tar.gz
TAR_DATA := $(shell mktemp -d)
SRC := $(TAR_DATA)/usr/local
SRC_BIN := $(SRC)/bin
DST_MAN := $(DESTDIR)/usr/share/man/man1
2020-12-29 09:12:58 +01:00
install: unpack_tarball
echo "TAR_DATA: $(TAR_DATA)"
2020-12-29 08:47:16 +01:00
echo "installing files"
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1 \
2022-08-19 19:54:11 +02:00
$(DESTDIR)/usr/share/doc/kasmvncserver $(DESTDIR)/usr/lib \
$(DESTDIR)/usr/share/perl5 \
$(DESTDIR)/etc/kasmvnc
cp $(SRC_BIN)/Xvnc $(DESTDIR)/usr/bin/Xkasmvnc
cp $(SRC_BIN)/vncserver $(DESTDIR)/usr/bin/kasmvncserver
2022-08-19 19:54:11 +02:00
cp -r $(SRC_BIN)/KasmVNC $(DESTDIR)/usr/share/perl5/
cp $(SRC_BIN)/vncconfig $(DESTDIR)/usr/bin/kasmvncconfig
cp $(SRC_BIN)/kasmvncpasswd $(DESTDIR)/usr/bin/
2022-04-07 15:01:14 +02:00
cp $(SRC_BIN)/kasmxproxy $(DESTDIR)/usr/bin/
2022-08-19 19:54:11 +02:00
cp -r $(SRC)/lib/kasmvnc/ $(DESTDIR)/usr/lib/kasmvncserver
cp -r $(SRC)/share/doc/kasmvnc*/* $(DESTDIR)/usr/share/doc/kasmvncserver/
2023-03-31 09:32:25 +02:00
rsync -r --links --safe-links --exclude '.git*' --exclude po2js \
--exclude xgettext-html --exclude www/utils/ --exclude .eslintrc \
$(SRC)/share/kasmvnc $(DESTDIR)/usr/share
2022-08-19 19:54:11 +02:00
sed -e 's/^\([^#]\)/# \1/' $(SRC)/share/kasmvnc/kasmvnc_defaults.yaml > \
$(DESTDIR)/etc/kasmvnc/kasmvnc.yaml
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
2022-04-07 15:01:14 +02:00
cp $(SRC)/share/man/man1/kasmxproxy.1 $(DST_MAN)/kasmxproxy.1
2021-02-25 09:22:56 +01:00
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)