Skip to content
Snippets Groups Projects
Commit f4058e1a authored by Natanael Copa's avatar Natanael Copa
Browse files

community/cfengine: fix needed symlinks

The tools seems to require binaries to be available from
/var/lib/cfengine/bin.

https://tracker.mender.io/browse/CFE-2936

we also add a post-install that creates the keys.

(cherry picked from commit dc3b70dd)
parent 11f183aa
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,12 @@
# Maintainer:
pkgname=cfengine
pkgver=3.11.0
pkgrel=4
pkgrel=5
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 libressl-dev bison flex-dev
acl-dev pcre-dev linux-headers"
subpackages="$pkgname-doc $pkgname-masterfiles::noarch"
......@@ -36,11 +37,22 @@ build() {
--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() {
......@@ -48,9 +60,6 @@ masterfiles() {
depends="cfengine"
cd "$builddirmasterfiles"
./configure \
--prefix=/var/lib/cfengine
#make install DESTDIR="$pkgdir/../$pkgname-masterfiles"
make install DESTDIR="$subpkgdir"
}
......
#!/bin/sh
cf-key || true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment