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> # Contributor: Roland Kammerer <roland.kammerer@linbit.com>
# Maintainer: Roland Kammerer <roland.kammerer@linbit.com> # Maintainer: Roland Kammerer <roland.kammerer@linbit.com>
_usname=drbd _usname=drbd
pkgname=${_usname}9 _flavor=${FLAVOR:-grsec}
pkgver=9.0.0 _name=$_usname-$_flavor
pkgrel=0
_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" pkgdesc="Network-based RAID 1 version 9"
url="http://www.drbd.org" url="http://www.drbd.org"
arch="all" arch="all"
...@@ -13,12 +26,24 @@ depends_dev="" ...@@ -13,12 +26,24 @@ depends_dev=""
makedepends="linux-grsec-dev" makedepends="linux-grsec-dev"
install="" install=""
subpackages="" 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" busybox-mv.patch"
_builddir=$srcdir/$_usname-$pkgver _builddir=$srcdir/$_usname-$_usver
prepare() { prepare() {
local i 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" cd "$_builddir"
for i in $source; do for i in $source; do
case $i in case $i in
...@@ -29,7 +54,7 @@ prepare() { ...@@ -29,7 +54,7 @@ prepare() {
build() { build() {
cd "$_builddir" cd "$_builddir"
make || return 1 make KVER=$_abi_release || return 1
} }
package() { 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