diff options
author | Paul Onyschuk <blink@bojary.koba.pl> | 2011-07-27 17:07:21 +0200 |
---|---|---|
committer | Paul Onyschuk <blink@bojary.koba.pl> | 2011-07-27 17:07:21 +0200 |
commit | 4efe10786d0cf6732f704e8dabed2cc2f5c49b48 (patch) | |
tree | 44d9a9bdf632437ca9cf3f6a311362846151915a /testing | |
parent | 5dc1a4a8e99930918884737cfb51d5a6da61844c (diff) | |
download | aports-4efe10786d0cf6732f704e8dabed2cc2f5c49b48.tar.bz2 aports-4efe10786d0cf6732f704e8dabed2cc2f5c49b48.tar.xz |
testing/regina-rexx: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/regina-rexx/APKBUILD | 46 | ||||
-rw-r--r-- | testing/regina-rexx/regina-rexx.initd | 28 |
2 files changed, 74 insertions, 0 deletions
diff --git a/testing/regina-rexx/APKBUILD b/testing/regina-rexx/APKBUILD new file mode 100644 index 000000000..7b04ae48d --- /dev/null +++ b/testing/regina-rexx/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: +# Maintainer: +pkgname=regina-rexx +_pkgname=Regina-REXX +pkgver=3.5 +pkgrel=0 +pkgdesc="Regina is an implementation of a Rexx interpreter." +url="http://regina-rexx.sourceforge.net/" +arch="all" +license="LGPL" +depends= +depends_dev= +makedepends="" +install="" +subpackages="$pkgname-doc $pkgname-dev" +source="regina-rexx.initd + http://downloads.sourceforge.net/regina-rexx/$_pkgname-$pkgver.tar.gz" + +_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 --libdir=/usr/lib + make -j1 || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 + rm -rf "$pkgdir"/usr/etc + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 +} + +md5sums="d798859c38eb61088f1ca20b16e78639 regina-rexx.initd +914e223d882f0e4a35f4efda0a75920d Regina-REXX-3.5.tar.gz" diff --git a/testing/regina-rexx/regina-rexx.initd b/testing/regina-rexx/regina-rexx.initd new file mode 100644 index 000000000..a3e184780 --- /dev/null +++ b/testing/regina-rexx/regina-rexx.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +name=rxstack +daemon=/usr/bin/$name + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${name}.pid \ + --exec ${daemon} -- -d + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/$name.pid \ + --exec ${daemon} + eend $? +} + |