mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 10:51:39 +02:00
69 lines
1.8 KiB
Plaintext
69 lines
1.8 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=cfengine
|
|
pkgver=3.12.1
|
|
pkgrel=0
|
|
pkgdesc="A systems administration tool for networks"
|
|
url="http://www.cfengine.com/"
|
|
arch="all"
|
|
license="GPL-3.0"
|
|
install="$pkgname.post-install"
|
|
makedepends="$depends_dev lmdb-dev openssl-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*}
|
|
options="!check" # testsuite shows some unknown errors
|
|
|
|
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
|
|
|
|
cd "$builddirmasterfiles"
|
|
./configure \
|
|
--prefix=/var/lib/cfengine
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make install DESTDIR="$pkgdir"
|
|
|
|
# not FHS but the tools seems to require those
|
|
install -d "$pkgdir"/var/lib/cfengine/bin
|
|
for i in "$pkgdir"/usr/bin/*; do
|
|
ln -s ../../../../usr/bin/${i##*/} "$pkgdir"/var/lib/cfengine/bin/
|
|
done
|
|
}
|
|
|
|
masterfiles() {
|
|
pkgdesc="Cfengine default masterfiles"
|
|
depends="cfengine"
|
|
|
|
cd "$builddirmasterfiles"
|
|
make install DESTDIR="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="fb788781596a24dcc2ebcb548d2df6845f6e245732fde812d62e9c3dbe301855830c89c887711cd5db17e57cf245e43db9692c630e74def2fcd82cf718c385b4 cfengine-3.12.1.tar.gz
|
|
cdd51998cd4da299b7a644b8f492a997264079c6912929dcb3d60fa3b9f01efa3d9deb2631cda0627782174e5591128dd40f9cee3936434482a9e6069981ebb7 cfengine-masterfiles-3.12.1.tar.gz"
|