aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvcp/APKBUILD
blob: bee3a90c3c9bc3831423c69248100bb32376f74a (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
44
45
46
47
# 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=
depends_dev=
makedepends="gnutls-dev util-vserver-dev libxml2-dev libpcap-dev libtool sqlite-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
db8efb9c086673fd2e3e2532294c7a2f  openvcp.initd"