aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvcp/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openvcp/APKBUILD')
-rw-r--r--testing/openvcp/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/openvcp/APKBUILD b/testing/openvcp/APKBUILD
new file mode 100644
index 0000000000..f72c2637c6
--- /dev/null
+++ b/testing/openvcp/APKBUILD
@@ -0,0 +1,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"