diff options
Diffstat (limited to 'scripts/package-build/strongswan')
7 files changed, 13 insertions, 17 deletions
diff --git a/scripts/package-build/strongswan/.gitignore b/scripts/package-build/strongswan/.gitignore index ec612740..e4c36e8f 100644 --- a/scripts/package-build/strongswan/.gitignore +++ b/scripts/package-build/strongswan/.gitignore @@ -1,6 +1 @@ -strongswan/ -*.buildinfo -*.build -*.changes -*.deb -*.dsc +/strongswan/ diff --git a/scripts/package-build/strongswan/build-vici.sh b/scripts/package-build/strongswan/build-vici.sh index 5ad0ee80..75b180f0 100755 --- a/scripts/package-build/strongswan/build-vici.sh +++ b/scripts/package-build/strongswan/build-vici.sh @@ -4,7 +4,7 @@ set -e SRC="strongswan/src/libcharon/plugins/vici/python" if [ ! -d ${SRC} ]; then - echo "Source directory does not exists, please 'git clone'" + echo "Source directory does not exist, please 'git clone'" exit 1 fi @@ -28,30 +28,31 @@ Depends: \${misc:Depends}, \${python3:Depends} Description: Native Python interface for strongSwan's VICI protocol EOF - # Create rules file -echo "I: create $SRC/rules" +echo "I: create $SRC/debian/rules" cat <<EOF > debian/rules #!/usr/bin/make -f %: dh \$@ --with python3 EOF -# Make the rules file executable chmod +x debian/rules echo '10' > debian/compat +# Add the 'install' file to copy the vici package to the correct directory +echo "I: create $SRC/debian/install" +cat <<EOF > debian/install +vici /usr/lib/python3/dist-packages/ +EOF + # Copy changelog cp ../../../../../debian/changelog debian/ - -ls -la -pwd - - +# Build the package echo "I: Build Debian Package" dpkg-buildpackage -uc -us -tc -b -d +# Copy the resulting .deb packages echo "I: copy packages" -cp ../*.deb ../../../../../../ +cp ../*.deb ../../../../../../ diff --git a/scripts/package-build/strongswan/package.toml b/scripts/package-build/strongswan/package.toml index 8cedd4ac..a5722062 100644 --- a/scripts/package-build/strongswan/package.toml +++ b/scripts/package-build/strongswan/package.toml @@ -13,7 +13,7 @@ dpkg-buildpackage -uc -us -tc -b -d cd ..; ./build-vici.sh """ -[packages.dependencies] +[dependencies] packages = [ "bison", "bzip2", diff --git a/scripts/package-build/strongswan/patches/0001-charon-add-optional-source-and-remote-overrides-for-.patch b/scripts/package-build/strongswan/patches/strongswan/0001-charon-add-optional-source-and-remote-overrides-for-.patch index ceb47350..ceb47350 100644 --- a/scripts/package-build/strongswan/patches/0001-charon-add-optional-source-and-remote-overrides-for-.patch +++ b/scripts/package-build/strongswan/patches/strongswan/0001-charon-add-optional-source-and-remote-overrides-for-.patch diff --git a/scripts/package-build/strongswan/patches/0002-vici-send-certificates-for-ike-sa-events.patch b/scripts/package-build/strongswan/patches/strongswan/0002-vici-send-certificates-for-ike-sa-events.patch index 13e657e9..13e657e9 100644 --- a/scripts/package-build/strongswan/patches/0002-vici-send-certificates-for-ike-sa-events.patch +++ b/scripts/package-build/strongswan/patches/strongswan/0002-vici-send-certificates-for-ike-sa-events.patch diff --git a/scripts/package-build/strongswan/patches/0003-vici-add-support-for-individual-sa-state-changes.patch b/scripts/package-build/strongswan/patches/strongswan/0003-vici-add-support-for-individual-sa-state-changes.patch index 45aadc72..45aadc72 100644 --- a/scripts/package-build/strongswan/patches/0003-vici-add-support-for-individual-sa-state-changes.patch +++ b/scripts/package-build/strongswan/patches/strongswan/0003-vici-add-support-for-individual-sa-state-changes.patch diff --git a/scripts/package-build/strongswan/patches/0004-VyOS-disable-options-enabled-by-Debian-that-are-unus.patch b/scripts/package-build/strongswan/patches/strongswan/0004-VyOS-disable-options-enabled-by-Debian-that-are-unus.patch index 57a622e8..57a622e8 100644 --- a/scripts/package-build/strongswan/patches/0004-VyOS-disable-options-enabled-by-Debian-that-are-unus.patch +++ b/scripts/package-build/strongswan/patches/strongswan/0004-VyOS-disable-options-enabled-by-Debian-that-are-unus.patch |