diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-31 20:38:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 20:38:25 +0200 |
| commit | bc3ca477a0d92ae2fa5f6f3e0d756243a5aaea27 (patch) | |
| tree | cbdc58bd09307d5cc9110dd826fd3e896eb781f5 /debian/rules | |
| parent | 49f9ec8f637525c79b3b54a747bae33d94f390bd (diff) | |
| parent | 8f0ad69e31038c438d7f28743d6fc150b7950247 (diff) | |
| download | vyos-1x-bc3ca477a0d92ae2fa5f6f3e0d756243a5aaea27.tar.gz vyos-1x-bc3ca477a0d92ae2fa5f6f3e0d756243a5aaea27.zip | |
Merge pull request #4634 from c-po/aws-glb-package
T7671: move AWS GLB CLI configuration to a separate package
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index f579ffec9..7341bb15a 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,7 @@ #!/usr/bin/make -f DIR := debian/tmp +DIR_AWS := $(DIR)/vyos-1x-aws VYOS_SBIN_DIR := usr/sbin VYOS_BIN_DIR := usr/bin VYOS_LIBEXEC_DIR := usr/libexec/vyos @@ -36,6 +37,9 @@ override_dh_auto_install: cd python; python3 setup.py install --install-layout=deb --root ../$(DIR); cd .. + # Remove all __pycache__ directories before installing + find . -type d -name '__pycache__' -exec rm -rf {} + + # Install scripts mkdir -p $(DIR)/$(VYOS_SBIN_DIR) mkdir -p $(DIR)/$(VYOS_BIN_DIR) @@ -143,6 +147,21 @@ override_dh_auto_install: mkdir -p $(DIR)/usr/lib/udev cp src/helpers/vyos_net_name $(DIR)/usr/lib/udev + # vyos-1x-aws package + # Move some files to dedicated DEB packages + # + mkdir -p $(DIR_AWS)/lib/systemd/system + mv $(DIR)/lib/systemd/system/aws-gwlbtun.service $(DIR_AWS)/lib/systemd/system + + mkdir -p $(DIR_AWS)/opt/vyatta/share/vyatta-cfg/templates/service + mv $(DIR)/opt/vyatta/share/vyatta-cfg/templates/service/aws $(DIR_AWS)/opt/vyatta/share/vyatta-cfg/templates/service + + mkdir -p $(DIR_AWS)/usr/libexec/vyos/conf_mode + mv $(DIR)/usr/libexec/vyos/conf_mode/service_aws_glb.py $(DIR_AWS)/usr/libexec/vyos/conf_mode + + mkdir -p $(DIR_AWS)/usr/share/vyos/templates + mv $(DIR)/usr/share/vyos/templates/aws/ $(DIR_AWS)/usr/share/vyos/templates + override_dh_installsystemd: dh_installsystemd -pvyos-1x --name vyos-router vyos-router.service dh_installsystemd -pvyos-1x --name vyos vyos.target |
