the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: regina
Version: 3.2
Revision: 1027
BuildDependsOnly: true
Maintainer: Eric Oberle
License: LGPL
GCC: 4.0
Source: mirror:sourceforge:%n-rexx/Regina-REXX-%v.tar.gz
Source-MD5: f001f7bf764e107032bc334c66d94031
SourceDirectory: Regina-%v
BuildDepends: fink (>= 0.24.12-1)
Depends: %N-shlibs (= %v-%r), %N-bin, daemonic
PatchFile: %n.patch
PatchFile-MD5: 8dbb9a04ec2d42eac7ea66d0c2a420d0
UseMaxBuildJobs: false
ConfigureParams: --mandir=%p/share/man
InstallScript: <<
make install prefix=%i mandir=%i/share/man sharedir=%i/share/regina
perl -pi -e 's+%i/bin/rexx+%p/bin/regina+' %i/share/regina/*
perl -pi -e 's+%i/bin/regina+%p/bin/regina+' %i/share/regina/*
mkdir -p %i/sbin
mkdir -p %i/etc
/usr/bin/install -m 755 -c ./rxstack.init.d %i/sbin/rxstack-control
mv %i/lib/libregina.dylib %i/lib/libregina.0.dylib
mv %i/lib/libtest2.dylib %i/lib/libtest2.0.dylib
mv %i/lib/libtest1.dylib %i/lib/libtest1.0.dylib
ln -s libregina.0.dylib %i/lib/libregina.dylib
ln -s libtest1.0.dylib %i/lib/libtest1.dylib
ln -s libtest2.0.dylib %i/lib/libtest2.dylib
## fix install_names
install_name_tool -id %p/lib/libtest1.0.dylib %i/lib/libtest1.0.dylib
install_name_tool -id %p/lib/libtest2.0.dylib %i/lib/libtest2.0.dylib
<<
DaemonicName: rexx-stack
DaemonicFile: <<
<<
SplitOff: <<
Package: %N-shlibs
Files: lib/libregina.0.dylib lib/libtest1.0.dylib lib/libtest2.0.dylib
Shlibs: <<
%p/lib/libregina.0.dylib 0.0.0 %n (>= 3.2-12)
%p/lib/libtest1.0.dylib 0.0.0 %n (>= 3.2-12)
%p/lib/libtest2.0.dylib 0.0.0 %n (>= 3.2-12)
<<
DocFiles: COPYING-LIB
Description: Regina, a Rexx interpreter
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r)
Files: bin etc sbin share/man
Description: Regina, a Rexx interpreter
DocFiles: COPYING-LIB
<<
Docfiles: COPYING-LIB README.* HACKERS.txt BUGS TODO
Description: Rexx interpreter
DescDetail: <<
Regina is an open source interpreter of the rexx language
<<
DescPackaging: <<
In order to allow its stack to be passed to non-rexx/regina programs, the authors of regina have implemented the system-wide 'stack' typical of vm/mvs/cms systems via a unix daemon.
Like all such daemons, this one is supposed to be started at system startup time. In the default distribution of regina, this daemon configuration (referred to in the documentation as rxstack), is installed in the linux way, in /etc/regina/rc.d/init.d. For the fink distribuiton, it is installed in *prefix*/sbin, and a daemonic file is provided. (See fink documentation for more information on daemonic).
The important upshot of this (other than the changed file locations) is that IF you install the regina package (and not just regina-bin and regina-shlibs), the tcp daemon will automatically start up on your system. If you do not wish to be exposed to the security issues this raises (see the regina documentation) then you should only install regina-bin and regina-shlibs.
<<
Homepage: http://regina-rexx.sourceforge.net
diff -ru Regina-3.2/Makefile.in Regina-3.2_patched/Makefile.in
--- Regina-3.2/Makefile.in Mon Apr 21 01:04:08 2003
+++ Regina-3.2_patched/Makefile.in Mon Jun 16 23:42:35 2003
@@ -849,9 +849,6 @@
$(INSTALL) -m 755 -c ./rxqueue$(EXE) $(bindir)/rxqueue$(EXE)
$(INSTALL) -m 755 -c ./rxstack$(EXE) $(bindir)/rxstack$(EXE)
$(INSTALL) -m 755 -c ./regina-config $(bindir)/regina-config
- -$(INSTALL) -m 755 -c ./rxstack.init.d $(sysconfdir)/rc.d/init.d/rxstack
- @echo "The system startup/shutdown script; rxstack, may have been installed into $(sysconfdir)/rc.d/init.d"
- @echo "You need to create the appropriate links to this script to start and stop rxstack automatically."
-$(INSTALL) -m 755 -c ./$(LIBPRE)$(LIBFILE)$(LIBPST) $(libdir)/$(LIBPRE)$(LIBFILE)$(LIBPST)
-$(RANLIB) $(libdir)/$(LIBPRE)$(LIBFILE)$(LIBPST)
$(INSTALL) -m 644 -c $(srcdir)/regina.1 $(mandir)/man1/regina.1
diff -ru Regina-3.2/rxstack.init.d.in Regina-3.2_patched/rxstack.init.d.in
--- Regina-3.2/rxstack.init.d.in Wed Oct 31 11:38:40 2001
+++ Regina-3.2_patched/rxstack.init.d.in Mon Jun 16 23:42:03 2003
@@ -3,11 +3,6 @@
# chkconfig:
# description: Regina Stack daemon.
# processname: rxstack
-# pidfile: /var/run/rxstack.pid
-# config: /etc/sysconfig/rxstack
-
-# source function library
-. /etc/rc.d/init.d/functions
RETVAL=0
@@ -16,13 +11,13 @@
echo -n "Starting Regina Stack: "
daemon @prefix@/bin/rxstack -d
echo
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rxstack
+ [ $RETVAL -eq 0 ] && touch @prefix@/var/lock/subsys/rxstack
;;
stop)
echo -n "Shutting down Regina Stack: "
killproc @prefix@/bin/rxstack -2
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rxstack
+ [ $RETVAL -eq 0 ] && rm -f @prefix@/var/lock/subsys/rxstack
echo
;;
restart|reload)
--- Regina-3.2/configure.orig Sun Oct 26 14:27:06 2003
+++ Regina-3.2/configure Sun Oct 26 14:27:28 2003
@@ -4233,7 +4233,7 @@
SHLPRE="lib"
# MH BUNDLE=".so"
BUNDLE=".junk"
- SHL_LD="${CC} -dynamiclib -install_name ${SHLPRE}${SHLFILE}${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
+ SHL_LD="${CC} -dynamiclib -install_name $libdir/${SHLPRE}${SHLFILE}.0${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
# MH EXTRATARGET="libregina$BUNDLE"
OTHER_INSTALLS="installlib"