diff options
author | veego <veego> | 2000-02-22 17:38:16 +0000 |
---|---|---|
committer | veego <veego> | 2000-02-22 17:38:16 +0000 |
commit | fceb92b3a976b8f62121190921457e8caaa5cfc0 (patch) | |
tree | 17daf646f71d415da7a841725fb69e717084f5d5 /www | |
parent | 8eb6175c3fc7f6dbd36c3914a1d29cd6328989bf (diff) | |
download | pkgsrc-fceb92b3a976b8f62121190921457e8caaa5cfc0.tar.gz |
Solaris needs a dependence for db-2.7.7 and fix the broken [ -e test on Solaris.
Diffstat (limited to 'www')
-rw-r--r-- | www/apache/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile index 8affdca5c09..9c99e05514c 100644 --- a/www/apache/Makefile +++ b/www/apache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2000/02/20 22:05:42 wiz Exp $ +# $NetBSD: Makefile,v 1.44 2000/02/22 17:38:16 veego Exp $ # # The fourth number in the PKGNAME version indicates a NetBSD pkg revision # (to indicate changes in the shipped third party patches such as the mod_ssl @@ -51,6 +51,13 @@ OPTIM+= -DBUFFERED_LOGS CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations .endif +.if (${OPSYS} == "SunOS") +DEPENDS+= db-2.7.7:../../databases/db +LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib +CONFIGURE_ENV+= INCLUDES="-I${LOCALBASE}/include/db2" +CONFIGURE_ENV+= LIBS="-ldbm -ldb2" +.endif + PLIST_SRC= ${WRKDIR}/PLIST BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC @@ -76,7 +83,7 @@ pre-patch: | ${PATCH} ${PATCH_ARGS} post-patch: - @${FIND} ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM} + @${FIND} ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM} -f post-build: ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/apache.sh \ @@ -91,7 +98,7 @@ post-install: ${MKDIR} ${PREFIX}/lib/httpd @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} .for FILE in man/man8/suexec.8 sbin/suexec - @if [ -e ${PREFIX}/${FILE} ]; then \ + @if ${TEST} -e ${PREFIX}/${FILE} ; then \ ${ECHO} ${FILE} >>${PLIST_SRC}; \ fi .endfor |