- USE_APACHE=yes is deprecated

- Handle NOPORTEXAMPLES
- Use SF macro
- Use APACHEMODDIR in pkg-plist

PR:		ports/133645
Submitted by:	pgollucci
This commit is contained in:
Alex Dupre 2009-04-28 06:10:54 +00:00
parent 553fe200be
commit acbe68d025
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232890
2 changed files with 27 additions and 25 deletions

View File

@ -8,14 +8,14 @@
PORTNAME= mod_gzip
PORTVERSION= 1.3.26.1a
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mod-gzip
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
EXTRACT_SUFX= .tgz
MAINTAINER= ale@FreeBSD.org
COMMENT= An Internet Content Acceleration module for Apache
USE_APACHE= yes
USE_APACHE= 1.3
MAKE_ENV+= "APXS=${APXS}"
ALL_TARGET= build
@ -23,12 +23,16 @@ post-patch:
@${REINPLACE_CMD} 's|-Wc,-Wall,-O3,-fomit-frame-pointer,-pipe||' \
${WRKSRC}/Makefile
PORTEXAMPLES= ${PORTNAME}.conf.sample
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/mod_gzip.conf.sample ${EXAMPLESDIR}
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}/
@${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.conf.sample ${EXAMPLESDIR}/
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/docs/manual/english/* ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/docs/manual/english/* ${DOCSDIR}/
.endif
.include <bsd.port.mk>

View File

@ -1,20 +1,18 @@
libexec/apache/mod_gzip.so
%%APACHEMODDIR%%/mod_gzip.so
@exec %D/sbin/apxs -e -A -n gzip %f
@unexec %D/sbin/apxs -e -A -n gzip %f
%%PORTDOCS%%share/doc/mod_gzip/browser.htm
%%PORTDOCS%%share/doc/mod_gzip/cache.htm
%%PORTDOCS%%share/doc/mod_gzip/config.htm
%%PORTDOCS%%share/doc/mod_gzip/encoding.htm
%%PORTDOCS%%share/doc/mod_gzip/enhancements.htm
%%PORTDOCS%%share/doc/mod_gzip/extern.gif
%%PORTDOCS%%share/doc/mod_gzip/firewalls.htm
%%PORTDOCS%%share/doc/mod_gzip/index.htm
%%PORTDOCS%%share/doc/mod_gzip/links.htm
%%PORTDOCS%%share/doc/mod_gzip/mod_gzip_logo.gif
%%PORTDOCS%%share/doc/mod_gzip/status.htm
%%PORTDOCS%%share/doc/mod_gzip/valid-css.png
%%PORTDOCS%%share/doc/mod_gzip/valid-xhtml11.png
%%PORTDOCS%%share/doc/mod_gzip/versions.htm
share/examples/mod_gzip/mod_gzip.conf.sample
@dirrm share/examples/mod_gzip
%%PORTDOCS%%@dirrm share/doc/mod_gzip
%%PORTDOCS%%%%DOCSDIR%%/browser.htm
%%PORTDOCS%%%%DOCSDIR%%/cache.htm
%%PORTDOCS%%%%DOCSDIR%%/config.htm
%%PORTDOCS%%%%DOCSDIR%%/encoding.htm
%%PORTDOCS%%%%DOCSDIR%%/enhancements.htm
%%PORTDOCS%%%%DOCSDIR%%/extern.gif
%%PORTDOCS%%%%DOCSDIR%%/firewalls.htm
%%PORTDOCS%%%%DOCSDIR%%/index.htm
%%PORTDOCS%%%%DOCSDIR%%/links.htm
%%PORTDOCS%%%%DOCSDIR%%/mod_gzip_logo.gif
%%PORTDOCS%%%%DOCSDIR%%/status.htm
%%PORTDOCS%%%%DOCSDIR%%/valid-css.png
%%PORTDOCS%%%%DOCSDIR%%/valid-xhtml11.png
%%PORTDOCS%%%%DOCSDIR%%/versions.htm
%%PORTDOCS%%@dirrm %%DOCSDIR%%