diff options
author | demon <demon@FreeBSD.org> | 2001-12-03 01:53:14 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2001-12-03 01:53:14 +0800 |
commit | 2f4a41c68316b5ad120514b9e4f09d48f4e08822 (patch) | |
tree | 804c95bb12b050dca34dadb4ebe588ef0f09d147 /databases/firebird20-server/Makefile | |
parent | 386e73b27a1bb39ba708ab32af54c8ccc8499750 (diff) | |
download | freebsd-ports-graphics-2f4a41c68316b5ad120514b9e4f09d48f4e08822.tar.gz freebsd-ports-graphics-2f4a41c68316b5ad120514b9e4f09d48f4e08822.tar.zst freebsd-ports-graphics-2f4a41c68316b5ad120514b9e4f09d48f4e08822.zip |
Minor updates from MAINTAINER.
PR: 32423
Submitted by: chris@aims.com.au
Diffstat (limited to 'databases/firebird20-server/Makefile')
-rw-r--r-- | databases/firebird20-server/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/databases/firebird20-server/Makefile b/databases/firebird20-server/Makefile index 84a159021b0..4e65f06dc7d 100644 --- a/databases/firebird20-server/Makefile +++ b/databases/firebird20-server/Makefile @@ -20,6 +20,8 @@ MAINTAINER= chris@aims.com.au WRKSRC= ${WRKDIR}/interbase INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/firebird/lib +MSG_FILE= ${PKGDIR}/pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message ONLY_FOR_ARCHS= i386 @@ -28,14 +30,18 @@ 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; \ + cd ${WRKDIR}; ${TAR} -xzf ${DISTDIR}/interbase0.9-4src.tar.gz; \ + cd interbase; ${TAR} -xzf ${DISTDIR}/firebird-boot-kit.tar.gz; \ ${CP} msgs/msg.gbak misc/msg.gbak \ ) -.if ${OSVERSION} >= 500016 post-patch: - ${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g' ${WRKSRC}/builds/original/prefix.freebsd + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} +.if ${OSVERSION} >= 500016 || ${OSVERSION} >= 430001 + @${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g' \ + ${WRKSRC}/builds/original/prefix.freebsd +.else + @${PERL} -pi -e 's,^crypt_set_format.*,,' ${WRKSRC}/jrd/enc.c .endif do-configure: @@ -49,6 +55,10 @@ do-configure: do-build: @( \ + ${ECHO} '#!/bin/sh'; ${ECHO} \ + '[ -d ${LDCONFIG_RUNLIST} ] && ${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \ + ) > ${WRKDIR}/000.${PORTNAME}.sh + @( \ cd ${WRKDIR}/interbase; \ INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \ REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \ @@ -62,11 +72,10 @@ do-install: ${RM} ${PREFIX}/firebird/install; \ ${RM} ${PREFIX}/firebird/lib/libgds.so.1.0; \ ${LN} -fs gds.so ${PREFIX}/firebird/lib/libgds.so.1; \ - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/firebird/lib \ - ${CHMOD} -R g-w ${PREFIX}/firebird/lib \ cd ${PREFIX}/firebird/examples; \ - tar zxf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz; \ - ${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/ \ + ${TAR} -xzf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz; \ + ${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/; \ + ${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/ \ ) .include <bsd.port.post.mk> |