aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-04-03 07:29:46 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-04-03 07:29:46 +0000
commiteeba926c54283efef1ee09a03af13d7f0c427cda (patch)
treea884c366f6cf8453e3901fff8e65e2ba5faad1f3
parent027945a6923d34041d4d51ec0e545b16766ac1c7 (diff)
downloadaports-eeba926c54283efef1ee09a03af13d7f0c427cda.tar.bz2
aports-eeba926c54283efef1ee09a03af13d7f0c427cda.tar.xz
testing/ajaxterm: new apkbuild
-rw-r--r--testing/ajaxterm/APKBUILD37
-rw-r--r--testing/ajaxterm/ajaxterm.confd3
-rw-r--r--testing/ajaxterm/ajaxterm.initd21
3 files changed, 61 insertions, 0 deletions
diff --git a/testing/ajaxterm/APKBUILD b/testing/ajaxterm/APKBUILD
new file mode 100644
index 0000000000..4cde6868f9
--- /dev/null
+++ b/testing/ajaxterm/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=ajaxterm
+_pkgname=Ajaxterm
+pkgver=0.10
+pkgrel=0
+pkgdesc="Simple AJAX Terminal"
+url="http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm"
+arch="noarch"
+license="GPL"
+depends=
+depends_dev="python-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://archlinux-stuff.googlecode.com/files/$_pkgname-$pkgver.tar.gz
+ ajaxterm.initd
+ ajaxterm.confd"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr
+}
+package() {
+ cd "$_builddir"
+ install -d $pkgdir/usr/bin
+ install -m 0755 ajaxterm.bin $pkgdir/usr/bin/ajaxterm
+ install -D -m 0755 $srcdir/ajaxterm.initd $pkgdir/etc/init.d/ajaxterm
+ install -D -m 0755 $srcdir/ajaxterm.confd $pkgdir/etc/conf.d/ajaxterm
+ install -D -m 0644 ajaxterm.css ajaxterm.html qweb.py *.js $pkgdir/usr/share/ajaxterm
+ install -D -m 0755 ajaxterm.py $pkgdir/usr/share/ajaxterm
+ install -D -m 0644 ajaxterm.1 $pkgdir/usr/share/man/man1
+}
+md5sums="b10830a7a81d2a4c9f8815510dafb87a Ajaxterm-0.10.tar.gz
+07ef889cef762418bb1d8f24a257430d ajaxterm.initd
+c6784d7cb27acea4dd8cb00724643027 ajaxterm.confd"
diff --git a/testing/ajaxterm/ajaxterm.confd b/testing/ajaxterm/ajaxterm.confd
new file mode 100644
index 0000000000..4ddff72ae5
--- /dev/null
+++ b/testing/ajaxterm/ajaxterm.confd
@@ -0,0 +1,3 @@
+DAEMON=/usr/bin/ajaxterm
+PORT=8022
+PIDFILE=/var/run/ajaxterm.pid
diff --git a/testing/ajaxterm/ajaxterm.initd b/testing/ajaxterm/ajaxterm.initd
new file mode 100644
index 0000000000..f09b9b429f
--- /dev/null
+++ b/testing/ajaxterm/ajaxterm.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+depend()
+{
+ need net
+}
+
+start()
+{
+ ebegin "Starting AjaxTerm on port $PORT"
+ start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --uid=nobody
+ eend $?
+}
+
+stop()
+{
+ ebegin "Stopping AjaxTerm"
+ start-stop-daemon --stop --pidfile $PIDFILE
+ rm -f $PIDFILE
+ eend $?
+}