summaryrefslogtreecommitdiffstats
path: root/testing/drbd/APKBUILD
blob: 4369f196785a198dc31d1eff551930831a500500 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=drbd
pkgver=8.4.0
pkgbase=8.4
pkgrel=2
pkgdesc="Network-based RAID 1"
url="http://www.drbd.org"
arch="all"
license="GPL"
depends="bash"
depends_dev="bash bison flex"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://oss.linbit.com/$pkgname/$pkgbase/$pkgname-$pkgver.tar.gz
	$pkgname.initd"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	sed -i "s/mv --force/mv -f/" drbd/Makefile || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-pacemaker \
		--without-udev \
		--without-heartbeat \
		--without-rgmanager \
		--without-xen \
		--without-bashcompletion

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
        install -m755 -D "$srcdir/$pkgname.initd" \
		"$pkgdir/etc/init.d/$pkgname" || return 1
}

md5sums="8519246dff4e2de14595d71abcd54db4  drbd-8.4.0.tar.gz
f2e0173a6056ce4b9c2e3847b59899ba  drbd.initd"