aboutsummaryrefslogtreecommitdiffstats
path: root/main/enhanceio-grsec
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-05-09 06:38:58 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-05-09 06:38:58 +0000
commite6efea9f1e7cab6e51396e35faaccac9c7fbb56f (patch)
treed0f6c5a5280c72ccd7c197d94dc57dc8865c9d58 /main/enhanceio-grsec
parent70df51d19af645c3e74c9225529c89a19d0d1ae2 (diff)
downloadaports-e6efea9f1e7cab6e51396e35faaccac9c7fbb56f.tar.bz2
aports-e6efea9f1e7cab6e51396e35faaccac9c7fbb56f.tar.xz
main/enhanceio-grsec: new aport
Diffstat (limited to 'main/enhanceio-grsec')
-rw-r--r--main/enhanceio-grsec/APKBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/main/enhanceio-grsec/APKBUILD b/main/enhanceio-grsec/APKBUILD
new file mode 100644
index 0000000000..16b1ca8f3d
--- /dev/null
+++ b/main/enhanceio-grsec/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+_flavor=${FLAVOR:-grsec}
+_kpkg=linux-$_flavor
+_realname=enhanceio
+_name=$_realname-$_flavor
+
+_kver=3.14.2
+_kpkgrel=0
+
+_realver=0.0_git20140507
+_mypkgrel=0
+
+# source the kernel version
+if [ -f ../linux-$_flavor/APKBUILD ]; then
+ . ../linux-$_flavor/APKBUILD
+ [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel"
+fi
+
+_kernelver=$_kver-r$_kpkgrel
+_abi_release=${_kver}-${_kpkgrel}-${_flavor}
+
+pkgname=$_name
+pkgver=$_kver
+pkgrel=$(($_kpkgrel + $_mypkgrel))
+pkgdesc="enhanceio (linux-grsec modules)"
+url="http://github.com/stec-inc/EnhanceIO"
+arch="all"
+license="GPL"
+depends="linux-${_flavor}=${_kernelver}"
+makedepends="linux-${_flavor}-dev=${_kernelver} pkgconfig"
+install=
+install_if="linux-$_flavor=$_kernelver enhanceio-tools"
+source="saveas-https://github.com/kcgthb/EnhanceIO/archive/master.zip/enhanceio-tools-${pkgver}.zip"
+subpackages=""
+
+_builddir="$srcdir/EnhanceIO-master/Driver/enhanceio"
+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"
+ export GCC_SPECS=hardenednopie.specs
+ make -C /usr/src/linux-headers-${_abi_release} M="$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ make -C /usr/src/linux-headers-${_abi_release} M="$_builddir" INSTALL_MOD_PATH="$pkgdir" modules_install
+}
+
+md5sums="2f7dd2117268192980d7442ca5c3664d enhanceio-tools-3.14.2.zip"
+sha256sums="97e2916e1eb5916e08a9d1a2e1f62e51f8a9500fd033e1fba999a4b5f9b3e847 enhanceio-tools-3.14.2.zip"
+sha512sums="0df43b96069bd57344de56723b3b5c6fcdcb9608bda4e5454898a41362b5b942574b826528c17f702fd915596f24d65387b17245d3c2a7af01c2ad8049a425fa enhanceio-tools-3.14.2.zip"