View | Details | Raw Unified | Return to bug 58999
Collapse All | Expand All

(-)Makefile (-72 / +29 lines)
Lines 2-26 Link Here
2
# Date created:		20 December 2000
2
# Date created:		20 December 2000
3
# Whom:			Geoffrey C. Speicher <geoff@sea-incorporated.com>
3
# Whom:			Geoffrey C. Speicher <geoff@sea-incorporated.com>
4
#
4
#
5
# $FreeBSD: ports/databases/firebird/Makefile,v 1.23 2003/09/10 09:58:27 netchild Exp $
5
# $FreeBSD$
6
#
6
#
7
7
8
PORTNAME=	firebird
8
PORTNAME=	firebird
9
PORTVERSION=	1.0.2
9
PORTVERSION=	1.5.r6
10
CATEGORIES=	databases
10
CATEGORIES=	databases
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}	\
11
MASTER_SITES=	http://www.aims.net.au/chris/firebird/
12
		http://www.aims.com.au/chris/firebird/
13
MASTER_SITE_SUBDIR=firebird
12
MASTER_SITE_SUBDIR=firebird
14
DISTFILES=	bootkit-1.0.2.908.tar.gz \
13
DISTNAME=	firebird15-20031106
15
		interbase0.9-4-v5examples.tar.gz \
16
		Firebird-1.0.2.908.src.tar.gz
17
14
18
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	chris@e-easy.com.au
19
COMMENT=	The open-source InterBase(tm) 6.0 spin-off (Classic version)
16
COMMENT=	The open-source InterBase(tm) 6.0 spin-off (Classic version)
20
17
21
FORBIDDEN=	Local Stack Overflow, see http://packetstormsecurity.nl/0305-exploits/dsr-adv001.txt
18
USE_BZIP2=	yes
19
USE_GMAKE=	yes
20
USE_LIBTOOL=	yes
21
GNU_CONFIGURE=	yes
22
WANT_AUTOCONF_VER=	253
23
USE_GCC=	3.3
22
24
23
WRKSRC=		${WRKDIR}/firebird-1.0.2.908
25
# Don't use ld for linking, use gcc
26
LD=	gcc
27
28
CONFLICTS=	firebird-devel-*
29
30
WRKSRC=		${WRKDIR}/firebird15
24
INSTALLS_SHLIB=	yes
31
INSTALLS_SHLIB=	yes
25
LDCONFIG_DIRS=	%%PREFIX%%/firebird/lib
32
LDCONFIG_DIRS=	%%PREFIX%%/firebird/lib
26
MSG_FILE=	${PKGDIR}/pkg-message
33
MSG_FILE=	${PKGDIR}/pkg-message
Lines 36-111 Link Here
36
	@${ECHO_MSG} "require NFS client locking support for the build to"
43
	@${ECHO_MSG} "require NFS client locking support for the build to"
37
	@${ECHO_MSG} "succeed. Currently this is only available on FreeBSD 5.0"
44
	@${ECHO_MSG} "succeed. Currently this is only available on FreeBSD 5.0"
38
	@${ECHO_MSG} "or greater."
45
	@${ECHO_MSG} "or greater."
46
	@${ECHO_MSG}
47
	@${ECHO_MSG} "WARNING: The on-disk structure of the databases has"
48
	@${ECHO_MSG} "changed since version 1.0.x."
49
	@${ECHO_MSG} "Cancel this installation now and backup your databases"
50
	@${ECHO_MSG} "if you have not already done so."
39
.if !defined(BATCH)
51
.if !defined(BATCH)
40
	@sleep 5
52
	@sleep 10
41
.endif
53
.endif
42
54
43
do-extract:
55
patch-libtool:
44
	@${MKDIR} ${WRKDIR}
56
	@${DO_NADA}
45
	@(								\
46
	cd ${WRKDIR}; ${TAR} -zxf					\
47
		 ${DISTDIR}/Firebird-1.0.2.908.src.tar.gz;		\
48
	cd firebird-1.0.2.908;						\
49
	${TAR} -zxf ${DISTDIR}/bootkit-1.0.2.908.tar.gz;		\
50
	${CP} -f msgs/msg.gbak misc/msg.gbak				\
51
	)
52
53
post-patch:
54
	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
55
.if ${OSVERSION} >= 430001 && ${OSVERSION} < 500000 || ${OSVERSION} >= 500016
56
	@${REINPLACE_CMD} -e 's,\-ldescrypt,\-lcrypt,g' \
57
		 ${WRKSRC}/builds/original/prefix.freebsd
58
.else
59
	@${REINPLACE_CMD} -e 's,^crypt_set_format.*,,' ${WRKSRC}/jrd/enc.c
60
.endif
61
57
62
do-configure:
58
do-configure:
63
	@(								\
59
	@(cd ${WRKSRC} && ${ENV} CC=${CC} CXX=${CXX} MAKE=${GMAKE} ./autogen.sh --prefix=${PREFIX}/firebird --with-lock-manager --with-editline)
64
	cd ${WRKDIR}/firebird-1.0.2.908;				\
65
	INTERBASE=${WRKDIR}/firebird-1.0.2.908/interbase; export INTERBASE; \
66
	REFDBPATH=${WRKDIR}/firebird-1.0.2.908/refDatabases; export REFDBPATH; \
67
	NOPROMPT_SETUP=yes; export NOPROMPT_SETUP;			\
68
	FIREBIRD_64_BIT_IO=yes; export FIREBIRD_64_BIT_IO;		\
69
	${SH} Configure.sh PROD FREEBSD;				\
70
	)
71
60
72
do-build:
61
do-build:
73
	@(								\
62
	@(								\
74
	${REINPLACE_CMD} -e 's,opt,usr,'				\
63
	${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE};	\
75
		 ${WRKSRC}/firebird/install/linux/misc/ibmgr;		\
64
	cd ${WRKSRC};							\
76
	${LN} -sf ${WRKDIR}/firebird-1.0.2.908/refDatabases/jrd/isc.gdb	\
65
	${ENV} CC=${CC} CXX=${CXX} ${GMAKE} all;			\
77
		 ${WRKDIR}/firebird-1.0.2.908/interbase/isc4.gdb;	\
78
	${LN} -sf ${WRKDIR}/firebird-1.0.2.908/refDatabases/msgs/msg.gdb \
79
		 ${WRKDIR}/firebird-1.0.2.908/msg.gdb;			\
80
	cd ${WRKDIR}/firebird-1.0.2.908;				\
81
	INTERBASE=${WRKDIR}/firebird-1.0.2.908/interbase; export INTERBASE; \
82
	REFDBPATH=${WRKDIR}/firebird-1.0.2.908/refDatabases; export REFDBPATH; \
83
	${CP} ${PKGDIR}/files/buildit.sh ${WRKDIR}/firebird-1.0.2.908;	\
84
	${SH} buildit.sh;						\
85
	)
86
87
pre-install:
88
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
89
90
do-install:
91
	@(								\
92
	cd ${WRKDIR}/firebird-1.0.2.908;				\
93
	${RM} ${WRKDIR}/firebird-1.0.2.908/interbase/isc4_tmp.gdb || ${TRUE}; \
94
	${RM} ${WRKDIR}/firebird-1.0.2.908/interbase/lib/gds.so.1 || ${TRUE}; \
95
	${TOUCH} interbase/interbase.log;				\
96
	${CP} -Rp interbase ${PREFIX}/firebird;				\
97
	${RM} ${PREFIX}/firebird/install;				\
98
	${RM} ${PREFIX}/firebird/lib/libgds.so.1.0;			\
99
	${RM} ${PREFIX}/firebird/lib/libgds_pyxis.a;			\
100
	${LN} -fs gds.so ${PREFIX}/firebird/lib/libgds.so.1;		\
101
	cd ${PREFIX}/firebird/examples;					\
102
	${TAR} -xzf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz;	\
103
	${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/;			\
104
	${CP} ${WRKSRC}/firebird/install/linux/misc/ibmgr		\
105
		${PREFIX}/firebird/bin;					\
106
	)
66
	)
107
108
post-install:
109
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
110
67
111
.include <bsd.port.post.mk>
68
.include <bsd.port.post.mk>
(-)distinfo (-3 / +1 lines)
Lines 1-3 Link Here
1
MD5 (bootkit-1.0.2.908.tar.gz) = 3ce1d058d568242843fa0f92d5ae7018
1
MD5 (firebird15-20031106.tar.bz2) = d67809e31d2583ef109381628699cb7e
2
MD5 (interbase0.9-4-v5examples.tar.gz) = 17cba82bbf5066d515f2dee97bf8327a
3
MD5 (Firebird-1.0.2.908.src.tar.gz) = 8ca9aac6cfe2670659d00bb2decb3456
(-)pkg-descr (-8 / +6 lines)
Lines 11-24 Link Here
11
11
12
For more information on Firebird and InterBase, see:
12
For more information on Firebird and InterBase, see:
13
13
14
http://sourceforge.net/projects/firebird/
14
WWW: http://sourceforge.net/projects/firebird/
15
http://www.ibphoenix.com/
15
WWW: http://www.ibphoenix.com/
16
http://www.interbase2000.org/
16
WWW: http://www.interbase2000.org/
17
http://www.interbase.com/
17
WWW: http://www.interbase.com/
18
http://www.firebirdsql.org/
18
WWW: http://www.firebirdsql.org/
19
19
20
For more information on the locksmith back door, see:
20
For more information on the locksmith back door, see:
21
21
22
https://www.kb.cert.org/vuls/id/247371
22
WWW: https://www.kb.cert.org/vuls/id/247371
23
24
WWW: http://sourceforge.net/projects/firebird/
(-)pkg-install (-147 lines)
Removed Link Here
1
#!/bin/sh
2
3
case $2 in
4
PRE-INSTALL)
5
6
if [ -d $PKG_PREFIX/firebird ]; then
7
	if [ -d $PKG_PREFIX/firebird.old ]; then
8
		rm -rf $PKG_PREFIX/firebird.old
9
	fi
10
	mv $PKG_PREFIX/firebird $PKG_PREFIX/firebird.old
11
fi
12
13
if [ `id -u` -ne 0 ]; then
14
	echo; echo "You must be root to run this step!"; echo; echo
15
  exit 1
16
fi
17
18
nofbuid=0
19
fbUID=`id -u firebird 2>/dev/null`
20
if [ $? -ne 0 ]; then
21
	fbUID=90
22
	while [ ! -z `id -un $fbUID 2>/dev/null` ]
23
	do
24
		fbUID=$(($fbUID+1))
25
	done
26
	nofbuid=1
27
fi
28
29
fbGID=`pw groupshow firebird 2>/dev/null`
30
if [ $? -ne 0 ]; then
31
	fbGID=90
32
	while [ ! -z `id -gn $fbGID 2>/dev/null` ]
33
	do
34
		fbGID=$(($fbGID+1))
35
	done
36
	echo "firebird:*:$fbGID" >> /etc/group
37
else
38
	fbGID=`echo $fbGID | awk -F: '{print $3}'`
39
fi
40
41
echo "firebird user using uid $fbUID"
42
echo "firebird user using gid $fbGID"
43
44
if which -s pw; then
45
	if [ $nofbuid -ne 0 ]; then
46
		pw useradd firebird -u $fbUID -g $fbGID -h - -s /bin/sh \
47
			-d $PKG_PREFIX/firebird -c "Firebird pseudo-user"
48
	fi
49
else
50
	echo -n "unable to create user firebird - please create it manually,"
51
	echo " before reinstalling this package."
52
	exit 1
53
fi
54
;;
55
56
POST-INSTALL)
57
chown -R firebird:firebird $PKG_PREFIX/firebird
58
59
# Now fix up the mess.
60
61
# fix up directories
62
for i in `find $PKG_PREFIX/firebird -print`
63
  do
64
    FileName=$i
65
    if [ -d $FileName ]
66
       then
67
         chmod u=rwx,go=rx $FileName
68
     fi
69
  done
70
71
# make lib ldconfig-compatible
72
chown -R root:wheel $PKG_PREFIX/firebird/lib
73
74
# make the following read-only
75
chmod -R a=r $PKG_PREFIX/firebird/UDF/*
76
chmod -R a=r $PKG_PREFIX/firebird/include/*
77
chmod -R a=r $PKG_PREFIX/firebird/intl/*
78
chmod -R a=r $PKG_PREFIX/firebird/lib/*
79
80
# Fix UDF load problem
81
cd $PKG_PREFIX/firebird/lib
82
ln -sf ib_util.so libib_util.so
83
ln -sf gds.so libgds.so.1
84
85
cd $PKG_PREFIX/firebird/bin
86
87
# all users can run everything.
88
chmod a=rx *
89
90
# SUID is needed for running server programs.
91
92
for i in gds_lock_mgr gds_drop gds_inet_server
93
  do
94
    chmod ug+s $i
95
  done
96
97
98
# Lock files
99
100
cd $PKG_PREFIX/firebird
101
102
for i in isc_init1 isc_lock1 isc_event1
103
  do
104
    FileName=$i.`hostname`
105
    touch $FileName
106
    chmod uga=rw $FileName
107
    chown firebird:firebird $FileName
108
  done
109
110
touch interbase.log
111
chmod u=rw,go= interbase.log
112
chmod a=r interbase.msg
113
114
# make databases writable by interbase only
115
# local database connections are not a good idea
116
chmod u=rw,go= examples/v5/*.gdb
117
chmod u=rw,go= help/*.gdb
118
chmod u=rw,go= isc4.gdb
119
120
# remove any existing gds service
121
cp /etc/services /etc/services.old
122
cp /etc/inetd.conf /etc/inetd.conf.old
123
cat /etc/services |grep -v gds_db >/etc/services.new
124
cat /etc/inetd.conf |grep -v gds_db >/etc/inetd.conf.new
125
mv /etc/services.new /etc/services
126
mv /etc/inetd.conf.new /etc/inetd.conf
127
128
# add the gds service and restart inetd
129
cat >>/etc/services <<EOF
130
gds_db		 3050/tcp  #InterBase Database Remote Protocol
131
EOF
132
cat >>/etc/inetd.conf <<EOF
133
gds_db	stream	tcp	nowait	firebird	$PKG_PREFIX/firebird/bin/gds_inet_server  gds_inet_server
134
EOF
135
if [ -f /var/run/inetd.pid ]; then
136
	kill -HUP `cat /var/run/inetd.pid`
137
fi
138
139
# shared lib startup script
140
if [ -d $PKG_PREFIX/etc/rc.d ]; then
141
	(
142
	echo "#!/bin/sh"; echo "[ -d $PKG_PREFIX/firebird/lib ] && /sbin/ldconfig -m $PKG_PREFIX/firebird/lib"
143
	) > $PKG_PREFIX/etc/rc.d/000.firebird.sh
144
  chmod a=rx $PKG_PREFIX/etc/rc.d/000.firebird.sh
145
fi
146
;;
147
esac
(-)pkg-message (-2 / +3 lines)
Lines 1-8 Link Here
1
1
2
---------------------------------------------------------
2
---------------------------------------------------------
3
Firebird is now installed.  A symbolic link from
3
Firebird is now installed.  A symbolic link from
4
/usr/interbase -> %%PREFIX%%/firebird is REQUIRED for
4
/usr/interbase -> %%PREFIX%%/firebird may be needed
5
proper operation of Firebird.
5
for compatibility with existing  programs that use
6
Firebird.
6
7
7
The symbolic link can be created with:
8
The symbolic link can be created with:
8
9
(-)pkg-plist (-101 / +111 lines)
Lines 1-111 Link Here
1
etc/rc.d/000.firebird.sh
1
etc/rc.d/000.firebird.sh
2
firebird/intl/gdsintl
2
firebird/README
3
firebird/examples/v5/ib_udf.sql
3
firebird/UDF/fbudf.so
4
firebird/examples/v5/README
4
firebird/UDF/fbudf.sql
5
firebird/examples/v5/align.h
5
firebird/UDF/ib_udf.so
6
firebird/examples/v5/api1.c
6
firebird/UDF/ib_udf.sql
7
firebird/examples/v5/api10.c
7
firebird/WhatsNew
8
firebird/examples/v5/api11.c
8
firebird/aliases.conf
9
firebird/examples/v5/api12.c
9
firebird/bin/fb_inet_server
10
firebird/examples/v5/api13.c
10
firebird/bin/fb_lock_mgr
11
firebird/examples/v5/api14.e
11
firebird/bin/fb_lock_print
12
firebird/examples/v5/api15.c
12
firebird/bin/gbak
13
firebird/examples/v5/api16.c
13
firebird/bin/gdef
14
firebird/examples/v5/api16t.c
14
firebird/bin/gds_drop
15
firebird/examples/v5/api2.c
15
firebird/bin/gfix
16
firebird/examples/v5/api3.c
16
firebird/bin/gpre
17
firebird/examples/v5/api4.c
17
firebird/bin/gsec
18
firebird/examples/v5/api5.c
18
firebird/bin/gstat
19
firebird/examples/v5/api6.c
19
firebird/bin/isql
20
firebird/examples/v5/api7.c
20
firebird/bin/qli
21
firebird/examples/v5/api8.c
21
firebird/doc/README.NTSecurity
22
firebird/examples/v5/api9.c
22
firebird/doc/README.build.mingw.html
23
firebird/examples/v5/api9f.c
23
firebird/doc/README.build.msvc.html
24
firebird/examples/v5/apifull.c
24
firebird/doc/README.instsvc
25
firebird/examples/v5/employe2.sql
25
firebird/doc/README.makefiles
26
firebird/examples/v5/dyn1.e
26
firebird/doc/README.user
27
firebird/examples/v5/dyn2.e
27
firebird/doc/README.user.embedded
28
firebird/examples/v5/dyn3.e
28
firebird/doc/README.user.troubleshooting
29
firebird/examples/v5/dyn4.e
29
firebird/doc/sql.extensions/README.aggregate_tracking
30
firebird/examples/v5/dyn5.e
30
firebird/doc/sql.extensions/README.case
31
firebird/examples/v5/dynfull.e
31
firebird/doc/sql.extensions/README.coalesce
32
firebird/examples/v5/employee.gbk
32
firebird/doc/sql.extensions/README.context_variables
33
firebird/examples/v5/employee.gdb
33
firebird/doc/sql.extensions/README.data_types
34
firebird/examples/v5/example.h
34
firebird/doc/sql.extensions/README.exception_handling
35
firebird/examples/v5/api9f.sql
35
firebird/doc/sql.extensions/README.execute_statement
36
firebird/examples/v5/intlemp.gbk
36
firebird/doc/sql.extensions/README.explicit_locks
37
firebird/examples/v5/intlemp.gdb
37
firebird/doc/sql.extensions/README.nullif
38
firebird/examples/v5/stat1.e
38
firebird/doc/sql.extensions/README.order_by_expressions_nulls
39
firebird/examples/v5/stat10.e
39
firebird/doc/sql.extensions/README.savepoints
40
firebird/examples/v5/stat11.e
40
firebird/doc/sql.extensions/README.universal_triggers
41
firebird/examples/v5/stat12.e
41
firebird/examples/align.h
42
firebird/examples/v5/stat12t.e
42
firebird/examples/api1.c
43
firebird/examples/v5/stat2.e
43
firebird/examples/api10.c
44
firebird/examples/v5/stat3.e
44
firebird/examples/api11.c
45
firebird/examples/v5/stat4.e
45
firebird/examples/api12.c
46
firebird/examples/v5/stat5.e
46
firebird/examples/api13.c
47
firebird/examples/v5/stat6.e
47
firebird/examples/api14.e
48
firebird/examples/v5/stat7.e
48
firebird/examples/api15.c
49
firebird/examples/v5/stat8.e
49
firebird/examples/api16.c
50
firebird/examples/v5/stat9.e
50
firebird/examples/api16t.c
51
firebird/examples/v5/udf.sql
51
firebird/examples/api2.c
52
firebird/examples/v5/udflib.c
52
firebird/examples/api3.c
53
firebird/examples/v5/makefile
53
firebird/examples/api4.c
54
firebird/include/perf.h
54
firebird/examples/api5.c
55
firebird/include/ib_util.h
55
firebird/examples/api6.c
56
firebird/include/gds.hxx
56
firebird/examples/api7.c
57
firebird/examples/api8.c
58
firebird/examples/api9.c
59
firebird/examples/api9f.c
60
firebird/examples/api9f.sql
61
firebird/examples/apifull.c
62
firebird/examples/dyn1.e
63
firebird/examples/dyn2.e
64
firebird/examples/dyn3.e
65
firebird/examples/dyn4.e
66
firebird/examples/dyn5.e
67
firebird/examples/dynfull.e
68
firebird/examples/employe2.sql
69
firebird/examples/employee.fdb
70
firebird/examples/employee.gbk
71
firebird/examples/example.h
72
firebird/examples/readme
73
firebird/examples/stat1.e
74
firebird/examples/stat10.e
75
firebird/examples/stat11.e
76
firebird/examples/stat12.e
77
firebird/examples/stat12t.e
78
firebird/examples/stat2.e
79
firebird/examples/stat3.e
80
firebird/examples/stat4.e
81
firebird/examples/stat5.e
82
firebird/examples/stat6.e
83
firebird/examples/stat7.e
84
firebird/examples/stat8.e
85
firebird/examples/stat9.e
86
firebird/examples/udf.sql
87
firebird/examples/udflib.c
88
firebird/firebird.conf
89
@unexec rm -f %D/firebird/firebird.log
90
firebird/firebird.msg
91
firebird/help/help.fdb
92
firebird/include/blr.h
57
firebird/include/gds.h
93
firebird/include/gds.h
94
firebird/include/ib_util.h
58
firebird/include/ibase.h
95
firebird/include/ibase.h
59
firebird/include/iberror.h
96
firebird/include/iberror.h
60
firebird/include/gds.f
97
firebird/include/perf.h
61
firebird/UDF/ib_udf
98
firebird/intl/fbintl
62
firebird/lib/ib_util.so
99
@unexec rm -f %D/firebird/isc_event1.`hostname`
63
firebird/lib/gds.a
100
@unexec rm -f %D/firebird/isc_init1.`hostname`
64
firebird/lib/gds.so
101
@unexec rm -f %D/firebird/isc_lock1.`hostname`
102
firebird/lib/libfbclient.so
103
firebird/lib/libfbclient.so.1
104
firebird/lib/libfbclient.so.1.5.0
105
firebird/lib/libfbembed.so
106
firebird/lib/libfbembed.so.1
107
firebird/lib/libfbembed.so.1.5.0
65
firebird/lib/libgds.so
108
firebird/lib/libgds.so
66
firebird/lib/libgds.so.1
109
firebird/lib/libgds.so.1
67
firebird/lib/libgds.a
68
firebird/lib/libib_util.so
110
firebird/lib/libib_util.so
69
firebird/help/help.gbak
111
firebird/security.fdb
70
firebird/help/help.gdb
112
@dirrm firebird/UDF
71
firebird/bin/ibguard
113
@dirrm firebird/bin
72
firebird/bin/ibmgr
114
@dirrm firebird/doc/sql.extensions
73
firebird/bin/ibmgr.bin
115
@dirrm firebird/doc
74
firebird/bin/ibserver
75
firebird/bin/isc4.gbak
76
firebird/bin/gpre
77
firebird/bin/gds_pipe
78
firebird/bin/gds_drop
79
firebird/bin/gds_lock_mgr
80
firebird/bin/gfix
81
firebird/bin/gdef
82
firebird/bin/isql
83
firebird/bin/gds_lock_print
84
firebird/bin/qli
85
firebird/bin/gds_inet_server
86
firebird/bin/gsplit
87
firebird/bin/gstat
88
firebird/bin/gsec
89
firebird/bin/gbak
90
firebird/misc/firebird.init.d.generic
91
firebird/misc/firebird.init.d.mandrake
92
firebird/services.isc
93
firebird/isc_config
94
firebird/isc4.gdb
95
firebird/interbase.msg
96
firebird/interbase.log
97
firebird/inetd.conf.isc
98
firebird/README
99
firebird/RELNOTES
100
@dirrm firebird
101
@dirrm firebird/intl
102
@dirrm firebird/examples/v3
103
@dirrm firebird/examples/v4
104
@dirrm firebird/examples/v5
105
@dirrm firebird/examples
116
@dirrm firebird/examples
117
@dirrm firebird/help
106
@dirrm firebird/include
118
@dirrm firebird/include
107
@dirrm firebird/UDF
119
@dirrm firebird/intl
108
@dirrm firebird/lib
120
@dirrm firebird/lib
109
@dirrm firebird/help
121
@dirrm firebird
110
@dirrm firebird/bin
111
@dirrm firebird/misc
(-)files/buildit.sh (-3 lines)
Removed Link Here
1
#!/bin/sh
2
. Configure_SetupEnv.sh
3
make super_firebird
(-)files/patch-ae (-11 lines)
Removed Link Here
1
--- jrd/common.h.orig	Wed Nov 13 11:44:27 2002
2
+++ jrd/common.h	Sun Jan  5 16:49:05 2003
3
@@ -204,7 +204,7 @@
4
 #define I386  1
5
 #define VAX   1
6
 #define IMPLEMENTATION    isc_info_db_impl_freebsd   /* 61 */
7
-#define SETPGRP         setpgrp ()
8
+#define SETPGRP         setpgrp (0, 0)
9
 #define ATEXIT(c)       atexit(c)
10
 
11
 #define QUADFORMAT "ll"
(-)files/patch-af (-13 lines)
Removed Link Here
1
--- jrd/enc.c.orig	Fri Aug  4 06:50:03 2000
2
+++ jrd/enc.c	Sun Nov 18 19:17:19 2001
3
@@ -31,6 +31,10 @@
4
  *
5
  **************************************/
6
7
+#ifdef FREEBSD
8
+crypt_set_format("des");
9
+#endif
10
+
11
 return CRYPT_FUNC( string, salt);
12
 }
13
 #endif
(-)files/patch-ag (-11 lines)
Removed Link Here
1
--- Configure.sh.orig	Tue Nov 20 05:00:25 2001
2
+++ Configure.sh	Fri Dec 28 19:11:50 2001
3
@@ -515,7 +515,7 @@
4
 BuildBootFlg="No"
5
 BuildHostType=""
6
 BuildBuildType="PROD"
7
-MasterSourceDir="`pwd`/refDatabases"
8
+MasterSourceDir="$REFDBPATH"
9
 BuildIOsize=32
10
 
11
 export BuildHostType
(-)files/patch-autogen.sh (+26 lines)
Added Link Here
1
--- autogen.sh.orig	Fri Apr 18 04:41:28 2003
2
+++ autogen.sh	Sun Aug 24 18:39:45 2003
3
@@ -20,7 +20,7 @@
4
   ;;
5
 esac
6
 
7
-VER=`libtool --version|grep ' libtool)'|sed 's/.*) \([0-9][0-9.]*\) .*/\1/'`
8
+VER=`libtool13 --version|grep ' libtool)'|sed 's/.*) \([0-9][0-9.]*\) .*/\1/'`
9
 case "$VER" in
10
  0* | 1\.[0-2] | 1\.[0-2][a-z]* | \
11
  1\.3\.[0-2] | 1\.3\.[0-2][a-z]* )
12
@@ -50,12 +50,12 @@
13
 
14
 # Generate configure from configure.in
15
 echo "Running libtoolize ..."
16
-LIBTOOL_M4=`libtoolize --copy --force --dry-run|grep 'You should add the contents of'|sed "s,^[^/]*\(/[^']*\).*$,\1,"`
17
+LIBTOOL_M4=`libtoolize13 --copy --force --dry-run|grep 'You should add the contents of'|sed "s,^[^/]*\(/[^']*\).*$,\1,"`
18
 if test "x$LIBTOOL_M4" != "x"; then
19
  rm -f aclocal.m4
20
  cp $LIBTOOL_M4 aclocal.m4
21
 fi
22
-libtoolize --copy --force || exit 1
23
+libtoolize13 --copy --force || exit 1
24
 
25
 echo "Running autoconf ..."
26
 autoconf || exit 1
(-)files/patch-builds::original::boot.sfx.interbase (-29 lines)
Removed Link Here
1
--- builds/original/boot.sfx.interbase.orig	Sun Oct 13 17:12:41 2002
2
+++ builds/original/boot.sfx.interbase	Fri Jan 10 10:34:43 2003
3
@@ -70,7 +70,7 @@
4
 #added completed according to inprise tree
5
 #FSG  093000
6
 
7
-firebird:	gds.h includes fireboot run_codes executables help msgs msgs_intl extlib examples completed
8
+firebird:	gds.h includes fireboot run_codes executables help msgs msgs_intl extlib completed
9
 
10
 #  burp wanted to build gpre	
11
 #  we break this dependency
12
@@ -169,7 +169,7 @@
13
 	$(SUPER_SERVER)  qli remote spit utilities \
14
 	$(SHARED_AM) $(LINKABLE_LIBS)
15
 
16
-super_firebird: gds.h includes fireboot super_targets dudley superMiscFiles $(INTL) isql locks qli remote spit help msgs msgs_intl dba gfix gsec security_db extlib examples completed
17
+super_firebird: gds.h includes fireboot super_targets dudley superMiscFiles $(INTL) isql locks qli remote spit help msgs msgs_intl dba gfix gsec security_db extlib completed
18
 
19
 super_targets: 	s_run_codes s_alice s_burp s_dba s_security_c super_client super_server super_utils 
20
 
21
@@ -199,7 +199,7 @@
22
 
23
 super_client:		force
24
 	$(QUIET_ECHO) "Building super/client..."
25
-	$(SH) '$(CD) source/super/client; $(MAKE) CFLAGS="$(CFLAGS) -DSUPERCLIENT" SYSTEM="$(SYSTEM)" super_client'
26
+	$(SH) '$(CD) source/super/client; $(MAKE) SYSTEM="$(SYSTEM)" super_client'
27
 
28
 csu gcsu:	$(ACCESS_METHOD) force
29
 	$(QUIET_ECHO) "Building GCSU..."
(-)files/patch-builds::original::edit_make (-32 lines)
Removed Link Here
1
--- builds/original/edit_make.orig	Fri Aug  4 06:42:41 2000
2
+++ builds/original/edit_make	Sat Nov  9 16:06:59 2002
3
@@ -16,13 +16,25 @@
4
 # Contributor(s): ______________________________________.
5
 if [ "$SYS_TYPE" != "NOLINK_OS" -a "$1" != "WIN_NT" -a "$1" != "OS2" -a $1 != 'WIN_NTS' ]; then
6
     if [ "$3" = "make.client" ]; then
7
-    sed -e "s/\$(SUPER_FLAG)/-DSUPERCLIENT/g" \
8
-        -e "s/\$(SYSTEM)/$1/g" \
9
-        -e "s/\$(VERSION)/$2/g" \
10
-        -e "s?\$(DB_DIR)?$DB_DIR?g" $3 > $4
11
+        if [ "$FBBUILDHACK" = "FREEBSD" ]; then
12
+            sed -e "s/\$(SUPER_FLAG)/-DSUPERCLIENT -D_REENTRANT -D_THREAD_SAFE/g" \
13
+                -e "s/\$(SYSTEM)/$1/g" \
14
+                -e "s/\$(VERSION)/$2/g" \
15
+                -e "s?\$(DB_DIR)?$DB_DIR?g" $3 > $4
16
+        else
17
+            sed -e "s/\$(SUPER_FLAG)/-DSUPERCLIENT/g" \
18
+                -e "s/\$(SYSTEM)/$1/g" \
19
+                -e "s/\$(VERSION)/$2/g" \
20
+                -e "s?\$(DB_DIR)?$DB_DIR?g" $3 > $4
21
+        fi
22
     elif [ "$3" = "make.dsql_ss" -o "$3" = "make.intl_ss" -o "$3" = "make.journal_ss" -o "$3" = "make.jrd_ss" -o "$3" = "make.lock_ss" -o "$3" = "make.remote_ss" -o "$3" = "make.wal_ss" -o "$3" = "make.burp_ss" -o "$3" = "make.alice_ss" -o "$3" = "make.utilities_ss" ]; then
23
     	if [ "$1" = "HP10" -o "$1" = "LINUX" ]; then
24
             sed -e "s/\$(SUPER_FLAG)/-DSUPERSERVER -D_REENTRANT/g" \
25
+                -e "s/\$(SYSTEM)/$1/g" \
26
+                -e "s/\$(VERSION)/$2/g" \
27
+                -e "s?\$(DB_DIR)?$DB_DIR?g" $3 > $4
28
+    	elif [ "$FBBUILDHACK" = "FREEBSD" ]; then
29
+            sed -e "s/\$(SUPER_FLAG)/-DSUPERSERVER -D_REENTRANT -D_THREAD_SAFE/g" \
30
                 -e "s/\$(SYSTEM)/$1/g" \
31
                 -e "s/\$(VERSION)/$2/g" \
32
                 -e "s?\$(DB_DIR)?$DB_DIR?g" $3 > $4
(-)files/patch-builds::original::platform (-13 lines)
Removed Link Here
1
--- builds/original/platform.orig	Sun Sep 16 22:15:14 2001
2
+++ builds/original/platform	Sat Nov  9 16:16:23 2002
3
@@ -32,6 +32,10 @@
4
     SYS_TYPE=GENERIC
5
 fi
6
 export SYS_TYPE
7
+if [ $1 = 'FREEBSD' ]; then
8
+    FBBUILDHACK=$1
9
+    export FBBUILDHACK
10
+fi
11
 #
12
 if [ $1 = 'SUN3_4' -o $1 = 'SUN4' -o $1 = 'AP' -o $1 = 'AX' ]; then
13
     TR='tr "A-Z" "a-z"'
(-)files/patch-builds::original::prefix.freebsd (-11 lines)
Removed Link Here
1
--- builds/original/prefix.freebsd.orig	Sun Oct 13 17:12:42 2002
2
+++ builds/original/prefix.freebsd	Fri Jan 10 13:00:32 2003
3
@@ -30,7 +30,7 @@
4
 PROD_DEBUG_OBJECTS=	nodebug.o
5
 PROD_SHRLIB_DIR=	-Lsource/jrd -Lsource/interbase/lib
6
 PROD_VERSION_FLAG=	-DPROD_BUILD
7
-PROD_CFLAGS=            -O -m486 -fpic -DFLINTSTONE
8
+PROD_CFLAGS=		-O -pipe -march=i486 -fpic -DFLINTSTONE
9
 
10
 
11
 DEV_DEBUG_OBJECTS=	grammar.o dbg.o dbt.o dmp.o

Return to bug 58999