aboutsummaryrefslogtreecommitdiffstats
path: root/databases/firebird2-server/Makefile
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-05-21 16:01:24 +0800
committersem <sem@FreeBSD.org>2005-05-21 16:01:24 +0800
commitd57e916573a8699623e99bc06f7f32edd2e72d7a (patch)
tree2806bfb5acce62e8f9209e5bcff947e3341e350c /databases/firebird2-server/Makefile
parentf9da77b6d0e1e3db9ac691d950ce9d316107c908 (diff)
downloadfreebsd-ports-gnome-d57e916573a8699623e99bc06f7f32edd2e72d7a.tar.gz
freebsd-ports-gnome-d57e916573a8699623e99bc06f7f32edd2e72d7a.tar.zst
freebsd-ports-gnome-d57e916573a8699623e99bc06f7f32edd2e72d7a.zip
- Fix problem with firebird.conf. It was not installed.
- Fix problem with firebird.msg. It was installed only for -server, but it's necessary for -client too (thanks to skv@ for pointing this out). - Utilize PORTDOCS and SUBFILES, respect NOPORTDOCS. - Utilize DOCSDIR and EXAMPLESDIR. - Back to use do-build. - Add $FreeBSD$ tag to pkg-plist* and pkg-install. - Remove code that changes automatically /etc/services and /etc/inetd.conf and change pkg-message to reflect this. PR: ports/81214 Submitted by: maintainer
Diffstat (limited to 'databases/firebird2-server/Makefile')
-rw-r--r--databases/firebird2-server/Makefile75
1 files changed, 40 insertions, 35 deletions
diff --git a/databases/firebird2-server/Makefile b/databases/firebird2-server/Makefile
index 61788ec7492f..6d800a8bdd19 100644
--- a/databases/firebird2-server/Makefile
+++ b/databases/firebird2-server/Makefile
@@ -7,6 +7,7 @@
PORTNAME?= firebird
PORTVERSION= 1.5.2
+PORTREVISION= 1
CATEGORIES?= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=firebird
@@ -54,6 +55,8 @@ BINMODE= 550
SHAREOWN= firebird
SHAREGRP= firebird
+SUB_FILES= pkg-install pkg-message aliases.conf
+
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGINSTALL= ${WRKDIR}/pkg-install
@@ -67,6 +70,10 @@ ALL_TARGET= firebird_basic libfbembed embed_gfix embed_gbak embed_isql embed_gpr
embed_util embed_gdef embed_qli libfbclient extlib
INSTALLS_SHLIB= yes
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
.endif
.include <bsd.port.pre.mk>
@@ -85,40 +92,25 @@ pre-everything::
.if !defined(BATCH)
@sleep 10
.endif
+.endif
post-patch:
+.if !defined(CLIENT_ONLY)
@${REINPLACE_CMD} -e 's|^\(LINK_OPTS +=.*\)$$|\1 -L${LOCALBASE}/lib|' \
${WRKSRC}/builds/posix/Makefile.in.inet_server
+.endif
+ @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
+ ${WRKSRC}/src/jrd/gds.cpp
-post-build:
- ${SED} 's|%%PREFIX%%|${PREFIX}|g' \
- < ${FILESDIR}/pkg-message.in \
- > ${PKGMESSAGE}
-
- ${SED} -e 's|%%PREFIX%%|${PREFIX}/firebird|g' \
- < ${FILESDIR}/pkg-install.in \
- > ${PKGINSTALL}
-
- ${SED} -e "s|%%PREFIX%%|${PREFIX}/firebird|g" \
- < ${FILESDIR}/aliases.conf.in \
- > ${WRKDIR}/aliases.conf
-
+.if !defined(CLIENT_ONLY)
pre-install:
- ${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
+ @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
- ${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
- @${ECHO_MSG}
+ @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
.endif
-patch-autotools:
- @${DO_NADA}
-
-run-autotools:
- @${DO_NADA}
-
do-configure:
@(cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} MAKE=${GMAKE} \
${AUTOTOOLS_VARS} ./autogen.sh ${AUTOGENARGS})
@@ -126,6 +118,12 @@ do-configure:
post-configure:
@${REINPLACE_CMD} -e 's|__attribute__ ((__unused__));||' \
${WRKSRC}/src/dsql/parse.cpp
+ @${REINPLACE_CMD} -e 's|firebird\.conf|${PREFIX}/etc/firebird.conf|g; \
+ s|root_dir + string(CONFIG_FILE)|string(CONFIG_FILE)|g' \
+ ${WRKSRC}/src/jrd/os/posix/config_root.cpp
+
+do-build:
+ @(cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} ${GMAKE} ${ALL_TARGET})
do-install:
.if !defined(CLIENT_ONLY)
@@ -139,11 +137,9 @@ do-install:
.endfor
${INSTALL_DATA} ${WRKDIR}/aliases.conf ${PREFIX}/firebird/aliases.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/gen/firebird/misc/firebird.conf ${PREFIX}/firebird/firebird.conf.sample
${INSTALL_DATA} ${WRKSRC}/gen/firebird/security.fdb ${PREFIX}/firebird/security.fdb.sample
${CHMOD} 660 ${PREFIX}/firebird/security.fdb.sample
- ${INSTALL_DATA} ${WRKSRC}/gen/firebird/firebird.msg ${PREFIX}/firebird/firebird.msg
${INSTALL_DATA} ${WRKSRC}/gen/firebird/help/help.fdb ${PREFIX}/firebird/help
.for f in ib_udf.so fbudf.so
@@ -165,15 +161,16 @@ do-install:
.else
-.for dir in include share/doc/firebird \
- share/doc/firebird/sql.extensions share/examples/firebird
- ${MKDIR} ${PREFIX}/${dir}
-.endfor
-
.for f in fb_lock_print gbak gdef gds_drop gfix gpre gsec gstat isql qli
${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/bin/${f} ${PREFIX}/bin
.endfor
+ @${MKDIR} ${PREFIX}/etc
+.if !exists(${PREFIX}/etc/firebird.conf)
+ ${INSTALL_DATA} ${WRKSRC}/gen/firebird/misc/firebird.conf ${PREFIX}/etc
+.endif
+ ${INSTALL_DATA} ${WRKSRC}/gen/firebird/misc/firebird.conf ${PREFIX}/etc/firebird.conf.sample
+
${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/lib/libfbclient.so.${PORTVERSION} ${PREFIX}/lib
${LN} -fs libfbclient.so.${PORTVERSION} ${PREFIX}/lib/libfbclient.so.1
${LN} -fs libfbclient.so.1 ${PREFIX}/lib/libfbclient.so
@@ -187,15 +184,23 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gen/firebird/lib/libib_util.so ${PREFIX}/lib
+ @${MKDIR} ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/gen/firebird/include/*.h ${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/doc/WhatsNew ${PREFIX}/share/doc/firebird
- ${INSTALL_DATA} ${WRKSRC}/doc/README.* ${PREFIX}/share/doc/firebird
- ${INSTALL_DATA} ${WRKSRC}/doc/README.user ${PREFIX}/share/doc/firebird/README
- ${INSTALL_DATA} ${WRKSRC}/doc/sql.extensions/README.* ${PREFIX}/share/doc/firebird/sql.extensions
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gen/firebird/firebird.msg ${DATADIR}
+
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/sql.extensions
+ ${INSTALL_DATA} ${WRKSRC}/doc/WhatsNew ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/README.* ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/README.user ${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/doc/sql.extensions/README.* ${DOCSDIR}/sql.extensions
+.endif
# Install examples
- ${INSTALL_DATA} ${WRKSRC}/gen/firebird/examples/v5/* ${PREFIX}/share/examples/firebird
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/gen/firebird/examples/v5/* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>