diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-02-22 12:18:36 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-02-22 12:18:36 +0000 |
commit | 3d5683dc57fd84fb689a4b788818022b514713e4 (patch) | |
tree | 7988e122bea72013d7c2d149130ac3cf10526b13 /testing/open-iscsi-grsec/APKBUILD | |
parent | e558ed22f63a6cc58506924726f2dd557898c63a (diff) | |
download | aports-3d5683dc57fd84fb689a4b788818022b514713e4.tar.bz2 aports-3d5683dc57fd84fb689a4b788818022b514713e4.tar.xz |
testing/open-iscsi-grsec: new aport
Diffstat (limited to 'testing/open-iscsi-grsec/APKBUILD')
-rw-r--r-- | testing/open-iscsi-grsec/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/open-iscsi-grsec/APKBUILD b/testing/open-iscsi-grsec/APKBUILD new file mode 100644 index 000000000..09b3091d0 --- /dev/null +++ b/testing/open-iscsi-grsec/APKBUILD @@ -0,0 +1,55 @@ +# Maintainer: Leonardo Arena <rnalrd@gmail.com> + +_flavor=grsec +_realname=open-iscsi +_realver=2.0-871 +# source the kernel version +if [ -f ../../main/linux-$_flavor/APKBUILD ]; then + . ../../main/linux-$_flavor/APKBUILD +fi +_kver=$pkgver +_kernelver=$pkgver-r$pkgrel +_abi_release=$pkgver-${_flavor} +_kpkgrel=$pkgrel +_ksrc=/usr/src/linux-headers-${_abi_release} + +_iscsiver=2.0-871 + +pkgname=${_realname}-${_flavor} +pkgver=$_kver +_mypkgrel=0 +pkgrel=$(($_kpkgrel + $_mypkgrel)) +pkgdesc="$_flavor kernel modules for open-iscsi $_iscsiver" +url="http://www.open-iscsi.org" +license="GPL-2" +depends="linux-${_flavor}=${_kernelver}" +install= +makedepends="linux-${_flavor}-dev=${_kernelver}" +subpackages= +source="http://www.open-iscsi.org/bits/$_realname-$_realver.tar.gz + Makefile.kernel.patch + CVE-2009-1297.patch + open-iscsi-2.0.871-makefile-cleanup.patch" + +prepare() { + cd "$srcdir"/$_realname-$_realver + patch -p0 < ../../CVE-2009-1297.patch || return 1 + patch -p1 < ../../open-iscsi-2.0.871-makefile-cleanup.patch || return 1 + patch -p2 < ../../Makefile.kernel.patch || return 1 +} + +build() { + cd "$srcdir"/$_realname-$_realver + unset ARCH + make KSRC="$_ksrc" kernel || return 1 +} + +package() { + cd "$srcdir"/$_realname-$_realver + make KSRC="$_ksrc" INSTALL_MOD_PATH="$pkgdir" install_kernel || return +} + +md5sums="0c403e8c9ad41607571ba0e6e8ff196e open-iscsi-2.0-871.tar.gz +c5289f800ceebf59319fea284d476cdf Makefile.kernel.patch +d1584790b4e12f087e60089880b53d2b CVE-2009-1297.patch +734300d7b7590dc9ae9b2fb7f5b51bf0 open-iscsi-2.0.871-makefile-cleanup.patch" |