blob: fa9f89f74b79250bae436457bd78180ea534003f (
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
63
64
65
66
67
68
69
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_flavor=${FLAVOR:-grsec}
_realname=wanpipe
_name=$_realname-$_flavor
_kpkg=linux-$_flavor
_kver=3.6.11
_kpkgrel=14
# 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-${_flavor}
pkgname=$_name
pkgver=$_kver
_realver=3.5.27
_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="97870a9de81aa61d74e3a5ac930f94e3 wanpipe-3.5.27.tgz"
sha256sums="4640fc00cd6db8f2069b720cd8dc4b21a4b011db2727dfa434ec089b5f2451cf wanpipe-3.5.27.tgz"
sha512sums="905af03a53212c6c678dd01be780cdebc6a811d7111cd4f9ebcbfeee6d67bcab2f58ad4af0d4ba7a8ce36bfca9968e46150c2079eaf7e8de05d4da1ff7b7736f wanpipe-3.5.27.tgz"
|