Ravenports generated: 21 Aug 2017 14:35
[ravenports.git] / bucket_6C / firebird25
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               firebird25
4 VERSION=                2.5.7
5 KEYWORDS=               databases
6 VARIANTS=               standard
7 SDESC[standard]=        Firebird-2 relational SQL database
8 HOMEPAGE=               https://www.firebirdsql.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            SF/firebird/firebird/2.5.7-Release
13 DISTFILE[1]=            Firebird-2.5.7.27050-0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         server
17                         client
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 NOT_FOR_ARCH=           aarch64
24
25 BUILDRUN_DEPENDS=       libedit:single:standard
26 EXRUN[server]=          firebird25:client:standard
27
28 USERS=                  firebird
29 GROUPS=                 firebird
30 USERGROUP_SPKG=         server
31
32 USES=                   cpe gmake pkgconfig c++:server,client
33
34 DISTNAME=               Firebird-2.5.7.27050-0
35
36 LICENSE=                CUSTOM1:server CUSTOM2:server
37 LICENSE_NAME=           CUSTOM1:"Initial Developer's Public License"
38                         CUSTOM2:"InterBase Public License"
39 LICENSE_SCHEME=         multi
40 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/builds/install/misc/IDPLicense.txt
41                         CUSTOM2:{{WRKSRC}}/builds/install/misc/IPLicense.txt
42
43 FPC_EQUIVALENT=         databases/firebird25-server
44
45 MUST_CONFIGURE=         gnu
46 CONFIGURE_ARGS=         --prefix=/var/db/firebird
47                         --exec-prefix={{PREFIX}}
48                         --with-fbconf={{PREFIX}}/etc/firebird
49                         --with-fbglock=/var/db/firebird
50                         --with-fbhelp=/var/db/firebird/help
51                         --with-fbintl={{PREFIX}}/libexec/firebird/intl
52                         --with-fblog=/var/db/firebird
53                         --with-fbmsg={{PREFIX}}/share/firebird
54                         --with-fbplugins={{PREFIX}}/libexec/firebird/plugins
55                         --with-fbsbin={{PREFIX}}/sbin
56                         --with-fbsecure-db=/var/db/firebird
57                         --with-fbudf={{PREFIX}}/libexec/firebird/UDF
58                         --with-system-editline
59                         --enable-superserver
60 CONFIGURE_ENV=          PTHREAD_LIBS="-lpthread"
61                         ac_cv_header_atomic_ops_h="no"
62                         ac_cv_lib_atomic_ops_main="no"
63                         ac_cv_lib_edit_readline="yes"
64
65 BUILD_TARGET=           firebird_basic libfbembed libfbclient embed_isql
66                         embed_gpre embed_gdef embed_qli extlib
67                         firebird_embedded firebird_server
68 MAKE_ARGS=              PREFIX="{{STAGEDIR}}{{PREFIX}}"
69 MAKE_ENV=               FIREBIRD_TMP="{{WRKDIR}}"
70                         FIREBIRD_LOCK="{{WRKDIR}}"
71 SINGLE_JOB=             yes
72
73 PLIST_SUB=              SOVERSION=2.5.7
74                         SOMINOR=2.5
75                         SOMAJOR=2
76                         LOCALSTATEDIR=/var/db/firebird
77                         CONFDIR=etc/firebird
78 RC_SUBR=                firebird:server
79 SUB_FILES=              pkg-message-server
80 SUB_LIST=               DOCDIR={{STD_DOCDIR}}
81
82 CXXFLAGS=               -std=gnu++98
83                         -fno-lifetime-dse
84 VAR_ARCH[x86_64]=       CFLAGS=-DAMD64
85
86 post-patch:
87         ${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \+
88
89 do-install:
90         @${MKDIR} ${STAGEDIR}${PREFIX}/bin \
91                 ${STAGEDIR}${PREFIX}/lib \
92                 ${STAGEDIR}${PREFIX}/include \
93                 ${STAGEDIR}${PREFIX}/sbin \
94                 ${STAGEDIR}${PREFIX}/share/firebird \
95                 ${STAGEDIR}${PREFIX}/etc/firebird \
96                 ${STAGEDIR}${PREFIX}/libexec/firebird/udf \
97                 ${STAGEDIR}/var/db/firebird/help \
98                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl \
99                 ${STAGEDIR}${PREFIX}/libexec/firebird/plugins
100         ${INSTALL_LIB} ${WRKSRC}/gen/firebird/lib/libib_util.so \
101                 ${WRKSRC}/gen/firebird/lib/libfbclient.so.2.5.7 \
102                 ${WRKSRC}/gen/firebird/lib/libfbembed.so.2.5.7 \
103                 ${STAGEDIR}${PREFIX}/lib
104 .for ext in so so.2 so.2.5
105         ${LN} -fs libfbclient.so.2.5.7 ${STAGEDIR}${PREFIX}/lib/libfbclient.${ext}
106         ${LN} -fs libfbembed.so.2.5.7 ${STAGEDIR}${PREFIX}/lib/libfbembed.${ext}
107         ${LN} -fs libfbembed.so.2.5.7 ${STAGEDIR}${PREFIX}/lib/libgds.${ext}
108 .endfor
109         ${INSTALL_DATA} ${WRKSRC}/gen/firebird/include/*.h ${STAGEDIR}${PREFIX}/include
110         ${INSTALL_DATA} ${WRKSRC}/gen/firebird/*.msg ${STAGEDIR}${PREFIX}/share/firebird
111         ${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${WRKSRC}/gen/install/misc/firebird.conf \
112                 > ${WRKDIR}/firebird.conf
113         ${INSTALL_DATA} ${WRKDIR}/firebird.conf ${STAGEDIR}${PREFIX}/etc/firebird/firebird.conf.sample
114         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/aliases.conf \
115                 ${STAGEDIR}${PREFIX}/etc/firebird/aliases.conf.sample
116         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbtrace.conf \
117                 ${STAGEDIR}${PREFIX}/etc/firebird/fbtrace.conf
118         ${INSTALL_DATA} ${WRKSRC}/gen/install/misc/fbintl.conf \
119                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.conf
120 .for bin in gpre isql-fb qli fbguard fbsplit fbstat fbsvcmgr fbtracemgr gbak gdef gfix gsec nbackup
121         ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${bin} ${STAGEDIR}${PREFIX}/bin
122 .endfor
123 .for sbin in fb_inet_server fb_lock_print fb_smp_server fbserver
124         ${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${sbin} ${STAGEDIR}${PREFIX}/sbin
125 .endfor
126 .for udf_so in ib_udf.so fbudf.so
127         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/UDF/${udf_so} \
128                 ${STAGEDIR}${PREFIX}/libexec/firebird/udf
129 .endfor
130 .for udf_sql in src/extlib/ib_udf2.sql src/extlib/fbudf/fbudf.sql
131         ${INSTALL} -m 0444 ${WRKSRC}/${udf_sql} ${STAGEDIR}${PREFIX}/libexec/firebird/udf
132 .endfor
133         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/plugins/libfbtrace.so \
134                 ${STAGEDIR}${PREFIX}/libexec/firebird/plugins
135         ${INSTALL} -m 0660 ${WRKSRC}/gen/firebird/security2.fdb \
136                 ${STAGEDIR}/var/db/firebird/security2.fdb.sample
137         ${INSTALL} -m 0440 ${WRKSRC}/gen/firebird/help/help.fdb \
138                 ${STAGEDIR}/var/db/firebird/help
139         ${INSTALL} ${STRIP} -m 0555 ${WRKSRC}/gen/firebird/intl/libfbintl.so \
140                 ${STAGEDIR}${PREFIX}/libexec/firebird/intl/fbintl.so
141         # docs
142         @${MKDIR} ${STAGEDIR}${STD_DOCDIR}/sql.extensions \
143                 ${STAGEDIR}${STD_DOCDIR}/license \
144                 ${STAGEDIR}${STD_DOCDIR}/upgrade
145         ${INSTALL_DATA} ${WRKSRC}/doc/sql.extensions/* \
146                 ${STAGEDIR}${STD_DOCDIR}/sql.extensions
147         ${INSTALL_DATA} ${WRKSRC}/doc/license/* \
148                 ${STAGEDIR}${STD_DOCDIR}/license
149         ${INSTALL_DATA} ${WRKSRC}/src/misc/upgrade/v2/* \
150                 ${STAGEDIR}${STD_DOCDIR}/upgrade
151 .for F in WhatsNew README.* Firebird* ReleaseNotes.pdf ambiguity.txt ods11-index-structure.html
152         ${INSTALL_DATA} ${WRKSRC}/doc/${F} ${STAGEDIR}${STD_DOCDIR}
153 .endfor
154
155 [FILE:568:descriptions/desc.server]
156 Firebird is a relational database offering many ANSI SQL-99 features
157 that runs on Linux, Windows, and a variety of Unix platforms.  Firebird
158 offers excellent concurrency, high performance, and powerful language
159 support for stored procedures and triggers.  It has been used in
160 production systems, under a variety of names since 1981.
161
162 Firebird is completely free of any registration, licensing or deployment
163 fees.  It may be deployed freely for use with any third-party software,
164 whether commercial or not.
165
166 This package contains the Firebird server and related files.
167
168
169 [FILE:193:descriptions/desc.client]
170 Firebird is a relational database offering many ANSI SQL-99 features
171 that runs on Linux, Windows, and a variety of Unix platforms.
172
173 This package contains the Firebird client and related files.
174
175
176 [FILE:109:distinfo]
177 0a3b68c94e9d4eab0e56c98312f0955a0ec69ec4e9e801e0a81be758f032171a     13402538 Firebird-2.5.7.27050-0.tar.bz2
178
179
180 [FILE:742:manifests/plist.server]
181 bin/
182  fbguard
183  fbsplit
184  fbstat
185  fbsvcmgr
186  fbtracemgr
187  gbak
188  gdef
189  gfix
190  gsec
191  nbackup
192 sbin/
193  fb_inet_server
194  fb_lock_print
195  fb_smp_server
196  fbserver
197 @group firebird
198 libexec/firebird/udf/
199  ib_udf.so
200  fbudf.so
201  ib_udf2.sql
202  fbudf.sql
203 libexec/firebird/plugins/libfbtrace.so
204 libexec/firebird/intl/
205  fbintl.so
206  fbintl.conf
207 @group
208 @sample %%CONFDIR%%/aliases.conf.sample
209 %%CONFDIR%%/fbtrace.conf
210 @owner firebird
211 @group firebird
212 @sample %%LOCALSTATEDIR%%/security2.fdb.sample
213 %%LOCALSTATEDIR%%/help/help.fdb
214 @preunexec [ -s %%LOCALSTATEDIR%%/firebird.log ] || rm -f %%LOCALSTATEDIR%%/firebird.log
215 @rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname`
216 @rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname`
217 @rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname`
218 @owner
219 @group
220
221
222 [FILE:443:manifests/plist.client]
223 bin/
224  gpre
225  isql-fb
226  qli
227 include/
228  ib_util.h
229  ibase.h
230  iberror.h
231  perf.h
232 lib/
233  libfbclient.so
234  libfbclient.so.%%SOMAJOR%%
235  libfbclient.so.%%SOMINOR%%
236  libfbclient.so.%%SOVERSION%%
237  libfbembed.so
238  libfbembed.so.%%SOMAJOR%%
239  libfbembed.so.%%SOMINOR%%
240  libfbembed.so.%%SOVERSION%%
241  libgds.so
242  libgds.so.%%SOMAJOR%%
243  libgds.so.%%SOMINOR%%
244  libib_util.so
245 @sample %%CONFDIR%%/firebird.conf.sample
246 share/firebird/
247  de_DE.msg
248  firebird.msg
249  fr_FR.msg
250
251
252 [FILE:416:patches/patch-builds_install_misc_firebird.conf.in]
253 --- builds/install/misc/firebird.conf.in.orig   2016-06-30 09:34:53 UTC
254 +++ builds/install/misc/firebird.conf.in
255 @@ -60,7 +60,7 @@
256  #
257  # Type: string
258  #
259 -#RootDirectory =
260 +#RootDirectory = /var/db/firebird
261  
262  
263  # ----------------------------
264 @@ -137,7 +137,7 @@
265  #
266  # Type: string (special format)
267  #
268 -#UdfAccess = Restrict UDF
269 +UdfAccess = Restrict %%PREFIX%%/libexec/firebird/udf
270  
271  
272  # ----------------------------
273
274
275 [FILE:2233:patches/patch-builds_posix_make.defaults]
276 --- builds/posix/make.defaults.orig     2017-02-14 09:17:14 UTC
277 +++ builds/posix/make.defaults
278 @@ -126,7 +126,7 @@ RM_R=               rm -rf
279  CHMOD=                 chmod
280  CHMOD_6=               chmod 666
281  CHMOD_7=               chmod 777
282 -CHMOD_S7=              chmod 06777
283 +CHMOD_S7=              chmod 04555
284  MV=                    mv -f
285  TOUCH=                 touch
286  CP=                    cp
287 @@ -152,7 +152,7 @@ EXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFL
288  STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS)
289  
290  LINK_LIBS = @LIBS@
291 -ICU_LIBS = -licuuc -licudata -licui18n
292 +ICU_LIBS = -lsicuuc -lsicudata -lsicui18n
293  STATICLINK_LIBS = @LIBS@
294  SO_LINK_LIBS = @LIBS@
295  
296 @@ -223,15 +223,14 @@ LIBFBSTATIC_A = $(LIB)/libfbstatic.a
297  
298  ifeq ($(EDITLINE_FLG),Y)
299    ifeq ($(STD_EDITLINE), true)
300 -       LIBEDITLINE := -l$(READLINE)
301 +       LIBEDITLINE := $(shell pkgconf libedit --libs)
302    else
303         LIBEDITLINE := $(LIB)/libedit.a
304    endif
305  endif
306  
307 -LIBICU_SO = $(LIB)/$(LIB_PREFIX)icuuc*.$(SHRLIB_FOREIGN_EXT) \
308 -                       $(LIB)/$(LIB_PREFIX)icudata*.$(SHRLIB_FOREIGN_EXT) \
309 -                       $(LIB)/$(LIB_PREFIX)icui18n*.$(SHRLIB_FOREIGN_EXT)
310 +LIBICU_SO = $(LIB)/$(LIB_PREFIX)sicuuc*.a $(LIB)/$(LIB_PREFIX)sicudata*.a \
311 +               $(LIB)/$(LIB_PREFIX)sicui18n*.a
312  
313  # Shared library name for usage inside of the UDF
314  IbUtilLibraryName = $(LIB_PREFIX)ib_util.$(SHRLIB_EXT)
315 @@ -305,7 +304,7 @@ CREATE_DB   = $(BIN)/create_db$(EXEC_EXT)
316  GDS_DROP       = $(BIN)/gds_drop$(EXEC_EXT)
317  FBSVCMGR       = $(BIN)/fbsvcmgr$(EXEC_EXT)
318  FBTRACEMGR     = $(BIN)/fbtracemgr$(EXEC_EXT)
319 -GSTAT          = $(BIN)/gstat$(EXEC_EXT)
320 +GSTAT          = $(BIN)/fbstat$(EXEC_EXT)
321  NBACKUP                = $(BIN)/nbackup$(EXEC_EXT)
322  FBTRACE                = $(PLUGINS)/$(LIB_PREFIX)fbtrace.$(SHRLIB_EXT)
323  LOCKPRINT      = $(BIN)/fb_lock_print$(EXEC_EXT)
324 @@ -327,14 +326,14 @@ ISC_GBAK  = $(BIN)/security.gbak
325  QLI            = $(BIN)/qli$(EXEC_EXT)
326  
327  # From isql
328 -ISQL            = $(BIN)/isql$(EXEC_EXT)
329 -ISQL_STATIC     = $(BIN)/isql_static$(EXEC_EXT)
330 -MUISQL          = $(BIN)/muisql$(EXEC_EXT)
331 +ISQL            = $(BIN)/isql-fb$(EXEC_EXT)
332 +ISQL_STATIC     = $(BIN)/isql-fb_static$(EXEC_EXT)
333 +MUISQL          = $(BIN)/muisql-fb$(EXEC_EXT)
334  
335  # From burp
336  GBAK_STATIC     = $(BIN)/gbak_static$(EXEC_EXT)
337  GBAK            = $(BIN)/gbak$(EXEC_EXT)
338 -GSPLIT          = $(BIN)/gsplit$(EXEC_EXT)
339 +GSPLIT          = $(BIN)/fbsplit$(EXEC_EXT)
340  
341  # From gpre
342  # (gpre current is a link to one of the others)
343
344
345 [FILE:358:patches/patch-builds_posix_make.rules]
346 --- builds/posix/make.rules.orig        2016-06-30 09:34:53 UTC
347 +++ builds/posix/make.rules
348 @@ -37,6 +37,8 @@ WFLAGS:=$(CPPFLAGS) -I$(SRC_ROOT)/includ
349  
350  ifeq ($(STD_ICU),false)
351    WFLAGS:= $(WFLAGS) -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n
352 +else
353 +  WFLAGS:= $(WFLAGS) $(shell icu-config --cppflags)
354  endif
355  
356  ifeq ($(IsProdTypeBuild),Y)
357
358
359 [FILE:2462:patches/patch-configure]
360 --- configure.orig      2017-02-14 09:42:30 UTC
361 +++ configure
362 @@ -2428,7 +2428,7 @@ _ACEOF
363      SHRLIB_EXT=so
364      ;;
365  
366 -  amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64*-*-k*bsd*-gnu)
367 +  amd64-*-freebsd* | x86_64*-*-freebsd* | x86_64-*-dragonfly* | x86_64*-*-k*bsd*-gnu)
368      MAKEFILE_PREFIX=freebsd_amd64
369      case "$target" in
370          x86_64*-*-k*bsd-gnu)      # Debian/kFreeBSD
371 @@ -2466,7 +2466,7 @@ _ACEOF
372      SHRLIB_EXT=so
373      ;;
374  
375 -  *-*-freebsd* | *-*-k*bsd*-gnu)
376 +  *-*-freebsd* | *-*-dragonfly* | *-*-k*bsd*-gnu)
377      MAKEFILE_PREFIX=freebsd
378      case "$target" in
379          *-*-k*bsd-gnu)      # Debian/kFreeBSD
380 @@ -4502,7 +4502,7 @@ $as_echo "$as_me: WARNING: we do not kno
381  $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
382          flag=no
383          case "${host_cpu}-${host_os}" in
384 -                *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
385 +                *-aix* | *-freebsd* | *-dragonfly* | *-darwin*) flag="-D_THREAD_SAFE";;
386                  *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
387          esac
388          { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
389 @@ -11582,7 +11582,7 @@ freebsd* | dragonfly*)
390      shlibpath_overrides_runpath=no
391      hardcode_into_libs=yes
392      ;;
393 -  freebsd*) # from 4.6 on
394 +  freebsd*|dragonfly*) # from 4.6 on
395      shlibpath_overrides_runpath=yes
396      hardcode_into_libs=yes
397      ;;
398 @@ -15574,7 +15574,7 @@ freebsd* | dragonfly*)
399      shlibpath_overrides_runpath=no
400      hardcode_into_libs=yes
401      ;;
402 -  freebsd*) # from 4.6 on
403 +  freebsd*|dragonfly*) # from 4.6 on
404      shlibpath_overrides_runpath=yes
405      hardcode_into_libs=yes
406      ;;
407 @@ -18202,7 +18202,7 @@ freebsd* | dragonfly*)
408      shlibpath_overrides_runpath=no
409      hardcode_into_libs=yes
410      ;;
411 -  freebsd*) # from 4.6 on
412 +  freebsd*|dragonfly*) # from 4.6 on
413      shlibpath_overrides_runpath=yes
414      hardcode_into_libs=yes
415      ;;
416 @@ -20837,7 +20837,7 @@ freebsd* | dragonfly*)
417      shlibpath_overrides_runpath=no
418      hardcode_into_libs=yes
419      ;;
420 -  freebsd*) # from 4.6 on
421 +  freebsd*|dragonfly*) # from 4.6 on
422      shlibpath_overrides_runpath=yes
423      hardcode_into_libs=yes
424      ;;
425 @@ -43305,7 +43305,7 @@ fi
426  
427  (cd extern/icu/source
428  chmod +x runConfigureICU configure install-sh
429 -./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --prefix=`pwd`/..)
430 +./runConfigureICU "$ICU_PLATFORM" "$DEBUG_ICU" "$ICU_EXTRAS" --disable-shared --enable-static --prefix=`pwd`/..)
431  fi
432  
433  echo
434
435
436 [FILE:830:patches/patch-extern_icu_source_config_mh-bsd-gcc]
437 --- extern/icu/source/config/mh-bsd-gcc.orig    2017-02-14 09:17:14 UTC
438 +++ extern/icu/source/config/mh-bsd-gcc
439 @@ -26,14 +26,14 @@ STATIC_O = ao
440  
441  ## Compilation rules
442  %.$(STATIC_O): $(srcdir)/%.c
443 -       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
444 +       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
445  %.o: $(srcdir)/%.c
446 -       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
447 +       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
448  
449  %.$(STATIC_O): $(srcdir)/%.cpp
450 -       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
451 +       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
452  %.o: $(srcdir)/%.cpp
453 -       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
454 +       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
455  
456  
457  ## Dependency rules
458
459
460 [FILE:826:patches/patch-extern_icu_source_config_mh-linux]
461 --- extern/icu/source/config/mh-linux.orig      2017-02-14 09:17:14 UTC
462 +++ extern/icu/source/config/mh-linux
463 @@ -33,14 +33,14 @@ STATIC_O = ao
464  
465  ## Compilation rules
466  %.$(STATIC_O): $(srcdir)/%.c
467 -       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
468 +       $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -fPIC -DPIC -o $@ $<
469  %.o: $(srcdir)/%.c
470 -       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
471 +       $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -fPIC -DPIC -o $@ $<
472  
473  %.$(STATIC_O): $(srcdir)/%.cpp
474 -       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
475 +       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -fPIC -DPIC -o $@ $<
476  %.o: $(srcdir)/%.cpp
477 -       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
478 +       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -fPIC -DPIC -o $@ $<
479  
480  
481  ## Dependency rules
482
483
484 [FILE:396:patches/patch-extern_icu_source_configure]
485 --- extern/icu/source/configure.orig    2017-02-14 09:17:14 UTC
486 +++ extern/icu/source/configure
487 @@ -3122,7 +3122,7 @@ alpha*-*-linux-gnu)
488                 icu_cv_host_frag=mh-cygwin-msvc
489         fi ;;
490  *-*-mingw*) icu_cv_host_frag=mh-mingw ;;
491 -*-*-*bsd*)     icu_cv_host_frag=mh-bsd-gcc ;;
492 +*-*-*bsd*|*-*-dragonfly*)      icu_cv_host_frag=mh-bsd-gcc ;;
493  *-*-aix*)
494         if test "$GCC" = yes; then
495                 icu_cv_host_frag=mh-aix-gcc
496
497
498 [FILE:330:patches/patch-extern_icu_source_runConfigureICU]
499 --- extern/icu/source/runConfigureICU.orig      2017-02-14 09:17:15 UTC
500 +++ extern/icu/source/runConfigureICU
501 @@ -299,7 +299,7 @@ case $platform in
502          RELEASE_CFLAGS='-O2'
503          RELEASE_CXXFLAGS='-O2'
504          ;;
505 -    *BSD)
506 +    *BSD|DragonFly)
507          THE_OS="BSD"
508          THE_COMP="the GNU C++"
509          CC=gcc; export CC
510
511
512 [FILE:368:patches/patch-extern_icu_source_tools_genrb_Makefile.in]
513 --- extern/icu/source/tools/genrb/Makefile.in.orig      2017-02-14 09:17:16 UTC
514 +++ extern/icu/source/tools/genrb/Makefile.in
515 @@ -81,7 +81,7 @@ $(TARGET) : $(OBJECTS)
516         $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
517  
518  $(DERB) : $(DERB_OBJ)
519 -       $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) 
520 +       $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
521  
522  
523  # the 'mv' will always fail if you are building in the source dir
524
525
526 [FILE:400:patches/patch-extern_icu_source_tools_pkgdata_Makefile.in]
527 --- extern/icu/source/tools/pkgdata/Makefile.in.orig    2017-02-14 09:17:16 UTC
528 +++ extern/icu/source/tools/pkgdata/Makefile.in
529 @@ -90,7 +90,7 @@ Makefile: $(srcdir)/Makefile.in  $(top_b
530         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
531  
532  $(TARGET) : $(OBJECTS)
533 -       $(LINK.c) $(OUTOPT)$@ $^ $(LIBS) 
534 +       $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 
535  
536  ifeq (,$(MAKECMDGOALS))
537  -include $(DEPS)
538
539
540 [FILE:484:patches/patch-src-common-classes-FpeControl.h]
541 --- src/common/classes/FpeControl.h.orig        2016-06-30 09:34:54 UTC
542 +++ src/common/classes/FpeControl.h
543 @@ -223,13 +223,13 @@ inline bool isinf(double x)
544         return (!_finite (x) && !isnan(x));
545  }
546  #else
547 -#ifndef isinf
548 +#if !defined isinf  && !defined __FreeBSD__ && !defined __DragonFly__
549  template <typename F>
550  inline bool isinf(F x)
551  {
552         return !isnan(x) && isnan(x - x);
553  }
554 -#endif // isinf
555 +#endif // isinf || FreeBSD || DragonFly
556  #endif // WIN_NT
557  
558  #endif //CLASSES_FPE_CONTROL_H
559
560
561 [FILE:426:patches/patch-src_jrd_isc__sync.cpp]
562 --- src/jrd/isc_sync.cpp.orig   2016-06-30 09:34:54 UTC
563 +++ src/jrd/isc_sync.cpp
564 @@ -677,7 +677,7 @@ namespace {
565         public:
566                 const static int N_FILES = 128;
567                 const static int N_SETS = 256;
568 -#if defined(DEV_BUILD)
569 +#if defined(DEV_BUILD) || defined(FREEBSD)
570                 const static int SEM_PER_SET = 4;       // force multiple sets allocation
571  #else
572                 const static int SEM_PER_SET = 31;      // hard limit for some old systems, might set to 32
573
574
575 [FILE:1896:files/firebird.in]
576 #!/bin/sh
577 #
578 # PROVIDE: firebird
579 # REQUIRE: LOGIN
580 # KEYWORD: shutdown
581 #
582 # Add the following line to /etc/rc.conf to enable Firebird Database:
583 #
584 #
585 # firebird_enable:      Set it to "YES" to enable firebird.
586 #                       Default is "NO".
587 # firebird_mode:        Set it to "superclassic" or "superserver" to enable firebird.
588 #                       Default is "superclassic".
589 # firebird_flags:       Set options to run fbserver or fb_smp_server.
590 #                       Default is "-el /var/db/firebird".
591 # firebird_pidfile:     Set full path to pid file.
592 #                       Default is "/var/run/firebird.pid".
593 #
594
595 . /etc/rc.subr
596
597 name=firebird
598 rcvar=firebird_enable
599
600 load_rc_config $name
601
602 firebird_enable=${firebird_enable:-"NO"}
603 firebird_mode=${firebird_mode:-"superclassic"}
604 firebird_flags=${firebird_flags:-"-el /var/db/firebird"}
605 firebird_pidfile=${firebird_pidfile:-"/var/run/${name}.pid"}
606 firebird_user=firebird
607
608 command=%%PREFIX%%/sbin/fb_smp_server
609 command_args="${firebird_flags} &"
610 pidfile=${firebird_pidfile}
611 start_precmd="start_precmd"
612 start_postcmd="start_postcmd"
613 stop_postcmd="stop_postcmd"
614 reload_postcmd="reload_postcmd"
615
616 start_precmd()
617 {
618         touch ${firebird_pidfile}
619         chown "${firebird_user}:wheel" ${firebird_pidfile} ||
620                 err 1 "Cannot chown ${firebird_pidfile}"
621 }
622
623 start_postcmd()
624 {
625         pgrep -u ${firebird_user} ${command_app} > ${firebird_pidfile}
626         echo "Current firebird mode is $firebird_mode"
627 }
628
629 stop_postcmd()
630 {
631         rm -f ${pidfile}
632 }
633
634 reload_postcmd()
635 {
636         rm -f ${pidfile}
637         run_rc_command start
638 }
639
640 case "${firebird_mode}" in
641         superclassic)
642                 command=%%PREFIX%%/sbin/fb_smp_server
643                 command_app=fb_smp_server
644                 ;;
645         superserver)
646                 command=%%PREFIX%%/sbin/fbserver
647                 command_app=fbserver
648                 ;;
649         *)
650                 warn "$firebird_mode is an invalid value for firebird_mode"
651                 return 1
652                 ;;
653 esac
654
655 run_rc_command "$1"
656
657
658 [FILE:838:files/pkg-install-server]
659 #!/bin/sh
660
661 PATH=/bin:/usr/bin:/usr/sbin
662
663 buildwarning() {
664 cat <<EOF
665 ###############################################################################
666
667                              ** IMPORTANT **
668
669 Keep in mind that if you build firebird server as 'root', this may cause
670 conflicts with SysV semaphores of running services.
671
672 If you want to cancel it, press ctrl-C now if you need check some things
673 before of build it.
674
675 ###############################################################################
676 EOF
677         sleep 5
678 }
679
680 case $2 in
681 PRE-INSTALL)
682         buildwarning
683 ;;
684 POST-INSTALL)
685         cd /var/db/firebird
686
687 # Lock files
688
689 for i in isc_init1 isc_lock1 isc_event1
690 do
691         FileName=$i.`hostname`
692         touch $FileName
693         chmod uga=rw $FileName
694         chown firebird:firebird $FileName
695 done
696
697 touch firebird.log
698 chown firebird:firebird firebird.log security2.fdb
699
700 ;;
701
702 esac
703
704
705 [FILE:1468:files/pkg-message-server.in]
706 ###############################################################################
707
708 Firebird was installed.
709
710 1) Support for Super Server has been added
711 2) Before start the server ensure that the following line exists in /etc/services:
712
713 gds_db          3050/tcp  #InterBase Database Remote Protocol
714
715 3) If you use inetd (Classic Server) then add the following line to /etc/inetd.conf
716
717 gds_db  stream  tcp     nowait  firebird        %%PREFIX%%/sbin/fb_inet_server  fb_inet_server
718
719 And finally restart inetd.
720
721 4) If you want to use SuperClassic Server then you must add the following lines
722    to /etc/rc.conf file.
723
724  firebird_enable="YES"
725  firebird_mode="superclassic"
726
727 5) If you want to use Super Server then you must add the following lines to
728    /etc/rc.conf file.
729
730  firebird_enable="YES"
731  firebird_mode="superserver"
732
733  Note: Keep in mind that you only can add one of them but never both modes on
734        the same time
735
736 6) Bedore doing anything serious with Firebird, it is STRONGLY recommended
737    that you change the SYSDBA password with:
738
739  # gsec -user SYSDBA -pass masterkey
740  GSEC> modify SYSDBA -pw newpassword
741  GSEC> quit
742
743 7) See documentation in %%DOCDIR%%/ for more information.
744 8) Some firebird tools were renamed for avoid conflicts with some other ports
745
746         %%PREFIX%%/bin/isql   -> %%PREFIX%%/bin/isql-fb
747         %%PREFIX%%/bin/gstat  -> %%PREFIX%%/bin/fbstat
748         %%PREFIX%%/bin/gsplit -> %%PREFIX%%/bin/fbsplit
749
750 ################################################################################
751
752
753 [FILE:163:dragonfly/patch-builds_posix_empty.vers]
754 --- builds/posix/empty.vers.orig        2016-06-30 09:34:53 UTC
755 +++ builds/posix/empty.vers
756 @@ -27,6 +27,8 @@
757  {
758  global:
759         main;
760 +       __progname;
761 +       environ;
762  
763  local:
764         *;
765
766
767 [FILE:225:dragonfly/patch-builds_posix_firebird.vers]
768 --- builds/posix/firebird.vers.orig     2016-06-30 09:34:53 UTC
769 +++ builds/posix/firebird.vers
770 @@ -25,6 +25,8 @@
771  
772  {
773  global:
774 +       __progname;
775 +       environ;
776  # private entrypoint for REMOTE server
777         server_main;
778  #-------------------
779
780
781 [FILE:163:freebsd/patch-builds_posix_empty.vers]
782 --- builds/posix/empty.vers.orig        2016-06-30 09:34:53 UTC
783 +++ builds/posix/empty.vers
784 @@ -27,6 +27,8 @@
785  {
786  global:
787         main;
788 +       __progname;
789 +       environ;
790  
791  local:
792         *;
793
794
795 [FILE:225:freebsd/patch-builds_posix_firebird.vers]
796 --- builds/posix/firebird.vers.orig     2016-06-30 09:34:53 UTC
797 +++ builds/posix/firebird.vers
798 @@ -25,6 +25,8 @@
799  
800  {
801  global:
802 +       __progname;
803 +       environ;
804  # private entrypoint for REMOTE server
805         server_main;
806  #-------------------
807