diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-07-08 12:47:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-10 09:01:28 +0000 |
commit | 79cf0e83629d59f8c4548615c21e8f7dda1ea35b (patch) | |
tree | 667814de2dd78894e95825a3ca9c4f01de0e1114 | |
parent | 8b59a2289f9caac83cc0c74399dca0eaa27d8005 (diff) | |
download | aports-79cf0e83629d59f8c4548615c21e8f7dda1ea35b.tar.bz2 aports-79cf0e83629d59f8c4548615c21e8f7dda1ea35b.tar.xz |
community/cfengine: fix project url and modernize APKBUILD
-rw-r--r-- | community/cfengine/APKBUILD | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/community/cfengine/APKBUILD b/community/cfengine/APKBUILD index c02b34b791..17b07f5b69 100644 --- a/community/cfengine/APKBUILD +++ b/community/cfengine/APKBUILD @@ -2,16 +2,13 @@ # Maintainer: Olivier Mauras <olivier@mauras.ch> pkgname=cfengine pkgver=3.10.1 -pkgrel=0 +pkgrel=1 pkgdesc="A systems administration tool for networks" -url="http://www.cfengine.org/" +url="http://www.cfengine.com/" 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" @@ -19,13 +16,7 @@ source="https://cfengine-package-repos.s3.amazonaws.com/tarballs/$pkgname-$pkgve builddir="$srcdir"/cfengine-${pkgver%_p*} builddirmasterfiles="$srcdir"/cfengine-masterfiles-${pkgver%_p*} prepare() { - local i - cd "$builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare # Also extract masterfiles cd $srcdir @@ -43,14 +34,13 @@ build() { --localstatedir=/var \ --mandir=/usr/share/man \ --with-lmdb \ - --without-pam \ - || return 1 - make || return 1 + --without-pam + make } package() { cd "$builddir" - make install DESTDIR="$pkgdir" || return 1 + make install DESTDIR="$pkgdir" } masterfiles() { @@ -59,10 +49,9 @@ masterfiles() { cd "$builddirmasterfiles" ./configure \ - --prefix=/var/lib/cfengine \ - || return 1 - #make install DESTDIR="$pkgdir/../$pkgname-masterfiles" || return 1 - make install DESTDIR="$subpkgdir" || return 1 + --prefix=/var/lib/cfengine + #make install DESTDIR="$pkgdir/../$pkgname-masterfiles" + make install DESTDIR="$subpkgdir" } sha512sums="13de610129474e71dbd58e7f29a2fe6754de3da85622983050ec724fda308b9338dd23ac1dfb277b7860940bd6f2be23792a9ea4926b81c8b654ea3b7f8a2e6b cfengine-3.10.1.tar.gz |