diff options
Diffstat (limited to 'development/regina-rexx')
-rw-r--r-- | development/regina-rexx/README | 9 | ||||
-rw-r--r-- | development/regina-rexx/doinst.sh | 3 | ||||
-rw-r--r-- | development/regina-rexx/rc.rxstack | 50 | ||||
-rw-r--r-- | development/regina-rexx/regina-rexx.SlackBuild | 26 | ||||
-rw-r--r-- | development/regina-rexx/regina-rexx.info | 6 |
5 files changed, 79 insertions, 15 deletions
diff --git a/development/regina-rexx/README b/development/regina-rexx/README index a79efb12f4..018d4f7a9e 100644 --- a/development/regina-rexx/README +++ b/development/regina-rexx/README @@ -8,4 +8,13 @@ inexperienced programmers yet powerful enough for experienced users. It is also a language ideally suited as a macro language for other applications. +To create a static version of the rexx binary executable do this: + FLAVOR=static ./regina-rexx.SlackBuild +Otherwise to create the normal dynamic version just do this: + ./regina-rexx.SlackBuild + +After installation of the package, a startup script for the rxstack is created: + /etc/rc.d/rc.rxstack + +If this needs to run, then it could be started from the /etc/rc.d/rc.local file. diff --git a/development/regina-rexx/doinst.sh b/development/regina-rexx/doinst.sh index 1a967bff1b..8662259c99 100644 --- a/development/regina-rexx/doinst.sh +++ b/development/regina-rexx/doinst.sh @@ -22,5 +22,4 @@ preserve_perms() { config $NEW } -preserve_perms etc/rc.d/init.d/rxstack.new - +preserve_perms etc/rc.d/rc.rxstack.new diff --git a/development/regina-rexx/rc.rxstack b/development/regina-rexx/rc.rxstack new file mode 100644 index 0000000000..13a59166a5 --- /dev/null +++ b/development/regina-rexx/rc.rxstack @@ -0,0 +1,50 @@ +#!/bin/sh +# +# description: Regina Stack daemon. +# processname: rxstack + +# 2014-06-09 R Narron Rewrite for Slackware + +DAEMON=/usr/bin/rxstack +RETVAL=0 + +# start rxstack +rxstack_start() { + if [ -x $DAEMON ]; then + echo -n "Starting Regina Stack: $DAEMON" + $DAEMON -d + RETVAL=$? + fi +} + +# stop rxstack +rxstack_stop() { + echo -n "Shutting down Regina Stack: " + killall -2 $DAEMON + RETVAL=$? +} + +# restart rxstack +rxstack_restart() { + rxstack_stop + sleep 1 + rxstack_start + RETVAL=$? +} + +case "$1" in + start) + rxstack_start + ;; + stop) + rxstack_stop + ;; + restart) + rxstack_restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + RETVAL=1 +esac + +exit $RETVAL diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild index 52310e653e..acde02bf70 100644 --- a/development/regina-rexx/regina-rexx.SlackBuild +++ b/development/regina-rexx/regina-rexx.SlackBuild @@ -4,9 +4,10 @@ # Written by Diogo Leal (diogo@diogoleal.com) PRGNAM=regina-rexx -VERSION=${VERSION:-3.7} +VERSION=${VERSION:-3.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary. SRCNAM=Regina-REXX @@ -47,13 +48,19 @@ cd $SRCNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; chmod 644 $DOCS +if [ "${FLAVOR,,*}" = "static" ]; then + mv -f configure configure.orig + sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure + chmod 744 configure +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -68,12 +75,11 @@ CXXFLAGS="$SLKCFLAGS" \ make -j1 make install DESTDIR=$PKG -# Rename the init script to .new and handle it in the doinst.sh -cd $PKG/etc/rc.d/init.d - mv rxstack rxstack.new -cd - +mkdir -p $PKG/etc/rc.d/ +install -m0644 $CWD/rc.rxstack $PKG/etc/rc.d/rc.rxstack.new +rm -f $PKG/etc/rxstack -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/development/regina-rexx/regina-rexx.info b/development/regina-rexx/regina-rexx.info index a330cc1868..02569a930f 100644 --- a/development/regina-rexx/regina-rexx.info +++ b/development/regina-rexx/regina-rexx.info @@ -1,8 +1,8 @@ PRGNAM="regina-rexx" -VERSION="3.7" +VERSION="3.8" HOMEPAGE="http://regina-rexx.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/regina-rexx/Regina-REXX-3.7.tar.gz" -MD5SUM="276235e489f7f8596cb9c6e00f8a61f3" +DOWNLOAD="http://downloads.sourceforge.net/regina-rexx/Regina-REXX-3.8.tar.gz" +MD5SUM="562ceb892e53621c49e9aa74bf0972ab" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |