diff options
author | sem <sem@FreeBSD.org> | 2005-05-18 00:02:37 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-05-18 00:02:37 +0800 |
commit | 1478098f8933caba435afa6a8b84d4dfdab444a4 (patch) | |
tree | 13914e57f50991a1afcfe6f7e1b60ce4ec302313 /databases/firebird-server/files | |
parent | 35c3801e8c1fc8bd143f05cc065fcd776fb3ae8f (diff) | |
download | freebsd-ports-gnome-1478098f8933caba435afa6a8b84d4dfdab444a4.tar.gz freebsd-ports-gnome-1478098f8933caba435afa6a8b84d4dfdab444a4.tar.zst freebsd-ports-gnome-1478098f8933caba435afa6a8b84d4dfdab444a4.zip |
- Split databases/firebird in -client and -server ports
- Install libs and includes on ${LOCALBASE} instead ${LOCALBASE}/firebird
PR: ports/79337
Submitted by: maintainer
Diffstat (limited to 'databases/firebird-server/files')
5 files changed, 120 insertions, 42 deletions
diff --git a/databases/firebird-server/files/aliases.conf.in b/databases/firebird-server/files/aliases.conf.in new file mode 100644 index 000000000000..05a28980b909 --- /dev/null +++ b/databases/firebird-server/files/aliases.conf.in @@ -0,0 +1,8 @@ +# +# List of known database aliases +# ------------------------------ +# +# Examples: +# +# employee = %%PREFIX%%/examples/employee.fdb +# diff --git a/databases/firebird-server/files/patch-builds::posix::Makefile.in.inet_server b/databases/firebird-server/files/patch-builds::posix::Makefile.in.inet_server new file mode 100644 index 000000000000..8dcddef34a6a --- /dev/null +++ b/databases/firebird-server/files/patch-builds::posix::Makefile.in.inet_server @@ -0,0 +1,20 @@ +--- builds/posix/Makefile.in.inet_server.orig Fri Sep 17 20:34:21 2004 ++++ builds/posix/Makefile.in.inet_server Wed Mar 2 16:09:41 2005 +@@ -39,6 +39,8 @@ + + @SET_MAKE@ + ++LINK_OPTS += ++ + SERVER_Files = server_stub.cpp + SERVER_Sources = $(addprefix remote/, $(SERVER_Files)) + SERVER_Objects = $(addprefix $(OBJ)/, $(addsuffix .o, $(basename $(SERVER_Sources)))) +@@ -51,7 +53,7 @@ + + # SD: We don't need to rebuild fb_inet_server every time libfbembed.so changed, + # but we must ensure it's existance +-fb_inet_server : $(LIBFBEMBED_SO) $(FB_CLASSIC_SERVER) ++fb_inet_server : $(FB_CLASSIC_SERVER) + + $(FB_CLASSIC_SERVER): $(SERVER_Objects) + $(LD) $(LINK_OPTS) $^ -o $@ $(FBEMBED_LINK) $(LIB_GUI) $(LINK_LIBS) diff --git a/databases/firebird-server/files/patch-src::install::arch-specific::freebsd::install.sh.in b/databases/firebird-server/files/patch-src::install::arch-specific::freebsd::install.sh.in deleted file mode 100644 index 03df0f2e369c..000000000000 --- a/databases/firebird-server/files/patch-src::install::arch-specific::freebsd::install.sh.in +++ /dev/null @@ -1,42 +0,0 @@ ---- src/install/arch-specific/freebsd/install.sh.in.orig Tue Apr 26 07:14:26 2005 -+++ src/install/arch-specific/freebsd/install.sh.in Tue Apr 26 07:15:05 2005 -@@ -55,13 +55,6 @@ - InstallFirebirdPrefix=@prefix@ - InstallPrefix=${InstallFirebirdPrefix%/firebird} - --if [ -d $InstallFirebirdPrefix ]; then -- if [ -d $InstallPrefix/firebird.old ]; then -- rm -rf $InstallPrefix/firebird.old -- fi -- cp -Rp $InstallFirebirdPrefix $InstallPrefix/firebird.old --fi -- - if [ `id -u` -ne 0 ]; then - echo; echo "You must be root to run this step!"; echo; echo - exit 1 -@@ -284,25 +277,6 @@ - [ -f aliases.conf ] || install -o $fbUID -g $fbGID -m 444 aliases.conf.sample aliases.conf - [ -f firebird.conf ] || install -o $fbUID -g $fbGID -m 444 firebird.conf.sample firebird.conf - [ -f security.fdb ] || install -o $fbUID -g $fbGID -m 660 security.fdb.sample security.fdb -- --# remove any existing gds service --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 -- --# add the gds service and restart inetd --cat >>/etc/services <<EOF --gds_db 3050/tcp #InterBase Database Remote Protocol --EOF --cat >>/etc/inetd.conf <<EOF --gds_db stream tcp nowait firebird $InstallFirebirdPrefix/bin/fb_inet_server fb_inet_server --EOF --if [ -f /var/run/inetd.pid ]; then -- kill -HUP `cat /var/run/inetd.pid` --fi - - # shared lib startup script - if [ -d $InstallPrefix/etc/rc.d ]; then diff --git a/databases/firebird-server/files/pkg-install.in b/databases/firebird-server/files/pkg-install.in new file mode 100644 index 000000000000..d442ff99ee3f --- /dev/null +++ b/databases/firebird-server/files/pkg-install.in @@ -0,0 +1,70 @@ +#!/bin/sh + +PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:%%PREFIX%%/bin +PREFIX=%%PREFIX%% +DB_DIR=%%PREFIX%% + +USER=firebird +GROUP=${USER} +UID=3050 +GID=${UID} +HOME=${DB_DIR} +DESCR="Firebird Database Administrator" + +case $2 in +PRE-INSTALL) + if pw group show "${GROUP}" 2> /dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if pw groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if pw user show "${USER}" 2> /dev/null; then + echo "You already have a user \"${USER}\", so I will use it." + + if pw usermod ${USER} -d ${HOME}; then + echo "Changed home directory of \"${USER}\" to \"${HOME}\"" + else + echo "Changing home directory of \"${USER}\" to \"${HOME}\" failed..." + exit 1 + fi + else + if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -d ${NOME} -s /sbin/nologin -c "${DESCR}" ; then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi + fi + ;; + +POST-INSTALL) + for f in isc_init1.`hostname` isc_lock1.`hostname` isc_event1.`hostname` firebird.log + do + touch ${PREFIX}/${f} + chown ${USER}:${GROUP} ${PREFIX}/$f + chmod 660 ${PREFIX}/${f} + done + + # add the gds service and restart inetd + cat /etc/services | grep -v gds_db > /etc/services.new + cat >>/etc/services.new <<EOF +gds_db 3050/tcp #InterBase Database Remote Protocol +EOF + mv /etc/services.new /etc/services + + cat /etc/inetd.conf | grep -v gds_db > /etc/inetd.conf.new + cat >>/etc/inetd.conf.new <<EOF +gds_db stream tcp nowait firebird ${PREFIX}/bin/fb_inet_server fb_inet_server +EOF + mv /etc/inetd.conf.new /etc/inetd.conf + + if [ -f /var/run/inetd.pid ]; then + kill -HUP `cat /var/run/inetd.pid` + fi +esac diff --git a/databases/firebird-server/files/pkg-message.in b/databases/firebird-server/files/pkg-message.in new file mode 100644 index 000000000000..2cab9049eba5 --- /dev/null +++ b/databases/firebird-server/files/pkg-message.in @@ -0,0 +1,22 @@ +--------------------------------------------------------- +Firebird is now installed. A symbolic link from +/usr/interbase -> %%PREFIX%%/firebird may be needed +for compatibility with existing programs that use +Firebird. + +The symbolic link can be created with: + +% ln -s %%PREFIX%%/firebird /usr/interbase + +It is STRONGLY recommended that you change the SYSDBA +password with: + +% cd %%PREFIX%%/firebird +% gsec -user SYSDBA -pass masterkey +GSEC> modify SYSDBA -pw newpassword +GSEC> quit + +before doing anything serious with Firebird. + +See %%PREFIX%%/firebird/RELNOTES for more. +--------------------------------------------------------- |