Date: Thu, 6 Dec 2001 19:02:09 +1100 From: chris@aims.com.au To: <freebsd-gnats-submit@freebsd.org> Subject: ports/32553: [NEW PORT] databases/firebird-devel Message-ID: <200112060800.fB6806e39416@dbserver2.aims.private>
next in thread | raw e-mail | index | archive | help
>Number: 32553 >Category: ports >Synopsis: [NEW PORT] databases/firebird-devel >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 06 00:10:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Chris Knight >Release: FreeBSD 4.3-RELEASE i386 >Organization: AIMS Independent Computer Professionals >Environment: System: FreeBSD dbserver2.aims.private 4.3-RELEASE FreeBSD 4.3-RELEASE #6: Wed Oct 3 16:13:28 EST 2001 root@dbserver2.aims.private:/usr/src/sys/compile/DBSERVER i386 >Description: This is a port of Firebird RC1. I plan on using this port to keep up to date with the development snapshots of Firebird, while using the firebird port to maintain the latest stable release. >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # firebird-devel # firebird-devel/files # firebird-devel/files/RELNOTES # firebird-devel/files/patch-ab # firebird-devel/files/patch-aa # firebird-devel/files/patch-ad # firebird-devel/files/patch-ae # firebird-devel/files/patch-af # firebird-devel/scripts # firebird-devel/scripts/addservice # firebird-devel/scripts/createuser # firebird-devel/scripts/post-install # firebird-devel/scripts/pre-install # firebird-devel/scripts/rmservice # firebird-devel/pkg-install # firebird-devel/pkg-comment # firebird-devel/pkg-descr # firebird-devel/distinfo # firebird-devel/pkg-message # firebird-devel/pkg-plist # firebird-devel/Makefile # echo c - firebird-devel mkdir -p firebird-devel > /dev/null 2>&1 echo c - firebird-devel/files mkdir -p firebird-devel/files > /dev/null 2>&1 echo x - firebird-devel/files/RELNOTES sed 's/^X//' >firebird-devel/files/RELNOTES << 'END-of-firebird-devel/files/RELNOTES' XFirebird 1.0-RC1 FreeBSD Release Notes 06-Dec-2001 X-------------------------------------- XFB-T6.2.567 Firebird Release Candidate 1 X XWelcome to the FreeBSD Firebird port! Users should note that there Xwas a package called `firebird-1.0.tgz' released in mid-August X2000. Unfortunately, that package was released before Firebird Xversion numbering conventions were established, so although the Xversion number would suggest that it is newer than the current Xrelease, it is certainly not. Users of the August 1.0 package Xshould upgrade to 0.9_4 or later, which has fixed many bugs and Xsecurity problems, including the recently-discovered back door. X X Firebird originally required a running copy of Firebird (or XInterBase) in order to build itself. This port uses a boot kit to Xovercome that, so that it does not require itself to build. XUnfortunately, the side effect of this is that if you have a lock Xmanager running from an already-installed version of Firebird or XInterBase, this port will not build. X X Firebird is installed SUID with owner and group `firebird'. XThis does affect where you can and cannot create databases when Xconnecting remotely, as well as which existing databases you can Xaccess. If you want a database to be available remotely, be sure Xit's readable and writeable to group firebird. X X There may be times when you manage to get your system into a Xstate where using any of the Firebird utilites (isql, gbak, gsec, Xetc.) gives you the message "semget failed". One surefire way to Xdo this is to build and install the port. :) If this happens, Xmake sure that the lock manager is not running and its semaphores Xhave been removed. The former can be accomplished with 'ps ax X|grep gds' and 'kill'; the latter with 'ipcs -s' and 'ipcrm -s'. X X For example, after building and installing the port, you will Xprobably go through something like this: X X# isql /usr/interbase/isc4.gdb XStatement failed, SQLCODE = -902 X Xoperating system directive semget failed X-No such file or directory X X# ipcs -s XSemaphores: XT ID KEY MODE OWNER GROUP Xs 1310720 252034728 --rw-rw-rw- root wheel X X# ipcrm -s 1310720 X Xand you should be in business. X X Once this is done, you should be able to connect normally to Xdatabases. Your first connection will restart the lock manager. X X There may be times, however, when you still get "semget failed" Xeven though the lock manager is not running and the semaphores have Xbeen cleaned up. There seems to be a conflict with this release Xand the PostgreSQL 7 release as installed from the ports collection. XIf you're having trouble with Firebird and you're running PostgreSQL, Xtry stopping PostgreSQL: X X /usr/local/etc/rc.d/pgsql.sh stop X Xand see if that helps. X X Complete documentation for InterBase(tm) is available (free of Xcharge) from http://www.interbase.com/ in PDF format. While XInterBase and Firebird are two distinct entities, all InterBase Xdocumentation is pertinent to Firebird. More information on Firebird Xand InterBase can be found at the following: X X http://sourceforge.net/projects/firebird/ X http://www.ibphoenix.com/ X http://www.interbase2000.org/ X http://www.firebirdsql.org/ X XChris Knight X<chris@aims.com.au> END-of-firebird-devel/files/RELNOTES echo x - firebird-devel/files/patch-ab sed 's/^X//' >firebird-devel/files/patch-ab << 'END-of-firebird-devel/files/patch-ab' X--- setup_dirs.boot.orig Tue Oct 10 23:00:07 2000 X+++ setup_dirs.boot Tue Oct 10 23:00:22 2000 X@@ -49,7 +49,7 @@ X DefaultAns=$2 X echo -n "${1}" X Answer="$DefaultAns" X- read Answer X+# read Answer X } X X END-of-firebird-devel/files/patch-ab echo x - firebird-devel/files/patch-aa sed 's/^X//' >firebird-devel/files/patch-aa << 'END-of-firebird-devel/files/patch-aa' X--- buildBootDatabases.orig Tue Oct 10 23:00:39 2000 X+++ buildBootDatabases Tue Oct 10 23:00:46 2000 X@@ -49,7 +49,7 @@ X DefaultAns=$2 X echo -n "${1}" X Answer="$DefaultAns" X- read Answer X+# read Answer X } X X #-------------------------------------------------------------------- END-of-firebird-devel/files/patch-aa echo x - firebird-devel/files/patch-ad sed 's/^X//' >firebird-devel/files/patch-ad << 'END-of-firebird-devel/files/patch-ad' X--- setup_dirs.orig Tue Aug 7 05:00:12 2001 X+++ setup_dirs Sat Nov 17 21:13:32 2001 X@@ -60,7 +60,8 @@ X DefaultAns=$2 X echo -n "${1}" X Answer="$DefaultAns" X- read Answer X+# read Answer X+ echo "" X } X X END-of-firebird-devel/files/patch-ad echo x - firebird-devel/files/patch-ae sed 's/^X//' >firebird-devel/files/patch-ae << 'END-of-firebird-devel/files/patch-ae' X--- jrd/common.h.orig Sat Nov 17 20:07:00 2001 X+++ jrd/common.h Sun Nov 18 18:54:26 2001 X@@ -137,6 +137,7 @@ X /* FreeBSD for Intel platforms */ X #ifdef FREEBSD X X+#define UNIX_64_BIT_IO X #define FB_ALIGN(n,b) ((n + b - 1) & ~(b - 1)) X #define ALIGNMENT 4 X #define DOUBLE_ALIGN 4 END-of-firebird-devel/files/patch-ae echo x - firebird-devel/files/patch-af sed 's/^X//' >firebird-devel/files/patch-af << 'END-of-firebird-devel/files/patch-af' X--- jrd/enc.c.orig Fri Aug 4 06:50:03 2000 X+++ jrd/enc.c Sun Nov 18 19:17:19 2001 X@@ -31,6 +31,10 @@ X * X **************************************/ X X+#ifdef FREEBSD X+crypt_set_format("des"); X+#endif X+ X return CRYPT_FUNC( string, salt); X } X #endif END-of-firebird-devel/files/patch-af echo c - firebird-devel/scripts mkdir -p firebird-devel/scripts > /dev/null 2>&1 echo x - firebird-devel/scripts/addservice sed 's/^X//' >firebird-devel/scripts/addservice << 'END-of-firebird-devel/scripts/addservice' X#!/bin/sh X Xcat >>/etc/services <<EOF Xgds_db 3050/tcp #InterBase Database Remote Protocol XEOF Xcat >>/etc/inetd.conf <<EOF Xgds_db stream tcp nowait firebird /usr/interbase/bin/gds_inet_server gds_inet_server XEOF Xkill -HUP `cat /var/run/inetd.pid` END-of-firebird-devel/scripts/addservice echo x - firebird-devel/scripts/createuser sed 's/^X//' >firebird-devel/scripts/createuser << 'END-of-firebird-devel/scripts/createuser' X#!/usr/bin/perl X# X Xeval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' X& eval 'exec /usr/bin/perl -S $0 $argv:q' Xif 0; X Xif( $> ) { X print "\nYou must be root to run this step!\n\n"; X exit 1; X} X Xif( getpwnam( "firebird" ) ) { X ( $null, $null, $fbUID ) = getpwnam( "firebird" ); X} else { X $fbUID = 90; X while( getpwuid( $fbUID ) ) { X $fbUID++; X } X} X Xif( getgrnam( "firebird" ) ) { X ( $null, $null, $fbGID ) = getgrnam( "firebird" ); X} else { X $fbGID = 90; X while( getgrgid( $fbGID ) ) { X $fbGID++; X } X &append_file( "/etc/group", "firebird:*:$fbGID:" ); X} X Xprint "firebird user using uid $fbUID\n"; Xprint "firebird user using gid $fbGID\n"; X Xsystem( "/usr/bin/chpass -a \"firebird:*:$fbUID:$fbGID\:\:0:0:Firebird pseudo-user:$ENV{'PREFIX'}/firebird:/bin/sh\"" ); X Xsub append_file { X local($file,@list) = @_; X local($LOCK_EX) = 2; X local($LOCK_NB) = 4; X local($LOCK_UN) = 8; X X open(F, ">> $file") || die "$file: $!\n"; X while( ! flock( F, $LOCK_EX | $LOCK_NB ) ) { X exit 1; X } X print F join( "\n", @list) . "\n"; X close F; X flock( F, $LOCK_UN ); X} END-of-firebird-devel/scripts/createuser echo x - firebird-devel/scripts/post-install sed 's/^X//' >firebird-devel/scripts/post-install << 'END-of-firebird-devel/scripts/post-install' X#!/bin/sh X Xchown -R firebird:firebird $PREFIX/firebird X X# Turn everybody to read only. Xchmod -R o=r $PREFIX/firebird X X# Now fix up the mess. X X# fix up directories Xfor i in `find $PREFIX/firebird -print` X do X FileName=$i X if [ -d $FileName ] X then X chmod o=rx $FileName X fi X done X X# make lib ldconfig-compatible Xchown -R root:wheel $PREFIX/firebird/lib Xchmod -R g-w $PREFIX/firebird/lib X X# Fix UDF load problem Xcd $PREFIX/firebird/lib Xln -sf ib_util.so libib_util.so X Xcd $PREFIX/firebird/bin X X# all users can run everything. Xchmod o=rx * X X# SUID is needed for running server programs. X Xfor i in gds_lock_mgr gds_drop gds_inet_server X do X chmod ug+s $i X done X X X# Lock files X Xcd $PREFIX/firebird X Xfor i in isc_init1 isc_lock1 isc_event1 X do X FileName=$i.`hostname` X touch $FileName X chmod uga=rw $FileName X chown firebird:firebird $FileName X done X X Xtouch interbase.log Xchmod ugo=rw interbase.log X X# make databases writable by all Xchmod ugo=rw examples/v5/*.gdb Xchmod ugo=rw help/*.gdb Xchmod ugo=rw isc4.gdb X X# remove any existing gds service Xsh $SCRIPTDIR/rmservice X X# add the gds service and restart inetd Xsh $SCRIPTDIR/addservice Xif [ -f /var/run/inetd.pid ]; then X kill -HUP `cat /var/run/inetd.pid` Xfi X Xsed "s|%%PREFIX%%|$PREFIX|" $SCRIPTDIR/../pkg-message X Xcat <<EOF X X========================================================== X!! NOTE !! X XAs there are some oddities to the Firebird build process, Xit is likely you WILL NOT BE ABLE TO USE IT until you Xremove the semaphore created during the build process. XPlease read $PREFIX/firebird/RELNOTES for more information. X========================================================== X XEOF END-of-firebird-devel/scripts/post-install echo x - firebird-devel/scripts/pre-install sed 's/^X//' >firebird-devel/scripts/pre-install << 'END-of-firebird-devel/scripts/pre-install' X#!/bin/sh X Xif [ -d $PREFIX/firebird ]; then X if [ -d $PREFIX/firebird.old ]; then X rm -rf $PREFIX/firebird.old X fi X mv $PREFIX/firebird $PREFIX/firebird.old Xfi X Xif [ -L /usr/interbase ]; then X rm -f /usr/interbase Xfi X Xif [ -d /usr/interbase ]; then X mv /usr/interbase /usr/interbase.old Xfi X Xln -fs $PREFIX/firebird /usr/interbase X Xperl $SCRIPTDIR/createuser END-of-firebird-devel/scripts/pre-install echo x - firebird-devel/scripts/rmservice sed 's/^X//' >firebird-devel/scripts/rmservice << 'END-of-firebird-devel/scripts/rmservice' X#!/bin/sh X Xcp /etc/services /etc/services.old Xcp /etc/inetd.conf /etc/inetd.conf.old Xcat /etc/services |grep -v gds_db >/etc/services.new Xcat /etc/inetd.conf |grep -v gds_db >/etc/inetd.conf.new Xmv /etc/services.new /etc/services Xmv /etc/inetd.conf.new /etc/inetd.conf END-of-firebird-devel/scripts/rmservice echo x - firebird-devel/pkg-install sed 's/^X//' >firebird-devel/pkg-install << 'END-of-firebird-devel/pkg-install' X#!/bin/sh X X# Created in haste by smashing together various X# files from the port scripts. X Xif [ "$2" = "PRE-INSTALL" ]; then Xif [ -d $PKG_PREFIX/firebird ]; then X if [ -d $PKG_PREFIX/firebird.old ]; then X rm -rf $PKG_PREFIX/firebird.old X fi X mv $PKG_PREFIX/firebird $PKG_PREFIX/firebird.old Xfi X Xif [ -L /usr/interbase ]; then X rm -f /usr/interbase Xfi X Xif [ -d /usr/interbase ]; then X mv /usr/interbase /usr/interbase.old Xfi X Xln -fs $PKG_PREFIX/firebird /usr/interbase X Xperl <<EOF Xeval '(exit \$?0)' && eval 'exec /usr/bin/perl -S \$0 \${1+"\$@"}' X& eval 'exec /usr/bin/perl -S \$0 \$argv:q' Xif 0; X Xif( \$> ) { X print "\nYou must be root to run this step!\n\n"; X exit 1; X} X Xif( getpwnam( "firebird" ) ) { X ( \$null, \$null, \$fbUID ) = getpwnam( "firebird" ); X} else { X \$fbUID = 90; X while( getpwuid( \$fbUID ) ) { X \$fbUID++; X } X} X Xif( getgrnam( "firebird" ) ) { X ( \$null, \$null, \$fbGID ) = getgrnam( "firebird" ); X} else { X \$fbGID = 90; X while( getgrgid( \$fbGID ) ) { X \$fbGID++; X } X &append_file( "/etc/group", "firebird:*:\$fbGID:" ); X} X Xprint "firebird user using uid \$fbUID\n"; Xprint "firebird user using gid \$fbGID\n"; X Xsystem( "/usr/bin/chpass -a \"firebird:*:\$fbUID:\$fbGID\:\:0:0:Firebird pseudo-user:\$ENV{'PKG_PREFIX'}/firebird:/bin/sh\"" ); X Xsub append_file { X local(\$file,@list) = @_; X local(\$LOCK_EX) = 2; X local(\$LOCK_NB) = 4; X local(\$LOCK_UN) = 8; X X open(F, ">> \$file") || die "\$file: \$!\n"; X while( ! flock( F, \$LOCK_EX | \$LOCK_NB ) ) { X exit 1; X } X print F join( "\n", @list) . "\n"; X close F; X flock( F, \$LOCK_UN ); X} XEOF Xelif [ "$2" = "POST-INSTALL" ]; then Xchown -R firebird:firebird $PKG_PREFIX/firebird X X# Turn everybody to read only. Xchmod -R o=r $PKG_PREFIX/firebird X X# Now fix up the mess. X X# fix up directories Xfor i in `find $PKG_PREFIX/firebird -print` X do X FileName=$i X if [ -d $FileName ] X then X chmod o=rx $FileName X fi X done X X# make lib ldconfig-compatible Xchown -R root:wheel $PKG_PREFIX/firebird/lib Xchmod -R g-w $PKG_PREFIX/firebird/lib X X# Fix UDF load problem Xcd $PKG_PREFIX/firebird/lib Xln -sf ib_util.so libib_util.so X Xcd $PKG_PREFIX/firebird/bin X X# all users can run everything. Xchmod o=rx * X X# SUID is needed for running server programs. X Xfor i in gds_lock_mgr gds_drop gds_inet_server X do X chmod ug+s $i X done X X X# Lock files X Xcd $PKG_PREFIX/firebird X Xfor i in isc_init1 isc_lock1 isc_event1 X do X FileName=$i.`hostname` X touch $FileName X chmod uga=rw $FileName X chown firebird:firebird $FileName X done X X Xtouch interbase.log Xchmod ugo=rw interbase.log X X# make databases writable by all Xchmod ugo=rw examples/v5/*.gdb Xchmod ugo=rw help/*.gdb Xchmod ugo=rw isc4.gdb X X# remove any existing gds service Xcp /etc/services /etc/services.old Xcp /etc/inetd.conf /etc/inetd.conf.old Xcat /etc/services |grep -v gds_db >/etc/services.new Xcat /etc/inetd.conf |grep -v gds_db >/etc/inetd.conf.new Xmv /etc/services.new /etc/services Xmv /etc/inetd.conf.new /etc/inetd.conf X X# add the gds service and restart inetd Xcat >>/etc/services <<EOF Xgds_db 3050/tcp #InterBase Database Remote Protocol XEOF Xcat >>/etc/inetd.conf <<EOF Xgds_db stream tcp nowait firebird /usr/interbase/bin/gds_inet_server gds_inet_server XEOF Xif [ -f /var/run/inetd.pid ]; then X kill -HUP `cat /var/run/inetd.pid` Xfi X X# shared lib startup script Xif [ -d $PKG_PREFIX/etc/rc.d ]; then X ( X echo "#!/bin/sh"; echo "[ -d $PKG_PREFIX/firebird/lib ] && /sbin/ldconfig -m $PKG_PREFIX/firebird/lib" X ) > $PKG_PREFIX/etc/rc.d/000.firebird.sh Xfi X Xfi END-of-firebird-devel/pkg-install echo x - firebird-devel/pkg-comment sed 's/^X//' >firebird-devel/pkg-comment << 'END-of-firebird-devel/pkg-comment' XThe open-source InterBase(tm) 6.0 spin-off (Classic version) END-of-firebird-devel/pkg-comment echo x - firebird-devel/pkg-descr sed 's/^X//' >firebird-devel/pkg-descr << 'END-of-firebird-devel/pkg-descr' XThe open-source InterBase(tm) 6.0 spin-off (Classic server version) X XInterBase is a world-class DBMS with a history too rich to detail Xhere. Once selling for several thousands of dollars per license, Xsome very big players use it worldwide. Inprise has open-sourced XInterBase 6.0, and a lively bunch of folks has charged themselves Xwith seeing that it lives on through the Firebird project. X XNote that as of Firebird 0.9_4, the locksmith back door has Xbeen closed. X XFor more information on Firebird and InterBase, see: X Xhttp://sourceforge.net/projects/firebird/ Xhttp://www.ibphoenix.com/ Xhttp://www.interbase2000.org/ Xhttp://www.interbase.com/ Xhttp://www.firebirdsql.org/ X XFor more information on the locksmith back door, see: X Xhttps://www.kb.cert.org/vuls/id/247371 END-of-firebird-devel/pkg-descr echo x - firebird-devel/distinfo sed 's/^X//' >firebird-devel/distinfo << 'END-of-firebird-devel/distinfo' XMD5 (bootkit-RC1.tar.gz) = 0b4b1a8e5b3b017f946f3ab17650b933 XMD5 (Firebird-1.0.0-RC1-FreeBSD.tar.gz) = c47405a85022b71d4f7b981a76ce6f17 XMD5 (interbase0.9-4-v5examples.tar.gz) = 17cba82bbf5066d515f2dee97bf8327a XMD5 (/usr/ports/distfiles/bootkit-RC1.tar.gz) = 02a878aabc1cdb165833622a20fdcc19 END-of-firebird-devel/distinfo echo x - firebird-devel/pkg-message sed 's/^X//' >firebird-devel/pkg-message << 'END-of-firebird-devel/pkg-message' X X--------------------------------------------------------- XFirebird is now installed. There is a symbolic link from X/usr/interbase -> %%PREFIX%%/firebird. Firebird needs this Xlink for proper operation. X XIt is STRONGLY recommended that you change the SYSDBA Xpassword with: X X$ cd /usr/interbase X$ gsec -user SYSDBA -pass masterkey XGSEC> modify SYSDBA -pw newpassword XGSEC> quit X Xbefore doing anything serious with Firebird. X XSee %%PREFIX%%/firebird/RELNOTES for more. X--------------------------------------------------------- X END-of-firebird-devel/pkg-message echo x - firebird-devel/pkg-plist sed 's/^X//' >firebird-devel/pkg-plist << 'END-of-firebird-devel/pkg-plist' Xetc/rc.d/000.firebird.sh Xfirebird/intl/gdsintl Xfirebird/examples/v5/ib_udf.sql Xfirebird/examples/v5/README Xfirebird/examples/v5/align.h Xfirebird/examples/v5/api1.c Xfirebird/examples/v5/api10.c Xfirebird/examples/v5/api11.c Xfirebird/examples/v5/api12.c Xfirebird/examples/v5/api13.c Xfirebird/examples/v5/api14.e Xfirebird/examples/v5/api15.c Xfirebird/examples/v5/api16.c Xfirebird/examples/v5/api16t.c Xfirebird/examples/v5/api2.c Xfirebird/examples/v5/api3.c Xfirebird/examples/v5/api4.c Xfirebird/examples/v5/api5.c Xfirebird/examples/v5/api6.c Xfirebird/examples/v5/api7.c Xfirebird/examples/v5/api8.c Xfirebird/examples/v5/api9.c Xfirebird/examples/v5/api9f.c Xfirebird/examples/v5/apifull.c Xfirebird/examples/v5/employe2.sql Xfirebird/examples/v5/dyn1.e Xfirebird/examples/v5/dyn2.e Xfirebird/examples/v5/dyn3.e Xfirebird/examples/v5/dyn4.e Xfirebird/examples/v5/dyn5.e Xfirebird/examples/v5/dynfull.e Xfirebird/examples/v5/employee.gbk Xfirebird/examples/v5/employee.gdb Xfirebird/examples/v5/example.h Xfirebird/examples/v5/api9f.sql Xfirebird/examples/v5/intlemp.gbk Xfirebird/examples/v5/intlemp.gdb Xfirebird/examples/v5/stat1.e Xfirebird/examples/v5/stat10.e Xfirebird/examples/v5/stat11.e Xfirebird/examples/v5/stat12.e Xfirebird/examples/v5/stat12t.e Xfirebird/examples/v5/stat2.e Xfirebird/examples/v5/stat3.e Xfirebird/examples/v5/stat4.e Xfirebird/examples/v5/stat5.e Xfirebird/examples/v5/stat6.e Xfirebird/examples/v5/stat7.e Xfirebird/examples/v5/stat8.e Xfirebird/examples/v5/stat9.e Xfirebird/examples/v5/udf.sql Xfirebird/examples/v5/udflib.c Xfirebird/examples/v5/makefile Xfirebird/include/perf.h Xfirebird/include/ib_util.h Xfirebird/include/gds.hxx Xfirebird/include/gds.h Xfirebird/include/ibase.h Xfirebird/include/iberror.h Xfirebird/include/gds.f Xfirebird/UDF/ib_udf Xfirebird/lib/ib_util.so Xfirebird/lib/gds.a Xfirebird/lib/gds.so Xfirebird/lib/libgds.so Xfirebird/lib/libgds.so.1 Xfirebird/lib/libgds_pyxis.a Xfirebird/lib/libgds.a Xfirebird/lib/libib_util.so Xfirebird/lib/gds_pyxis.a Xfirebird/help/help.gbak Xfirebird/help/help.gdb Xfirebird/bin/isc4.gbak Xfirebird/bin/gpre Xfirebird/bin/gds_pipe Xfirebird/bin/gds_drop Xfirebird/bin/gds_lock_mgr Xfirebird/bin/gfix Xfirebird/bin/gdef Xfirebird/bin/isql Xfirebird/bin/gds_lock_print Xfirebird/bin/qli Xfirebird/bin/gds_inet_server Xfirebird/bin/gsplit Xfirebird/bin/gstat Xfirebird/bin/gds_relay Xfirebird/bin/gsec Xfirebird/bin/gbak Xfirebird/services.isc Xfirebird/isc_config Xfirebird/isc4.gdb Xfirebird/interbase.msg Xfirebird/interbase.log Xfirebird/inetd.conf.isc Xfirebird/RELNOTES X@dirrm firebird X@dirrm firebird/intl X@dirrm firebird/examples/v3 X@dirrm firebird/examples/v4 X@dirrm firebird/examples/v5 X@dirrm firebird/examples X@dirrm firebird/include X@dirrm firebird/UDF X@dirrm firebird/lib X@dirrm firebird/help X@dirrm firebird/bin END-of-firebird-devel/pkg-plist echo x - firebird-devel/Makefile sed 's/^X//' >firebird-devel/Makefile << 'END-of-firebird-devel/Makefile' X# New ports collection makefile for: Firebird-devel X# Date created: 03 December 2001 X# Whom: Chris Knight <chris@aims.com.au> X# X# $FreeBSD$ X# X XPORTNAME= firebird XPORTVERSION= 1.0.r1 XCATEGORIES= databases XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ X http://www.aims.com.au/chris/ XMASTER_SITE_SUBDIR=firebird XDISTFILES= bootkit-RC1.tar.gz \ X interbase0.9-4-v5examples.tar.gz \ X Firebird-1.0.0-RC1-FreeBSD.tar.gz X XMAINTAINER= chris@aims.com.au X XWRKSRC= ${WRKDIR}/interbase XINSTALLS_SHLIB= yes XLDCONFIG_DIRS= %%PREFIX%%/firebird/lib XMSG_FILE= ${PKGDIR}/pkg-message XPKGMESSAGE= ${WRKDIR}/pkg-message X XONLY_FOR_ARCHS= i386 X X.include <bsd.port.pre.mk> X Xdo-extract: X @${MKDIR} ${WRKDIR} X @( \ X cd ${WRKDIR}; ${TAR} -zxf \ X ${DISTDIR}/Firebird-1.0.0-RC1-FreeBSD.tar.gz; \ X cd interbase; ${TAR} -zxf ${DISTDIR}/bootkit-RC1.tar.gz; \ X ${CP} msgs/msg.gbak misc/msg.gbak \ X ) X Xpost-patch: X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} X.if ${OSVERSION} >= 500016 || ${OSVERSION} >= 430001 X @${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g' \ X ${WRKSRC}/builds/original/prefix.freebsd X.else X @${PERL} -pi -e 's,^crypt_set_format.*,,' ${WRKSRC}/jrd/enc.c X.endif X Xdo-configure: X @( \ X cd ${WRKDIR}/interbase; \ X INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \ X REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \ X ${SH} buildBootDatabases; \ X ${CAT} builds_win32/original/build_no.ksh | ${TR} -d '\r' \ X > builds_win32/original/build_no.ksh.fix; \ X ${MV} builds_win32/original/build_no.ksh.fix \ X builds_win32/original/build_no.ksh; \ X ${SH} setup_dirs boot FREEBSD PROD ${WRKDIR}/refDatabases boot; \ X ${TOUCH} ${WRKDIR}/interbase/dsql/parse.c \ X ) X Xdo-build: X @( \ X ${ECHO} '#!/bin/sh'; ${ECHO} \ X '[ -d ${LDCONFIG_RUNLIST} ] && ${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \ X ) > ${WRKDIR}/000.${PORTNAME}.sh X @( \ X ${LN} -sf ${WRKDIR}/refDatabases/jrd/isc.gdb \ X ${WRKDIR}/interbase/interbase/isc4.gdb; \ X cd ${WRKDIR}/interbase; \ X INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \ X REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \ X ${SH} boot.freebsd; \ X ) X Xdo-install: X @( \ X cd ${WRKDIR}/interbase; \ X ${RM} ${WRKDIR}/interbase/interbase/isc4_tmp.gdb; \ X ${CP} -Rp interbase ${PREFIX}/firebird; \ X ${RM} ${PREFIX}/firebird/install; \ X ${RM} ${PREFIX}/firebird/lib/libgds.so.1.0; \ X ${LN} -fs gds.so ${PREFIX}/firebird/lib/libgds.so.1; \ X cd ${PREFIX}/firebird/examples; \ X ${TAR} -xzf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz; \ X ${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/; \ X ${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/ \ X ) X X.include <bsd.port.post.mk> END-of-firebird-devel/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112060800.fB6806e39416>