diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 14:15:37 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 14:15:37 +0000 |
commit | 2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed (patch) | |
tree | 18c354d5b527f03ee19aac8d70966789a6f41463 /community | |
parent | ad9f95dffd3dbb35ce83dbb7f3790164bdba5a0d (diff) | |
download | aports-2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed.tar.bz2 aports-2fa9fa780bbf9fe13ab5c7582ac074a4f76c94ed.tar.xz |
community/ajaxterm: moved from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/ajaxterm/APKBUILD | 46 | ||||
-rw-r--r-- | community/ajaxterm/ajaxterm-css.patch | 71 | ||||
-rw-r--r-- | community/ajaxterm/ajaxterm.confd | 3 | ||||
-rw-r--r-- | community/ajaxterm/ajaxterm.initd | 21 |
4 files changed, 141 insertions, 0 deletions
diff --git a/community/ajaxterm/APKBUILD b/community/ajaxterm/APKBUILD new file mode 100644 index 0000000000..de13772563 --- /dev/null +++ b/community/ajaxterm/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ajaxterm +_pkgname=Ajaxterm +pkgver=0.10 +pkgrel=3 +pkgdesc="Simple AJAX Terminal" +url="http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm" +arch="noarch" +license="GPL" +depends="python" +install="" +subpackages="$pkgname-doc" +source="http://archlinux-stuff.googlecode.com/files/$_pkgname-$pkgver.tar.gz + ajaxterm-css.patch + ajaxterm.initd + ajaxterm.confd" + +builddir="$srcdir"/$_pkgname-$pkgver +build() { + cd "$builddir" + ./configure --prefix=/usr +} +package() { + cd "$builddir" + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/usr/share/ajaxterm + 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 -m 0644 ajaxterm.css ajaxterm.html qweb.py *.js $pkgdir/usr/share/ajaxterm + install -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 +937516cfdd2b7219a548b2660eed1adf ajaxterm-css.patch +201b766a95dce5456f6ef6cc40622cab ajaxterm.initd +c6784d7cb27acea4dd8cb00724643027 ajaxterm.confd" +sha256sums="71a1dcfd731e56985348b263c16b0506c1c1bda148fb3093db776c42f58a969c Ajaxterm-0.10.tar.gz +f008d4c339badf7f02c9ca40cf6edd2fccdaf0bac1754bf0e478bbcdff51838d ajaxterm-css.patch +592f308d8fe89ef084bf1b70ef9771dceb377db244f4758f9a0e5bce76d79633 ajaxterm.initd +7898742279cbe458b68159fdb777f46d9c6e9b5098eb4eea8808ce9387627403 ajaxterm.confd" +sha512sums="6e95feaf59aad55ef70aab784a95c7656d17ac7b410f9fc95c064364e2f36e4495eb1eba91f9efda6aba69ac2d771751c646699f245f4a3cdfd822b61e016395 Ajaxterm-0.10.tar.gz +9b5adf129cafdcfa9d7b4027480d22b06e3a0486039458fb213b8d8104d7bfc9ed3886cf8d13f594c6afe9255cda5dcba3102330ab383d4efe556510d6937f11 ajaxterm-css.patch +be3dff846e906c3ac181ce017d546a4eb27aff6f8774c948fbcc2dc90012ceda26ec75318c17c5e0fe59fcb5e0d570e08c8ac800d7fa0d6ab068dcd348353661 ajaxterm.initd +da8fe66f8e1eefb8748d94431394ecc6d5c0c48910242fcb9b3619f91418443cb995a2d7c8025918fc6b3c01f471a701ce50c29225bccc75ebb451c332801743 ajaxterm.confd" diff --git a/community/ajaxterm/ajaxterm-css.patch b/community/ajaxterm/ajaxterm-css.patch new file mode 100644 index 0000000000..f062cd5c57 --- /dev/null +++ b/community/ajaxterm/ajaxterm-css.patch @@ -0,0 +1,71 @@ +diff --git a/ajaxterm.css b/ajaxterm.css +index b9a5f87..bfa0d38 100644 +--- a/ajaxterm.css ++++ b/ajaxterm.css +@@ -23,7 +23,8 @@ pre.stat .off { + color: white; + cursor: pointer; + } +-pre.term { ++#term { ++ float: left; + margin: 0px; + padding: 4px; + display: block; +@@ -33,32 +34,29 @@ pre.term { + border-top: 1px solid white; + color: #eee; + } +-pre.term span.f0 { color: #000; } +-pre.term span.f1 { color: #b00; } +-pre.term span.f2 { color: #0b0; } +-pre.term span.f3 { color: #bb0; } +-pre.term span.f4 { color: #00b; } +-pre.term span.f5 { color: #b0b; } +-pre.term span.f6 { color: #0bb; } +-pre.term span.f7 { color: #bbb; } +-pre.term span.f8 { color: #666; } +-pre.term span.f9 { color: #f00; } +-pre.term span.f10 { color: #0f0; } +-pre.term span.f11 { color: #ff0; } +-pre.term span.f12 { color: #00f; } +-pre.term span.f13 { color: #f0f; } +-pre.term span.f14 { color: #0ff; } +-pre.term span.f15 { color: #fff; } +-pre.term span.b0 { background-color: #000; } +-pre.term span.b1 { background-color: #b00; } +-pre.term span.b2 { background-color: #0b0; } +-pre.term span.b3 { background-color: #bb0; } +-pre.term span.b4 { background-color: #00b; } +-pre.term span.b5 { background-color: #b0b; } +-pre.term span.b6 { background-color: #0bb; } +-pre.term span.b7 { background-color: #bbb; } ++span.f0 { color: #000; } ++span.f1 { color: #b00; } ++span.f2 { color: #0b0; } ++span.f3 { color: #bb0; } ++span.f4 { color: #00b; } ++span.f5 { color: #b0b; } ++span.f6 { color: #0bb; } ++span.f7 { color: #bbb; } ++span.f8 { color: #666; } ++span.f9 { color: #f00; } ++span.f10 { color: #0f0; } ++span.f11 { color: #ff0; } ++span.f12 { color: #00f; } ++span.f13 { color: #f0f; } ++span.f14 { color: #0ff; } ++span.f15 { color: #fff; } ++span.b0 { background-color: #000; } ++span.b1 { background-color: #b00; } ++span.b2 { background-color: #0b0; } ++span.b3 { background-color: #bb0; } ++span.b4 { background-color: #00b; } ++span.b5 { background-color: #b0b; } ++span.b6 { background-color: #0bb; } ++span.b7 { background-color: #bbb; } + + body { background-color: #888; } +-#term { +- float: left; +-} diff --git a/community/ajaxterm/ajaxterm.confd b/community/ajaxterm/ajaxterm.confd new file mode 100644 index 0000000000..4ddff72ae5 --- /dev/null +++ b/community/ajaxterm/ajaxterm.confd @@ -0,0 +1,3 @@ +DAEMON=/usr/bin/ajaxterm +PORT=8022 +PIDFILE=/var/run/ajaxterm.pid diff --git a/community/ajaxterm/ajaxterm.initd b/community/ajaxterm/ajaxterm.initd new file mode 100644 index 0000000000..79797004e2 --- /dev/null +++ b/community/ajaxterm/ajaxterm.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +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 $? +} |