blob: 5e9768c10114544b7d02e981dd7f2c194e4cc523 (
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
53
54
55
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=drbd-utils
pkgver=9.0.0
pkgrel=0
pkgdesc="Network-based RAID 1"
url="http://www.drbd.org"
arch="all"
license="GPL"
depends="bash"
makedepends="bash bison flex linux-headers libxslt docbook-xsl"
provides="drbd"
subpackages="$pkgname-doc $pkgname-pacemaker::noarch"
source="https://links.linbit.com/sources/drbd/utils/drbd-utils-$pkgver.tar.gz
drbdsetup-permissions.patch
drbd.initd"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
./configure --prefix=/usr \
--sbindir=/sbin \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-pacemaker \
--with-drbdmon \
--without-udev \
--without-heartbeat \
--without-rgmanager \
--without-xen \
--without-bashcompletion\
--without-83support
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir/drbd.initd" \
"$pkgdir/etc/init.d/drbd"
}
pacemaker() {
depends="drbd"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/ocf "$subpkgdir"/usr/lib
}
sha512sums="17a5214f67ae6bc6d4d7baf443a33208306e6fac1d045a27e958c6fb242915e817bc8e8a19abe42dc70c441334022603ad1a8c41b06bc8c0a24dc14a12fe836a drbd-utils-9.0.0.tar.gz
562ae8eee03148666fb6e6e700c1eb9086f6901e176ea6cd007e3ac4e39d1cdaf967064de74dc1ad620155996dc7011bd0e2abd1c9595ff9bf5f4413673726f3 drbdsetup-permissions.patch
bb465e32273aaba0b86ae681bc94c58bb51f542221f51ced197e22b316ce1bc9a0b4fe1f43af07ef13b3f0946466a43218f0a2ab7f4210adbb00174a503b64d7 drbd.initd"
|