summaryrefslogtreecommitdiff
path: root/www/mod_gzip
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-01-16 19:08:45 +0000
committerWill Andrews <will@FreeBSD.org>2001-01-16 19:08:45 +0000
commit5ccbc2a8acb7f736ee65382f5bf4c48c35167f55 (patch)
tree4ea8a3247c3032b7171664c4a7f0bf5e871c3cba /www/mod_gzip
parentSlightly simplify Makefiles used to build the kld's (w/o functionality change). (diff)
Update to sync with bsd.port.mk rev 1.361 - use PORTDOCS that is now in
bsd.port.mk, for easy removal of documentation. I left alone one port - japanese/elisa8x8 (or something like that), because it appeared to have some rather weird way of doing PORTDOCS substitution.
Notes
Notes: svn path=/head/; revision=37257
Diffstat (limited to 'www/mod_gzip')
-rw-r--r--www/mod_gzip/Makefile8
-rw-r--r--www/mod_gzip/pkg-plist4
2 files changed, 3 insertions, 9 deletions
diff --git a/www/mod_gzip/Makefile b/www/mod_gzip/Makefile
index 2233bc240d97..8c4b9b174a7b 100644
--- a/www/mod_gzip/Makefile
+++ b/www/mod_gzip/Makefile
@@ -28,17 +28,11 @@ do-build:
do-install:
cd ${WRKSRC} && ${LOCALBASE}/sbin/apxs -A -i ${PORTNAME}.so
-.if !defined(NOPORTDOCS)
-DISTFILES+= readme.txt
-PLIST_SUB+= DOC=''
-
post-install:
+.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
@${INSTALL_DATA} ${_DISTDIR}/${DISTFILES:N*gz} \
${PREFIX}/share/doc/${PORTNAME}
-
-.else
-PLIST_SUB+= DOC='@comment '
.endif
.include <bsd.port.mk>
diff --git a/www/mod_gzip/pkg-plist b/www/mod_gzip/pkg-plist
index b84062ddf639..bc2ee37e1885 100644
--- a/www/mod_gzip/pkg-plist
+++ b/www/mod_gzip/pkg-plist
@@ -1,5 +1,5 @@
libexec/apache/mod_gzip.so
-%%DOC%%share/doc/mod_gzip/readme.txt
-%%DOC%%@dirrm share/doc/mod_gzip
+%%PORTDOCS%%share/doc/mod_gzip/readme.txt
+%%PORTDOCS%%@dirrm share/doc/mod_gzip
@exec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so; echo " enable the mod_gzip in Apache's config manually"
@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n gzip mod_gzip.so || echo " remove the mod_gzip from Apache's config manually"