summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-27 15:42:52 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-02-27 15:42:52 +0000
commitf1b0759f75b8997aa1a67d0756a3c490ec227463 (patch)
tree82cd7e93c5db9fd4087568bd495663d106af0323
parentec5a0f7d9a61dfcaeb795c731ec97886fb728cc6 (diff)
downloadaports-f1b0759f75b8997aa1a67d0756a3c490ec227463.tar.bz2
aports-f1b0759f75b8997aa1a67d0756a3c490ec227463.tar.xz
testing/openxcap: upgrade to 2.0, fixed APKBUILD
-rw-r--r--testing/openxcap/APKBUILD13
-rw-r--r--testing/openxcap/openxcap.initd32
2 files changed, 25 insertions, 20 deletions
diff --git a/testing/openxcap/APKBUILD b/testing/openxcap/APKBUILD
index c2165368..513d5bd5 100644
--- a/testing/openxcap/APKBUILD
+++ b/testing/openxcap/APKBUILD
@@ -1,9 +1,8 @@
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
-
pkgname=openxcap
-pkgver=1.2.0
-pkgrel=4
+pkgver=2.0.0
+pkgrel=0
pkgdesc="Open source fully featured XCAP server "
url="http://openxcap.org"
pkgusers="openxcap"
@@ -16,9 +15,7 @@ makedepends="python-dev"
install="$pkgname.pre-install $pkgname.post-install"
source="http://download.ag-projects.com/XCAP/$pkgname-$pkgver.tar.gz
config.ini
- openxcap.initd
-"
-
+ openxcap.initd"
build() {
cd "$srcdir"/$pkgname-$pkgver
@@ -35,6 +32,6 @@ build() {
install -d -o openxcap "$pkgdir"/var/run/openxcap
}
-md5sums="ec34570deee2019a1ebf9a012a476c26 openxcap-1.2.0.tar.gz
+md5sums="155b1ee85dd3217e5647ad3ac9f72cf6 openxcap-2.0.0.tar.gz
7a18872843586717eaf3879444cc13d2 config.ini
-5bebac590cb06b0eacaf040116bc354e openxcap.initd"
+0043d28e9e6e51e03661755d12080a28 openxcap.initd"
diff --git a/testing/openxcap/openxcap.initd b/testing/openxcap/openxcap.initd
index 69108afd..03286cce 100644
--- a/testing/openxcap/openxcap.initd
+++ b/testing/openxcap/openxcap.initd
@@ -1,23 +1,31 @@
#!/sbin/runscript
-#
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-daemon=/usr/bin/openxcap
-pidfile=/var/run/openxcap/openxcap.pid
+INSTALL_DIR="/usr/bin"
+RUNTIME_DIR="/var/run/openxcap"
+DEFAULTS="/etc/default/openxcap"
+SERVER="$INSTALL_DIR/openxcap"
+PID="$RUNTIME_DIR/openxcap.pid"
+OPTIONS=""
+NAME="openxcap"
+DESC="OpenXCAP server"
depend() {
- need net
- after firewall
+ need net
+ after firewall
}
start() {
- ebegin "Starting OpenXCAP Presence Server"
- start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon
- eend $?
+ ebegin "Starting $DESC: $NAME "
+ start-stop-daemon --start --quiet --pidfile $PID --exec $SERVER -- $OPTIONS
+ eend $?
}
-stop() {
- ebegin "Stopping OpenXCAP Presence Server"
- start-stop-daemon --stop --quiet --signal 15 --pidfile $pidfile
- eend $?
+stop () {
+ ebegin -n "Stopping $DESC: $NAME "
+ start-stop-daemon --stop --quiet --oknodo --signal 15 --pidfile $PID
+ eend $?
}
+exit 0
+