blob: 043f5443806f482576c2a32bfdb9f66a4ef51140 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Olivier Mauras <olivier@mauras.ch>
pkgname=cfengine
pkgver=3.7.4
pkgrel=1
pkgdesc="A systems administration tool for networks"
url="http://www.cfengine.org/"
arch="all"
license="GPLv3"
depends=""
depends_dev=""
makedepends="$depends_dev lmdb-dev libressl-dev bison flex-dev
acl-dev pcre-dev linux-headers"
install=""
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() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# 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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
masterfiles() {
pkgdesc="Cfengine default masterfiles"
depends="cfengine"
cd "$_builddirmasterfiles"
./configure \
--prefix=/var/lib/cfengine \
|| return 1
#make install DESTDIR="$pkgdir/../$pkgname-masterfiles" || return 1
make install DESTDIR="$subpkgdir" || return 1
}
md5sums="7322acc96a693bda2726030365c90bcc cfengine-3.7.4.tar.gz
c52543997cc3921213c56f4579d68fdc cfengine-masterfiles-3.7.4.tar.gz"
sha256sums="8f980004e901318ca9ba2eb5ab4ca25c3561116936bba169b90643ef0b6940df cfengine-3.7.4.tar.gz
9516a6ab7800f74b03abfa190f6cb8ed18cd669a49e63365f65ea56df7b953c0 cfengine-masterfiles-3.7.4.tar.gz"
sha512sums="d81a0cf213dbf3e48431926ae028cee14f8b047625ed7064710a15061a63cb9abb4d2e84f211d0f35bd2069c2192eaaeb2fd89b32dfeedad1935f1bdf9b193cf cfengine-3.7.4.tar.gz
35a58be419217ed39646050fd5501d33374db5d59d7d787c2e6ea32e1aa419a3895a3af2c7e20877f9c0f6497bd0f5e8f3012a19fc5ffe26409f36b7bd93a015 cfengine-masterfiles-3.7.4.tar.gz"
|