aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-vserver/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-10 09:53:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-10 10:04:41 +0000
commit02cd2fa89b83e96a9073725a6efd94afe8cbc4f0 (patch)
treedd7651858962d4c14bacd56bf982b6a933e858f6 /main/dahdi-linux-vserver/APKBUILD
parent82c89b6953e72f3652e3610ee22f7965e667cacd (diff)
downloadaports-02cd2fa89b83e96a9073725a6efd94afe8cbc4f0.tar.bz2
aports-02cd2fa89b83e96a9073725a6efd94afe8cbc4f0.tar.xz
main/*-vserver: upgrade to 3.0.8-vs2.1.3
Diffstat (limited to 'main/dahdi-linux-vserver/APKBUILD')
-rw-r--r--main/dahdi-linux-vserver/APKBUILD24
1 files changed, 17 insertions, 7 deletions
diff --git a/main/dahdi-linux-vserver/APKBUILD b/main/dahdi-linux-vserver/APKBUILD
index 5315d0dc70..acfe4e93d3 100644
--- a/main/dahdi-linux-vserver/APKBUILD
+++ b/main/dahdi-linux-vserver/APKBUILD
@@ -2,30 +2,40 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
_flavor=${FLAVOR:-vserver}
+_realname=dahdi-linux
+_name=$_realname-$_flavor
+_kver=3.0.8
+_kpkgrel=0
+_myvsver=vs2.3.1
-# source the kernel version
+# verify the kernel version before entering chroot
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"
+ [ "$_myvsver" != "$_vsver" ] \
+ && die "$_name: please update _myvsver to $_vsver"
fi
-_kernelver="$pkgver-r$pkgrel"
-_kpkgrel=$pkgrel
-_realname=dahdi-linux
+_kpkgver="$_kver-r$_kpkgrel"
+_abi_release=${_kver}-$_myvsver
pkgname=${_realname}-${_flavor}
pkgver=$pkgver
# when bumping _dahdiver we *must* bump _mypkgrel
_dahdiver=2.5.0.2
-_mypkgrel=3
+_mypkgrel=0
pkgrel=$(( $_kpkgrel + $_mypkgrel ))
pkgdesc="Digium Asterisk Hardware Device Interface drivers $_dahdiver"
url="http://www.asterisk.org"
arch="all"
license="GPL"
-depends="dahdi-linux linux-${_flavor}=${_kernelver}"
+depends="dahdi-linux linux-${_flavor}=${_kpkgver}"
# we need wget and tar because make install downloads firmware and uses fancy
# options for tar and wget.
-makedepends="linux-${_flavor}-dev=${_kernelver} wget tar perl"
+makedepends="linux-${_flavor}-dev=${_kpkgver} wget tar perl"
install=
subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_realname}-$_dahdiver.tar.gz