diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-13 08:19:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-13 08:19:47 +0000 |
commit | 648efa9391477f923e5b63c3e4ddb8f309fa3d62 (patch) | |
tree | a7ccb5f3b4a528ef779844fc9bc9765720c39714 /unmaintained/wanpipe-grsec/APKBUILD | |
parent | 0e341f3548afb041d656c2073a27d80479a86834 (diff) | |
download | aports-648efa9391477f923e5b63c3e4ddb8f309fa3d62.tar.bz2 aports-648efa9391477f923e5b63c3e4ddb8f309fa3d62.tar.xz |
unmaintained/wanpipe-grsec: moved from testing
Diffstat (limited to 'unmaintained/wanpipe-grsec/APKBUILD')
-rw-r--r-- | unmaintained/wanpipe-grsec/APKBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/unmaintained/wanpipe-grsec/APKBUILD b/unmaintained/wanpipe-grsec/APKBUILD new file mode 100644 index 0000000000..64ba35b778 --- /dev/null +++ b/unmaintained/wanpipe-grsec/APKBUILD @@ -0,0 +1,69 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_flavor=${FLAVOR:-grsec} +_realname=wanpipe +_name=$_realname-$_flavor + +_kpkg=linux-$_flavor +_kver=3.9.5 +_kpkgrel=1 + +# source the kernel version +if [ -f ../../main/linux-$_flavor/APKBUILD ]; then + . ../../main/linux-$_flavor/APKBUILD + pkgname=$_name + [ "$_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 +_realver=7.0.0 +_mypkgrel=0 +pkgrel=$(($_kpkgrel + $_mypkgrel)) +pkgdesc="Sangoma Wanpipe drivers for $_flavor kernel" +url="http://wiki.sangoma.com/wanpipe-linux-drivers" +arch="" +license="GPL" +depends="linux-${_flavor}=${_kernelver}" +makedepends="linux-${_flavor}-dev=${_kernelver} bison libtool flex bash + dahdi-linux-dev autoconf" +install= +install_if="linux-$_flavor=$_kernelver $_realname" +subpackages= +source="ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-$_realver.tgz" + +# override kernel's prepare() +prepare() { + cd "$srcdir/$_realname-$_realver" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$srcdir/$_realname-$_realver" + export GCC_SPECS=/usr/share/gcc/hardenednopie.specs + + make CC="${CC:-gcc}" \ + KVER=$_abi_release \ + DAHDI_DIR=/usr/src/dahdi-headers-$_abi_release \ + all_kmod_dahdi || return 1 +} + +package() { + cd "$srcdir/$_realname-$_realver" + make CC="${CC:-gcc}" \ + KVER=$_abi_release \ + DAHDI_DIR=/usr/src/dahdi-headers-$_abi_release \ + DESTDIR="$pkgdir" \ + install_kmod || return 1 +} + +md5sums="0602bf8a632312019e092f7de23caa9a wanpipe-7.0.0.tgz" +sha256sums="39e6b820168af511b3714d80aeede9bb62002ad6e03653ecf47904e4cc247118 wanpipe-7.0.0.tgz" +sha512sums="70996740de89f7369d16f5a55e825e36e29b227bef8f1a21962f7b8fdd7f5922ff125e3d0e9f4b6472acdf68567a8b469c85693b3a68f3b788ce15a68fb2a875 wanpipe-7.0.0.tgz" |