aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvcp/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-25 08:39:40 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-02-25 09:50:42 +0000
commit75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993 (patch)
tree8832efd2965aac9b5199209afb0ab288022468dd /testing/openvcp/APKBUILD
parent977144e17397d8550fb184f49d07f9f2bdab5bb3 (diff)
downloadaports-75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993.tar.bz2
aports-75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993.tar.xz
testing/openvcp: new aport - ref. feature #484
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"