summaryrefslogtreecommitdiffstats
path: root/testing/bcfg2/APKBUILD
blob: 8ebff8cb55a1acd4fd113f867499b6d77f0f0a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=bcfg2
pkgver=1.3.3
pkgrel=0
pkgdesc="A configuration management tool"
url="http://bcfg2.org"
arch="noarch"
license="BSD"
depends="python py-lxml"
makedepends="python-dev py-setuptools"
install=""
subpackages="$pkgname-doc $pkgname-server"
source="ftp://ftp.mcs.anl.gov/pub/bcfg/$pkgname-$pkgver.tar.gz
		bcfg2-server.initd"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --root="$pkgdir" || return 1
}

server() {
	depends="python bcfg2 py-lxml openssl"

	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/bcfg2-* "$subpkgdir"/usr/bin/
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/bcfg2 "$subpkgdir"/usr/share/
	install -m755 -D bcfg2-server.initd "$subpkgdir"/etc/init.d/$subpkgname
}

md5sums="1ac3d3a4c5b134a3f23b3da63cfe2a1b  bcfg2-1.3.3.tar.gz
9a13baa6f40267ff9dbec574967c5068  bcfg2-server.initd"
sha256sums="cff958ae037511dd6ee007628972f12717d9bfdd7762e3fcb8aa9c418f8aa5bb  bcfg2-1.3.3.tar.gz
c23385c66d5a472d3a322873b2873301db8f674af9e03c24105158c27ce0831c  bcfg2-server.initd"
sha512sums="91bc16b315b6128ef0dfcbdc6cd25ca9d976b6b2d326c140c1300b096570bde46382406d28f5a1892d52432af20056c2864ab507f8180c7298a68931a3bd68d5  bcfg2-1.3.3.tar.gz
8ad40aedeaa5084793a624599ff4ec61a1b6489854b5533504baf456c9c39f97a4c80a521909c7386c481d2417ad59f28735cfbeedf86468634223695f1dc2fc  bcfg2-server.initd"