diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/openswan-grsec/APKBUILD | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/testing/openswan-grsec/APKBUILD b/testing/openswan-grsec/APKBUILD deleted file mode 100644 index f229bf1ef..000000000 --- a/testing/openswan-grsec/APKBUILD +++ /dev/null @@ -1,63 +0,0 @@ -# Contributor: Danilo Godec <danilo.godec@agenda.si> -# Maintainer: -_flavor=grsec - -# source the kernel version -if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then - . ../../main/linux-${_flavor}/APKBUILD -fi - -_kernelver="$pkgver-r$pkgrel" -_abi_release=${pkgver}-${_flavor} -_kpkgrel=$pkgrel -_realname=openswan -# version of openswan module -_realver=2.6.37 -# _mypkgrel can be reset to 0 when kernel pkgver increases -_mypkgrel=0 - -pkgname="$_realname-$_flavor" -pkgver=$pkgver -pkgrel=$(( $_kpkgrel + $_mypkgrel )) -pkgdesc="IPsec Implementation which Allows Building of VPNs" -url="http://www.openswan.org/" -arch="" -license="GPL" -depends="" -depends_dev="gmp-dev bison flex linux-$_flavor-dev=$_kernelver" -makedepends="$depends_dev bash" -install="" -subpackages="" -source="http://www.openswan.org/download/$_realname-$_realver.tar.gz" - -_ksrc=/usr/src/linux-headers-${_abi_release} - -_builddir="$srcdir"/$_realname-$_realver -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="$_ksrc" module || return 1 -} - -package() { - cd "$_builddir" - make INC_RCDEFAULT=/etc/init.d \ - INC_USRLOCAL=/usr \ - KERNELSRC="$_ksrc" \ - DESTDIR="$pkgdir" minstall -} - -md5sums="e5c948555088df06cfadcfbe6c13adfe openswan-2.6.37.tar.gz" |