diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 20:06:35 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-10 09:50:39 -0300 |
commit | c257cd108add70098957484de562477813f8743b (patch) | |
tree | 449f32cc08c4535c35c09c8dd291d9a759cde47a /unmaintained | |
parent | 2d96c45e0a532d5af37b6425b92734091bd4682e (diff) | |
download | aports-c257cd108add70098957484de562477813f8743b.tar.bz2 aports-c257cd108add70098957484de562477813f8743b.tar.xz |
unmaintained/ajaxterm: move from community
- Python2 only
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/ajaxterm/APKBUILD | 38 | ||||
-rw-r--r-- | unmaintained/ajaxterm/ajaxterm-css.patch | 71 | ||||
-rw-r--r-- | unmaintained/ajaxterm/ajaxterm.confd | 3 | ||||
-rw-r--r-- | unmaintained/ajaxterm/ajaxterm.initd | 21 |
4 files changed, 133 insertions, 0 deletions
diff --git a/unmaintained/ajaxterm/APKBUILD b/unmaintained/ajaxterm/APKBUILD new file mode 100644 index 0000000000..583074b3a1 --- /dev/null +++ b/unmaintained/ajaxterm/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ajaxterm +_pkgname=Ajaxterm +pkgver=0.11 +pkgrel=1 +_commit="2eaa3e989782d8259a12c8cb7d6204433ae19264" +pkgdesc="Simple AJAX Terminal" +url="https://github.com/antonylesuisse/qweb/tree/master/ajaxterm" +arch="noarch" +license="GPL-2.0-or-later OR LGPL-2.1-or-later" +depends="python2" +subpackages="$pkgname-doc $pkgname-openrc" +source="https://sources.archlinux.org/other/community/ajaxterm/ajaxterm-$pkgver-${_commit}.tar.gz + ajaxterm-css.patch + ajaxterm.initd + ajaxterm.confd" + +builddir="$srcdir"/$pkgname-${_commit:0:7} + +build() { + ./configure --prefix=/usr +} + +package() { + 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 +} +sha512sums="8498100fc4ca8b669f96280b7fefaec7b0224914fa56915c80b059a38e0de03b0303b6ce93364fea6e702691e0c1607e9f6fd9892633ad469930be04c5b30022 ajaxterm-0.11-2eaa3e989782d8259a12c8cb7d6204433ae19264.tar.gz +9b5adf129cafdcfa9d7b4027480d22b06e3a0486039458fb213b8d8104d7bfc9ed3886cf8d13f594c6afe9255cda5dcba3102330ab383d4efe556510d6937f11 ajaxterm-css.patch +be3dff846e906c3ac181ce017d546a4eb27aff6f8774c948fbcc2dc90012ceda26ec75318c17c5e0fe59fcb5e0d570e08c8ac800d7fa0d6ab068dcd348353661 ajaxterm.initd +da8fe66f8e1eefb8748d94431394ecc6d5c0c48910242fcb9b3619f91418443cb995a2d7c8025918fc6b3c01f471a701ce50c29225bccc75ebb451c332801743 ajaxterm.confd" diff --git a/unmaintained/ajaxterm/ajaxterm-css.patch b/unmaintained/ajaxterm/ajaxterm-css.patch new file mode 100644 index 0000000000..f062cd5c57 --- /dev/null +++ b/unmaintained/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/unmaintained/ajaxterm/ajaxterm.confd b/unmaintained/ajaxterm/ajaxterm.confd new file mode 100644 index 0000000000..4ddff72ae5 --- /dev/null +++ b/unmaintained/ajaxterm/ajaxterm.confd @@ -0,0 +1,3 @@ +DAEMON=/usr/bin/ajaxterm +PORT=8022 +PIDFILE=/var/run/ajaxterm.pid diff --git a/unmaintained/ajaxterm/ajaxterm.initd b/unmaintained/ajaxterm/ajaxterm.initd new file mode 100644 index 0000000000..79797004e2 --- /dev/null +++ b/unmaintained/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 $? +} |