diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-19 16:23:08 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-19 16:23:08 +0000 |
commit | b23d2e86260aaa8ed2013bf77ad605b63e34b0ed (patch) | |
tree | d5fafec9bfc1b14f6b1c5da4d0c45beb2b4758b4 /www/php4/Makefile | |
parent | c850f81b615ba9e58563fe40c1075ad3aea9ffa4 (diff) | |
download | pkgsrc-b23d2e86260aaa8ed2013bf77ad605b63e34b0ed.tar.gz |
Adapt to use shared INSTALL/DEINSTALL scripts by using the logic in
bsd.pkg.install.mk:
* Remove old DEINSTALL/INSTALL scripts.
* Move some text printed at POST-INSTALL time into the MESSAGE file.
* Adjust rc.d scripts to respect rc.conf settings, so that the
script may be directly copied into /etc/rc.d.
Diffstat (limited to 'www/php4/Makefile')
-rw-r--r-- | www/php4/Makefile | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile index 55a02a65beb..51144daedaa 100644 --- a/www/php4/Makefile +++ b/www/php4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2001/10/20 17:46:50 jlam Exp $ +# $NetBSD: Makefile,v 1.17 2001/11/19 16:23:15 jlam Exp $ .include "Makefile.php" @@ -17,17 +17,6 @@ LDFLAGS+= -Wl,--export-dynamic CGIDIR= ${PREFIX}/libexec/cgi-bin EGDIR= ${PREFIX}/share/examples/php -DEINSTALL_FILE= ${WRKDIR}/DEINSTALL -INSTALL_FILE= ${WRKDIR}/INSTALL - -FILES_SUBST= PHP_CONFDIR=${PHP_CONFDIR} -FILES_SUBST+= CAT=${CAT:Q} -FILES_SUBST+= CHMOD=${CHMOD:Q} -FILES_SUBST+= CMP=${CMP:Q} -FILES_SUBST+= CP=${CP:Q} -FILES_SUBST+= RM=${RM:Q} -FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} - # On NetBSD ELF platforms, we need to link libgcc.a whole-archive so that # certain symbols from the C++ implementation (__get_eh_context, etc.) # referenced by DSOs written in C++ will resolve correctly. We need to @@ -40,9 +29,9 @@ LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -Wl,-lgcc -Wl,--no-whole-archive MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}" .endif +CONF_FILES= ${EGDIR}/php.ini-dist ${CONFDIR}/php.ini + pre-install: - ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} - ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL post-install: @@ -55,4 +44,5 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/php4.gif ${PREFIX}/share/php PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" |