aboutsummaryrefslogblamecommitdiffstats
path: root/community/cfengine/APKBUILD
blob: d1a5f613c6de86594cdd32cc6bb38d923cc17432 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
             
                
             
        
                                                    
                              
          
                 
                                                              
                                       
                                                       


                                                                                                     

                                                                
           
                       






                                                  
                      








                                         

                             


           
                      
                                      



                                              
                          
 
                                 
                     


                                                               

 

                                                                                                                                                                     
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=cfengine
pkgver=3.11.0
pkgrel=4
pkgdesc="A systems administration tool for networks"
url="http://www.cfengine.com/"
arch="all"
license="GPL-3.0"
makedepends="$depends_dev lmdb-dev libressl-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*}
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
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

masterfiles() {
	pkgdesc="Cfengine default masterfiles"
	depends="cfengine"

	cd "$builddirmasterfiles"
	./configure \
		--prefix=/var/lib/cfengine
	#make install DESTDIR="$pkgdir/../$pkgname-masterfiles"
	make install DESTDIR="$subpkgdir"
}

sha512sums="4261362bd2702830cf8fa85ef7934490965a0c44379b0a09bd356d88e90bc0d862b6923afc46f0cef80fd834660e7b1250e30a29248e687040d51d7a5013f9d3  cfengine-3.11.0.tar.gz
8d630ea8bffc0685b8704309a07062399c6d24ea14186e24c1eecf0ead062bff434a5548a4507db1d8636f5423b1e58056a0432421dbac4001ac1d35e8c59a99  cfengine-masterfiles-3.11.0.tar.gz"