diff options
author | demon <demon@FreeBSD.org> | 2001-12-03 01:53:14 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2001-12-03 01:53:14 +0800 |
commit | 2f4a41c68316b5ad120514b9e4f09d48f4e08822 (patch) | |
tree | 804c95bb12b050dca34dadb4ebe588ef0f09d147 /databases/firebird/pkg-install | |
parent | 386e73b27a1bb39ba708ab32af54c8ccc8499750 (diff) | |
download | freebsd-ports-gnome-2f4a41c68316b5ad120514b9e4f09d48f4e08822.tar.gz freebsd-ports-gnome-2f4a41c68316b5ad120514b9e4f09d48f4e08822.tar.zst freebsd-ports-gnome-2f4a41c68316b5ad120514b9e4f09d48f4e08822.zip |
Minor updates from MAINTAINER.
PR: 32423
Submitted by: chris@aims.com.au
Diffstat (limited to 'databases/firebird/pkg-install')
-rw-r--r-- | databases/firebird/pkg-install | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/databases/firebird/pkg-install b/databases/firebird/pkg-install index 61c651df083e..c6b00320cd7e 100644 --- a/databases/firebird/pkg-install +++ b/databases/firebird/pkg-install @@ -73,10 +73,6 @@ EOF elif [ "$2" = "POST-INSTALL" ]; then chown -R firebird:firebird $PKG_PREFIX/firebird -# make lib ldconfig-compatible -chown -R root:wheel $PKG_PREFIX/firebird/lib -chmod -R g-w $PKG_PREFIX/firebird/lib - # Turn everybody to read only. chmod -R o=r $PKG_PREFIX/firebird @@ -92,7 +88,13 @@ for i in `find $PKG_PREFIX/firebird -print` fi done +# make lib ldconfig-compatible +chown -R root:wheel $PKG_PREFIX/firebird/lib +chmod -R g-w $PKG_PREFIX/firebird/lib +# Fix UDF load problem +cd $PKG_PREFIX/firebird/lib +ln -sf ib_util.so libib_util.so cd $PKG_PREFIX/firebird/bin @@ -143,7 +145,15 @@ EOF cat >>/etc/inetd.conf <<EOF gds_db stream tcp nowait firebird /usr/interbase/bin/gds_inet_server gds_inet_server EOF -kill -HUP `cat /var/run/inetd.pid` -kill -HUP `cat /var/run/inetd.pid` +if [ -f /var/run/inetd.pid ]; then + kill -HUP `cat /var/run/inetd.pid` +fi + +# shared lib startup script +if [ -d $PKG_PREFIX/etc/rc.d ]; then + ( + echo "#!/bin/sh"; echo "[ -d $PKG_PREFIX/firebird/lib ] && /sbin/ldconfig -m $PKG_PREFIX/firebird/lib" + ) > $PKG_PREFIX/etc/rc.d/000.firebird.sh +fi fi |