aboutsummaryrefslogtreecommitdiff
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
parent17e1f4bf71fcdd4743e5ee4f9b83461381dfda83 (diff)
downloadports-5ccbc2a8acb7f736ee65382f5bf4c48c35167f55.tar.gz
ports-5ccbc2a8acb7f736ee65382f5bf4c48c35167f55.zip
Notes
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"