blob: 1c2a59930ba2b7ec27b6acd1aac82e3cab63979d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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.15
_kpkgrel=1
_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.15.zip"
sha256sums="97e2916e1eb5916e08a9d1a2e1f62e51f8a9500fd033e1fba999a4b5f9b3e847 enhanceio-tools-3.14.15.zip"
sha512sums="0df43b96069bd57344de56723b3b5c6fcdcb9608bda4e5454898a41362b5b942574b826528c17f702fd915596f24d65387b17245d3c2a7af01c2ad8049a425fa enhanceio-tools-3.14.15.zip"
|