# Contributor: William Pitcock # Maintainer: William Pitcock _flavor=${FLAVOR:-grsec} _kpkg=linux-$_flavor _realname=enhanceio _name=$_realname-$_flavor _kver=3.14.4 _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.4.zip" sha256sums="97e2916e1eb5916e08a9d1a2e1f62e51f8a9500fd033e1fba999a4b5f9b3e847 enhanceio-tools-3.14.4.zip" sha512sums="0df43b96069bd57344de56723b3b5c6fcdcb9608bda4e5454898a41362b5b942574b826528c17f702fd915596f24d65387b17245d3c2a7af01c2ad8049a425fa enhanceio-tools-3.14.4.zip"