summaryrefslogtreecommitdiff
path: root/databases/firebird-client/scripts
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-11 17:23:49 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-11 17:23:49 +0000
commit1f412c28a53a1b08c4f6c3a64677e0568388577c (patch)
tree7b8c29151266c541a5201c165909c912cbd3cc59 /databases/firebird-client/scripts
parentupgrade to 20021103 (diff)
Add SuperServer build
Remove perl from scripts Remove scripts + consolidate into pkg-install PR: 45185 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=69904
Diffstat (limited to 'databases/firebird-client/scripts')
-rw-r--r--databases/firebird-client/scripts/addservice9
-rw-r--r--databases/firebird-client/scripts/createuser50
-rw-r--r--databases/firebird-client/scripts/pre-build15
-rw-r--r--databases/firebird-client/scripts/pre-install20
-rw-r--r--databases/firebird-client/scripts/rmservice8
5 files changed, 0 insertions, 102 deletions
diff --git a/databases/firebird-client/scripts/addservice b/databases/firebird-client/scripts/addservice
deleted file mode 100644
index df9aea5e91de..000000000000
--- a/databases/firebird-client/scripts/addservice
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-cat >>/etc/services <<EOF
-gds_db 3050/tcp #InterBase Database Remote Protocol
-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`
diff --git a/databases/firebird-client/scripts/createuser b/databases/firebird-client/scripts/createuser
deleted file mode 100644
index eba7ce1b887d..000000000000
--- a/databases/firebird-client/scripts/createuser
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/perl
-#
-
-eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
-& eval 'exec /usr/bin/perl -S $0 $argv:q'
-if 0;
-
-if( $> ) {
- print "\nYou must be root to run this step!\n\n";
- exit 1;
-}
-
-if( getpwnam( "firebird" ) ) {
- ( $null, $null, $fbUID ) = getpwnam( "firebird" );
-} else {
- $fbUID = 90;
- while( getpwuid( $fbUID ) ) {
- $fbUID++;
- }
-}
-
-if( getgrnam( "firebird" ) ) {
- ( $null, $null, $fbGID ) = getgrnam( "firebird" );
-} else {
- $fbGID = 90;
- while( getgrgid( $fbGID ) ) {
- $fbGID++;
- }
- &append_file( "/etc/group", "firebird:*:$fbGID:" );
-}
-
-print "firebird user using uid $fbUID\n";
-print "firebird user using gid $fbGID\n";
-
-system( "/usr/bin/chpass -a \"firebird:*:$fbUID:$fbGID\:\:0:0:Firebird pseudo-user:$ENV{'PREFIX'}/firebird:/bin/sh\"" );
-
-sub append_file {
- local($file,@list) = @_;
- local($LOCK_EX) = 2;
- local($LOCK_NB) = 4;
- local($LOCK_UN) = 8;
-
- open(F, ">> $file") || die "$file: $!\n";
- while( ! flock( F, $LOCK_EX | $LOCK_NB ) ) {
- exit 1;
- }
- print F join( "\n", @list) . "\n";
- close F;
- flock( F, $LOCK_UN );
-}
diff --git a/databases/firebird-client/scripts/pre-build b/databases/firebird-client/scripts/pre-build
deleted file mode 100644
index 6605df7770fd..000000000000
--- a/databases/firebird-client/scripts/pre-build
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-GDS_LOCK_MGR=`ps ax |grep gds_lock_mgr |grep -v grep`;
-
-if [ "$GDS_LOCK_MGR" != "" ]; then
- echo "It appears you have a gds_lock_manager already running.";
- echo;
- echo "You must cease all InterBase operations to build this port.";
- echo "Make sure nobody is connected to any databases, then use";
- echo "'gds_drop -a' and manually verify (with ipcs) that the";
- echo "semaphores were removed.";
- exit 1;
-fi
-exit 0
-
diff --git a/databases/firebird-client/scripts/pre-install b/databases/firebird-client/scripts/pre-install
deleted file mode 100644
index a6e1b37a9008..000000000000
--- a/databases/firebird-client/scripts/pre-install
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-if [ -d $PREFIX/firebird ]; then
- if [ -d $PREFIX/firebird.old ]; then
- rm -rf $PREFIX/firebird.old
- fi
- mv $PREFIX/firebird $PREFIX/firebird.old
-fi
-
-if [ -L /usr/interbase ]; then
- rm -f /usr/interbase
-fi
-
-if [ -d /usr/interbase ]; then
- mv /usr/interbase /usr/interbase.old
-fi
-
-ln -fs $PREFIX/firebird /usr/interbase
-
-perl $SCRIPTDIR/createuser
diff --git a/databases/firebird-client/scripts/rmservice b/databases/firebird-client/scripts/rmservice
deleted file mode 100644
index 58adfc17419d..000000000000
--- a/databases/firebird-client/scripts/rmservice
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-cp /etc/services /etc/services.old
-cp /etc/inetd.conf /etc/inetd.conf.old
-cat /etc/services |grep -v gds_db >/etc/services.new
-cat /etc/inetd.conf |grep -v gds_db >/etc/inetd.conf.new
-mv /etc/services.new /etc/services
-mv /etc/inetd.conf.new /etc/inetd.conf