diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-30 19:48:28 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-07-30 19:48:28 +0200 |
| commit | 8f0ad69e31038c438d7f28743d6fc150b7950247 (patch) | |
| tree | 71bf04a92023bda1c55272de72b8a88e536c15ff /debian/rules | |
| parent | a551fa45573ef57858904773d4bcc99dbf553b19 (diff) | |
| download | vyos-1x-8f0ad69e31038c438d7f28743d6fc150b7950247.tar.gz vyos-1x-8f0ad69e31038c438d7f28743d6fc150b7950247.zip | |
T7671: move AWS GLB CLI configuration to a separate package
Since AWS Gateway Load Balancer is specific to the AWS platform, its CLI and
binary dependencies don’t need to be included in generic images.
This commit removes the AWS GLB CLI definitions from all images and introduces
a new vyos-1x-aws package to provide the necessary CLI configuration and binary
dependencies.
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 |
