Commit de194c88 authored by Natanael Copa's avatar Natanael Copa

testing/drbd9-grsec: rename and specify kernel version of build

parent 908048ff
# Contributor: Roland Kammerer <roland.kammerer@linbit.com>
# Maintainer: Roland Kammerer <roland.kammerer@linbit.com>
_usname=drbd
pkgname=${_usname}9
pkgver=9.0.0
pkgrel=0
_flavor=${FLAVOR:-grsec}
_name=$_usname-$_flavor
_kpkg=linux-$_flavor
_kver=4.1.15
_kpkgrel=2
_usver=9.0.0
_mypkgrel=0
_kernelver=$_kver-r$_kpkgrel
_abi_release=${_kver}-${_kpkgrel}-${_flavor}
pkgname=${_usname}9-$_flavor
pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))
pkgdesc="Network-based RAID 1 version 9"
url="http://www.drbd.org"
arch="all"
......@@ -13,12 +26,24 @@ depends_dev=""
makedepends="linux-grsec-dev"
install=""
subpackages=""
source="http://oss.linbit.com/$_usname/9.0/$_usname-$pkgver.tar.gz
source="http://oss.linbit.com/$_usname/${_usver%.*}/$_usname-$_usver.tar.gz
busybox-mv.patch"
_builddir=$srcdir/$_usname-$pkgver
_builddir=$srcdir/$_usname-$_usver
prepare() {
local i
# verify the kernel version
(if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
_name=$pkgname
. ../../main/linux-${_flavor}/APKBUILD
pkgname=$_name
[ "$_kver" != "$pkgver" ] \
&& die "please update _kver to $pkgver"
[ "$_kpkgrel" != "$pkgrel" ] \
&& die "please update _kpkgrel to $pkgrel"
fi) || return 1
cd "$_builddir"
for i in $source; do
case $i in
......@@ -29,7 +54,7 @@ prepare() {
build() {
cd "$_builddir"
make || return 1
make KVER=$_abi_release || return 1
}
package() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment