diff options
author | Danilo Godec <danilo.godec@agenda.si> | 2011-08-18 16:13:53 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-19 06:47:28 +0000 |
commit | af40effd6bad1e59b53a730a005b38068989f270 (patch) | |
tree | 2462b6f4719000ea42f255b95301defecc4d9522 /testing/openswan-grsec | |
parent | 752a8a05f3a4303a0c3d8b9b30e369aa1f60e71e (diff) | |
download | aports-af40effd6bad1e59b53a730a005b38068989f270.tar.bz2 aports-af40effd6bad1e59b53a730a005b38068989f270.tar.xz |
New aport: openswan-grsec - kernel module for KLIPS and MAST protostack.
Diffstat (limited to 'testing/openswan-grsec')
-rw-r--r-- | testing/openswan-grsec/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/openswan-grsec/APKBUILD b/testing/openswan-grsec/APKBUILD new file mode 100644 index 0000000000..79539ea3bc --- /dev/null +++ b/testing/openswan-grsec/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Danilo Godec <danilo.godec@agenda.si> +# Maintainer: +_flavor=grsec +_realname=openswan +pkgname="$_realname-$_flavor" +pkgver=2.6.35 +pkgrel=0 +pkgdesc="IPsec Implementation which Allows Building of VPNs" +url="http://www.openswan.org/" +arch="all" +license="GPL" +depends="" +depends_dev="gmp-dev bison flex linux-grsec-dev" +makedepends="$depends_dev" +install="" +source="http://www.openswan.org/download/$_realname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_realname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + # make INC_RCDEFAULT=/etc/init.d INC_USRLOCAL=/usr programs || return 1 + export GCC_SPECS=/usr/share/gcc/hardenednopie.specs + export INSTALL_MOD_PATH="$pkgdir" + export INSTALL_MOD_DIR=misc + make KERNELSRC=/lib/modules/`uname -r`/build module || return 1 +} + +package() { + cd "$_builddir" + make INC_RCDEFAULT=/etc/init.d INC_USRLOCAL=/usr DESTDIR="$pkgdir" minstall +} + +md5sums="7909a251fbbb807914545b7f42437013 openswan-2.6.35.tar.gz" |