blob: b525c2893028fd8f4c2d74a24750969843d269ac (
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
56
57
58
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=cfengine
pkgver=3.11.0
pkgrel=2
pkgdesc="A systems administration tool for networks"
url="http://www.cfengine.com/"
arch="all"
license="GPL-3.0"
makedepends="$depends_dev lmdb-dev libressl-dev bison flex-dev
acl-dev pcre-dev linux-headers"
subpackages="$pkgname-doc $pkgname-masterfiles::noarch"
source="https://cfengine-package-repos.s3.amazonaws.com/tarballs/$pkgname-$pkgver.tar.gz
https://cfengine-package-repos.s3.amazonaws.com/tarballs/$pkgname-masterfiles-$pkgver.tar.gz"
builddir="$srcdir"/cfengine-${pkgver%_p*}
builddirmasterfiles="$srcdir"/cfengine-masterfiles-${pkgver%_p*}
prepare() {
default_prepare
# Also extract masterfiles
cd $srcdir
tar xf $pkgname-masterfiles-$pkgver.tar.gz
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--with-pic \
--prefix=/usr \
--enable-fhs \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-lmdb \
--without-pam
make
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
}
masterfiles() {
pkgdesc="Cfengine default masterfiles"
depends="cfengine"
cd "$builddirmasterfiles"
./configure \
--prefix=/var/lib/cfengine
#make install DESTDIR="$pkgdir/../$pkgname-masterfiles"
make install DESTDIR="$subpkgdir"
}
sha512sums="4261362bd2702830cf8fa85ef7934490965a0c44379b0a09bd356d88e90bc0d862b6923afc46f0cef80fd834660e7b1250e30a29248e687040d51d7a5013f9d3 cfengine-3.11.0.tar.gz
8d630ea8bffc0685b8704309a07062399c6d24ea14186e24c1eecf0ead062bff434a5548a4507db1d8636f5423b1e58056a0432421dbac4001ac1d35e8c59a99 cfengine-masterfiles-3.11.0.tar.gz"
|