summaryrefslogtreecommitdiffstats
path: root/testing/openvcp/APKBUILD
blob: f72c2637c64e802a291070c01d678b2d32ca6b2d (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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=openvcp
_pkgname=openvcpd
pkgver=0.5
_pkgver=0.5rc3
pkgrel=0
pkgdesc="Control Panel for VServer instances"
url="http://www.openvcp.org"
arch="all"
license="GPL"
depends="rsync"
depends_dev="gnutls-dev util-vserver-dev libxml2-dev libpcap-dev sqlite-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://files.openvcp.org/$_pkgname-$_pkgver.tar.gz
	$pkgname.initd"
_builddir="$srcdir"/$_pkgname-$_pkgver
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
}
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--with-gnutls
	make || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="9c65d706133ea48553c90236997f1b8b  openvcpd-0.5rc3.tar.gz
08cef22e3abc5824133733e17aa4e607  openvcp.initd"