diff options
author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-05-22 05:12:18 +0000 |
---|---|---|
committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-05-22 05:12:18 +0000 |
commit | aa0f5b38aec14428b4b80e06f90ff781f8bca5f1 (patch) | |
tree | 95f3d0c8cb0d59d88900dbbd72110d7ab6e15b2a /packaging/ipkg | |
parent | 7c383bc22113b23718be89fe18eeb251942d7356 (diff) | |
download | vyos-strongswan-aa0f5b38aec14428b4b80e06f90ff781f8bca5f1.tar.gz vyos-strongswan-aa0f5b38aec14428b4b80e06f90ff781f8bca5f1.zip |
Import initial strongswan 2.7.0 version into SVN.
Diffstat (limited to 'packaging/ipkg')
-rw-r--r-- | packaging/ipkg/conffiles | 1 | ||||
-rw-r--r-- | packaging/ipkg/control-freeswan-module.dist | 8 | ||||
-rw-r--r-- | packaging/ipkg/control-freeswan.dist | 8 | ||||
-rw-r--r-- | packaging/ipkg/debian-binary | 1 | ||||
-rwxr-xr-x | packaging/ipkg/generate-ipkg | 43 |
5 files changed, 61 insertions, 0 deletions
diff --git a/packaging/ipkg/conffiles b/packaging/ipkg/conffiles new file mode 100644 index 000000000..ff0851c29 --- /dev/null +++ b/packaging/ipkg/conffiles @@ -0,0 +1 @@ +/etc/ipsec.conf diff --git a/packaging/ipkg/control-freeswan-module.dist b/packaging/ipkg/control-freeswan-module.dist new file mode 100644 index 000000000..aec4091f1 --- /dev/null +++ b/packaging/ipkg/control-freeswan-module.dist @@ -0,0 +1,8 @@ +Package: freeswan-module +Priority: optional +Section: Communications +Version: VERSION +Architecture: ARCH +Maintainer: FreeS/WAN <users@lists.freeswan.org> +Depends: freeswan +Description: FreeS/WAN ipsec.o binary module diff --git a/packaging/ipkg/control-freeswan.dist b/packaging/ipkg/control-freeswan.dist new file mode 100644 index 000000000..376647e6f --- /dev/null +++ b/packaging/ipkg/control-freeswan.dist @@ -0,0 +1,8 @@ +Package: freeswan +Priority: optional +Section: Communications +Version: VERSION +Architecture: ARCH +Maintainer: FreeS/WAN <users@lists.freeswan.org> +Depends: gawk libgmp +Description: FreeS/WAN daemons and userland tools diff --git a/packaging/ipkg/debian-binary b/packaging/ipkg/debian-binary new file mode 100644 index 000000000..cd5ac039d --- /dev/null +++ b/packaging/ipkg/debian-binary @@ -0,0 +1 @@ +2.0 diff --git a/packaging/ipkg/generate-ipkg b/packaging/ipkg/generate-ipkg new file mode 100755 index 000000000..5a288f34e --- /dev/null +++ b/packaging/ipkg/generate-ipkg @@ -0,0 +1,43 @@ +#!/bin/sh + +# This script expects the following variables to be in the environment: +# DESTDIR +# FREESWANSRCDIR +# ARCH +# IPSECVERSION + +#set -e + +cd $DESTDIR +rm -f *.tar.gz + +mkdir -p $FREESWANSRCDIR/packaging/ipkg/ipkg +cp $FREESWANSRCDIR/packaging/ipkg/debian-binary . +cp $FREESWANSRCDIR/packaging/ipkg/conffiles . + +cat $FREESWANSRCDIR/packaging/ipkg/control-freeswan.dist | sed s/VERSION/$IPSECVERSION/ |sed s/ARCH/$ARCH/ > $FREESWANSRCDIR/packaging/ipkg/control-freeswan + +cp $FREESWANSRCDIR/packaging/ipkg/control-freeswan control + +tar -czf ./control.tar.gz ./conffiles ./control --owner=root --group=root + +tar -czf ./data.tar.gz ./* --owner=root --group=root --exclude=control.tar.gz --exclude=conffiles --exclude=control --exclude=debian-binary + +tar -czf $FREESWANSRCDIR/packaging/ipkg/ipkg/freeswan-utils-$IPSECVERSION.arm.ipk ./debian-binary ./control.tar.gz ./data.tar.gz --owner=root --group=root +mkdir -p $FREESWANSRCDIR/packaging/ipkg/kernel-module +cd $FREESWANSRCDIR/packaging/ipkg/kernel-module + +rm -f *.tar.gz +cp $FREESWANSRCDIR/packaging/ipkg/debian-binary . + +cat $FREESWANSRCDIR/packaging/ipkg/control-freeswan-module.dist | sed s/VERSION/$IPSECVERSION/ |sed s/ARCH/$ARCH/ > $FREESWANSRCDIR/packaging/ipkg/control-freeswan-module + +cp $FREESWANSRCDIR/packaging/ipkg/control-freeswan-module control + +tar czf ./control.tar.gz ./control --owner=root --group=root + +tar czf ./data.tar.gz * --owner=root --group=root --exclude=control.tar.gz --exclude=control --exclude=debian-binary + +tar czf $FREESWANSRCDIR/packaging/ipkg/ipkg/freeswan-module-$IPSECVERSION.arm.ipk ./debian-binary ./control.tar.gz ./data.tar.gz --owner=root --group=root +rm -rf $FREESWANSRCDIR/packaging/ipkg/ipkg/binaries/* +rm -rf $FREESWANSRCDIR/packaging/ipkg/ipkg/kernel-module/* |