diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-07-02 22:34:59 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-07-02 22:34:59 +0200 |
commit | 35a429c4ca1923b3e87531f34ca64133d4a82efc (patch) | |
tree | d9bfbef82fe30057c01e882b885ad746f263a409 /debian/rules | |
parent | 630f398bd23fbfe4e927bf042a7afd3a44f47e08 (diff) | |
download | vyos-1x-35a429c4ca1923b3e87531f34ca64133d4a82efc.tar.gz vyos-1x-35a429c4ca1923b3e87531f34ca64133d4a82efc.zip |
Add Debian packaging and LGPL license.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..4ccc23e86 --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DIR := debian/vyos-smoketest +VYOS_SBIN_DIR := usr/sbin/ +VYOS_BIN_DIR := usr/bin/ +VYOS_LIBEXEC_DIR := usr/libexec/vyos +VYOS_DATA_DIR := /usr/share/vyos +VYOS_CFG_TMPL_DIR := /opt/vyatta/share/vyatta-cfg/templates +VYOS_OP_TMPL_DIR := /opt/vyatta/share/vyatta-op/templates + +MIGRATION_SCRIPTS_DIR := /opt/vyatta/etc/config-migrate/migrate/ + +SBINDIR := $(DIR)/usr/sbin + +%: + dh $@ --with python3, --with quilt + +override_dh_auto_build: + make all + +override_dh_auto_install: + # Install smoke test scripts + mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke/ + cp -r scripts/* $(DIR)/$(VYOS_LIBEXEC_DIR)/tests/smoke + + # Install system programs + mkdir -p $(SBINDIR) + cp -r bin/* $(SBINDIR) |