From: Geoffrey C. S. <gsp...@us...> - 2001-01-14 15:36:48
|
Update of /cvsroot/firebird/interbase/firebird/gspeicher/firebird In directory usw-pr-cvs1:/tmp/cvs-serv5449/gspeicher/firebird Added Files: Makefile distinfo pkg-comment pkg-descr pkg-install pkg-message pkg-plist Log Message: - Here's my own little directory to hold any work that I do that other people might want to see and/or should be under revision control with the rest of Firebird in case I get hit by a bus. For now, it just holds the files from the FreeBSD 'port' (as in, the stuff that was submitted to the FreeBSD ports tree). --- NEW FILE --- # New ports collection makefile for: Firebird # Date created: 20 December 2000 # Whom: Geoffrey C. Speicher <ge...@se...> # # $FreeBSD$ # PORTNAME= firebird PORTVERSION= 0.9 PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=firebird DISTFILES= firebird-boot-kit.tar.gz \ interbase0.9-4-v5examples.tar.gz \ interbase0.9-4src.tar.gz MAINTAINER= ge...@se... WRKSRC= ${WRKDIR}/interbase INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/firebird/lib ONLY_FOR_ARCHS= i386 do-extract: @${MKDIR} ${WRKDIR} @( \ cd ${WRKDIR}; tar zxf ${DISTDIR}/interbase0.9-4src.tar.gz; \ cd interbase; tar zxf ${DISTDIR}/firebird-boot-kit.tar.gz; \ ${CP} msgs/msg.gbak misc/msg.gbak \ ) do-configure: @( \ cd ${WRKDIR}/interbase; \ INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \ REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \ ${SH} buildBootDatabases; \ ${SH} setup_dirs.boot FREEBSD PROD ${WRKDIR}/refDatabases boot; \ ) do-build: @( \ cd ${WRKDIR}/interbase; \ INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \ REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \ ${SH} boot.freebsd; \ ) do-install: @( \ cd ${WRKDIR}/interbase; \ ${CP} -Rp interbase ${PREFIX}/firebird; \ ${RM} ${PREFIX}/firebird/install; \ ${RM} ${PREFIX}/firebird/lib/libgds.so.1.0; \ ${LN} -fs gds.so ${PREFIX}/firebird/lib/libgds.so.1; \ cd ${PREFIX}/firebird/examples; \ tar zxf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz; \ ${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/ \ ) .include <bsd.port.mk> --- NEW FILE --- MD5 (firebird-boot-kit.tar.gz) = 2e18d75539bc4c3d40a1a71509309f64 MD5 (interbase0.9-4-v5examples.tar.gz) = 17cba82bbf5066d515f2dee97bf8327a MD5 (interbase0.9-4src.tar.gz) = d098277ed160e2b6a49d91e1fdb3a652 --- NEW FILE --- The open-source InterBase(tm) 6.0 spin-off (Classic version) --- NEW FILE --- The open-source InterBase(tm) 6.0 spin-off (Classic server version) InterBase is a world-class DBMS with a history too rich to detail here. Once selling for several thousands of dollars per license, some very big players use it worldwide. Inprise has open-sourced InterBase 6.0, and a lively bunch of folks has charged themselves with seeing that it lives on through the Firebird project. Note that as of Firebird 0.9_4, the locksmith back door has been closed. For more information on Firebird and InterBase, see: http://sourceforge.net/projects/firebird/ http://www.ibphoenix.com/ http://www.interbase2000.org/ http://www.interbase.com/ For more information on the locksmith back door, see: https://www.kb.cert.org/vuls/id/247371 --- NEW FILE --- #!/bin/sh # Created in haste by smashing together various # files from the port scripts. if [ "$2" = "PRE-INSTALL" ]; then if [ -d $PKG_PREFIX/firebird ]; then if [ -d $PKG_PREFIX/firebird.old ]; then rm -rf $PKG_PREFIX/firebird.old fi mv $PKG_PREFIX/firebird $PKG_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 $PKG_PREFIX/firebird /usr/interbase perl <<EOF 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{'PKG_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 ); } EOF elif [ "$2" = "POST-INSTALL" ]; then chown -R firebird:firebird $PKG_PREFIX/firebird # Turn everybody to read only. chmod -R o=r $PKG_PREFIX/firebird # Now fix up the mess. # fix up directories for i in `find $PKG_PREFIX/firebird -print` do FileName=$i if [ -d $FileName ] then chmod o=rx $FileName fi done cd $PKG_PREFIX/firebird/bin # all users can run everything. chmod o=rx * # SUID is needed for running server programs. for i in gds_lock_mgr gds_drop gds_inet_server do chmod ug+s $i done # Lock files cd $PKG_PREFIX/firebird for i in isc_init1 isc_lock1 isc_event1 do FileName=$i.`hostname` touch $FileName chmod uga=rw $FileName chown firebird:firebird $FileName done touch interbase.log chmod ugo=rw interbase.log # make databases writable by all chmod ugo=rw examples/v5/*.gdb chmod ugo=rw help/*.gdb chmod ugo=rw isc4.gdb # 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 /usr/interbase/bin/gds_inet_server gds_inet_server EOF kill -HUP `cat /var/run/inetd.pid` kill -HUP `cat /var/run/inetd.pid` fi --- NEW FILE --- --------------------------------------------------------- Firebird is now installed. There is a symbolic link from /usr/interbase -> %%PREFIX%%/firebird. Firebird needs this link for proper operation. It is STRONGLY recommended that you change the SYSDBA password with: $ cd /usr/interbase $ gsec -user SYSDBA -pass masterkey GSEC> modify SYSDBA -pw newpassword GSEC> quit before doing anything serious with Firebird. See %%PREFIX%%/firebird/RELNOTES for more. --------------------------------------------------------- --- NEW FILE --- firebird/intl/gdsintl firebird/examples/v5/ib_udf.sql firebird/examples/v5/README firebird/examples/v5/align.h firebird/examples/v5/api1.c firebird/examples/v5/api10.c firebird/examples/v5/api11.c firebird/examples/v5/api12.c firebird/examples/v5/api13.c firebird/examples/v5/api14.e firebird/examples/v5/api15.c firebird/examples/v5/api16.c firebird/examples/v5/api16t.c firebird/examples/v5/api2.c firebird/examples/v5/api3.c firebird/examples/v5/api4.c firebird/examples/v5/api5.c firebird/examples/v5/api6.c firebird/examples/v5/api7.c firebird/examples/v5/api8.c firebird/examples/v5/api9.c firebird/examples/v5/api9f.c firebird/examples/v5/apifull.c firebird/examples/v5/employe2.sql firebird/examples/v5/dyn1.e firebird/examples/v5/dyn2.e firebird/examples/v5/dyn3.e firebird/examples/v5/dyn4.e firebird/examples/v5/dyn5.e firebird/examples/v5/dynfull.e firebird/examples/v5/employee.gbk firebird/examples/v5/employee.gdb firebird/examples/v5/example.h firebird/examples/v5/api9f.sql firebird/examples/v5/intlemp.gbk firebird/examples/v5/intlemp.gdb firebird/examples/v5/stat1.e firebird/examples/v5/stat10.e firebird/examples/v5/stat11.e firebird/examples/v5/stat12.e firebird/examples/v5/stat12t.e firebird/examples/v5/stat2.e firebird/examples/v5/stat3.e firebird/examples/v5/stat4.e firebird/examples/v5/stat5.e firebird/examples/v5/stat6.e firebird/examples/v5/stat7.e firebird/examples/v5/stat8.e firebird/examples/v5/stat9.e firebird/examples/v5/udf.sql firebird/examples/v5/udflib.c firebird/examples/v5/makefile firebird/include/perf.h firebird/include/ib_util.h firebird/include/gds.hxx firebird/include/gds.h firebird/include/ibase.h firebird/include/iberror.h firebird/include/gds.f firebird/UDF/ib_udf firebird/lib/ib_util.so firebird/lib/gds.a firebird/lib/gds.so firebird/lib/libgds.so firebird/lib/libgds.so.1 firebird/lib/libgds_pyxis.a firebird/lib/libgds.a firebird/lib/gds_pyxis.a firebird/help/help.gbak firebird/help/help.gdb firebird/bin/isc4.gbak firebird/bin/gpre firebird/bin/gds_pipe firebird/bin/gds_drop firebird/bin/gds_lock_mgr firebird/bin/gfix firebird/bin/gdef firebird/bin/isql firebird/bin/gds_lock_print firebird/bin/qli firebird/bin/gds_inet_server firebird/bin/gsplit firebird/bin/gstat firebird/bin/gds_relay firebird/bin/gsec firebird/bin/gbak firebird/services.isc firebird/isc_config firebird/isc4.gdb firebird/interbase.msg firebird/interbase.log firebird/inetd.conf.isc firebird/RELNOTES @dirrm firebird @dirrm firebird/intl @dirrm firebird/examples/v3 @dirrm firebird/examples/v4 @dirrm firebird/examples/v5 @dirrm firebird/examples @dirrm firebird/include @dirrm firebird/UDF @dirrm firebird/lib @dirrm firebird/help @dirrm firebird/bin |