summaryrefslogtreecommitdiffstats
path: root/testing/openvcp
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-25 08:39:40 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-02-25 08:39:40 +0000
commit33e8cbc5148ca8006ff502b21a5fe9cf6408e365 (patch)
treef622bf42d04dec6f7ba795838ce7df124da562f8 /testing/openvcp
parent1acf3cbd95adaee9293de046fe27475f8e7740db (diff)
downloadaports-33e8cbc5148ca8006ff502b21a5fe9cf6408e365.tar.bz2
aports-33e8cbc5148ca8006ff502b21a5fe9cf6408e365.tar.xz
testing/openvcp: new aport - ref. feature #484
Diffstat (limited to 'testing/openvcp')
-rw-r--r--testing/openvcp/APKBUILD43
-rw-r--r--testing/openvcp/openvcp.initd21
2 files changed, 64 insertions, 0 deletions
diff --git a/testing/openvcp/APKBUILD b/testing/openvcp/APKBUILD
new file mode 100644
index 000000000..f72c2637c
--- /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"
diff --git a/testing/openvcp/openvcp.initd b/testing/openvcp/openvcp.initd
new file mode 100644
index 000000000..9acc4d109
--- /dev/null
+++ b/testing/openvcp/openvcp.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="openvcpd"
+NAME=openvcpd
+DAEMON=/usr/bin/$NAME
+DAEMON_ARGS=""
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+start() {
+ ebegin "OpenVCP Starting"
+ start-stop-daemon --start --quiet --background --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 1
+ eend $?
+}
+
+stop() {
+ ebegin "OpenVCP Stopping"
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ eend $?
+}