aboutsummaryrefslogtreecommitdiffstats
path: root/main/drbd9-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-25 11:14:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-25 11:15:51 +0000
commitbcf2bee74687b1545db9968dffdfb5b4d72a022e (patch)
treef0f14192d4e10d37959440168e2d0a6511bf8bc0 /main/drbd9-grsec
parentb8ef15e67876cff5fa044a485fbf4fe0c764fa0e (diff)
downloadaports-bcf2bee74687b1545db9968dffdfb5b4d72a022e.tar.bz2
aports-bcf2bee74687b1545db9968dffdfb5b4d72a022e.tar.xz
main/drbd9-grsec: move from testing
Diffstat (limited to 'main/drbd9-grsec')
-rw-r--r--main/drbd9-grsec/APKBUILD73
1 files changed, 73 insertions, 0 deletions
diff --git a/main/drbd9-grsec/APKBUILD b/main/drbd9-grsec/APKBUILD
new file mode 100644
index 0000000000..db52fec38f
--- /dev/null
+++ b/main/drbd9-grsec/APKBUILD
@@ -0,0 +1,73 @@
+# Contributor: Roland Kammerer <roland.kammerer@linbit.com>
+# Maintainer: Roland Kammerer <roland.kammerer@linbit.com>
+_usname=drbd
+_flavor=${FLAVOR:-grsec}
+_name=$_usname-$_flavor
+
+_kpkg=linux-$_flavor
+_kver=4.4.8
+_kpkgrel=0
+
+_usver=9.0.2
+# upstream now also has a -rel in the tar-balls
+# set it here for "source", but don't mangle it into pkgrel/_mypkgrel
+# if there is a new upstream rel (eg. 9.0.1-2), we just increase _mypkgrel
+_usrel=1
+
+_mypkgrel=1
+
+_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"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="linux-grsec-dev"
+install=""
+subpackages=""
+source="http://www.drbd.org/download/$_usname/${_usver%.*}/$_usname-$_usver-$_usrel.tar.gz"
+
+_builddir=$srcdir/$_usname-$_usver-$_usrel
+prepare() {
+ local i
+ # verify the kernel version
+ (cd $startdir
+ if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then
+ . ../../main/linux-${_flavor}/APKBUILD
+ [ "$_kver" != "$pkgver" ] \
+ && die "please update _kver to $pkgver"
+ [ "$_kpkgrel" != "$pkgrel" ] \
+ && die "please update _kpkgrel to $pkgrel"
+ else
+ die "could not determine kernel flavor: linux-${_flavor}"
+ fi
+ return 0) || return 1
+
+
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make KVER=$_abi_release || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="b906e860f97fa4b0652f499a8b22c260 drbd-9.0.2-1.tar.gz"
+sha256sums="507de8869fa7f6b54a68554e6203a4ca3fc39adc85016fbfe9bc6b9b43d04c9f drbd-9.0.2-1.tar.gz"
+sha512sums="45b14690e1b063be5e64244ac91e096542f1805f15936ad89ed59716f93a585927f228b920008bba736d4096714901aa65d431684b8f54244dc643d72eec624f drbd-9.0.2-1.tar.gz"