aboutsummaryrefslogtreecommitdiffstats
path: root/community/cfengine
diff options
context:
space:
mode:
authorOlivier Mauras <olivier@mauras.ch>2016-08-18 22:49:57 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-22 22:47:06 +0200
commitffea920168e4bbf800150e4cd9d5a6205d978625 (patch)
tree3af67ef573287d6b1b72562e29b8068dff442303 /community/cfengine
parente0e276e6cfc607b5315e04b78eed6888290910d6 (diff)
downloadaports-ffea920168e4bbf800150e4cd9d5a6205d978625.tar.bz2
aports-ffea920168e4bbf800150e4cd9d5a6205d978625.tar.xz
testing/[various]: move to community
Diffstat (limited to 'community/cfengine')
-rw-r--r--community/cfengine/APKBUILD74
1 files changed, 74 insertions, 0 deletions
diff --git a/community/cfengine/APKBUILD b/community/cfengine/APKBUILD
new file mode 100644
index 0000000000..7816b58d4b
--- /dev/null
+++ b/community/cfengine/APKBUILD
@@ -0,0 +1,74 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Olivier Mauras <olivier@mauras.ch>
+pkgname=cfengine
+pkgver=3.7.4
+pkgrel=0
+pkgdesc="A systems administration tool for networks"
+url="http://www.cfengine.org/"
+arch="all"
+license="GPLv3"
+depends=""
+depends_dev=""
+makedepends="$depends_dev lmdb-dev openssl-dev bison flex-dev
+ acl-dev pcre-dev linux-headers"
+install=""
+subpackages="$pkgname-doc $pkgname-masterfiles"
+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"
+ arch="noarch"
+ 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"