44857b2db6
OK, landry@
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2010/09/26 17:45:13 sebastia Exp $
|
|
|
|
COMMENT= transparently compress Apache output
|
|
|
|
REVISION= 5
|
|
DISTNAME= mod_gzip-1.3.26.1a
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mod-gzip/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
HOMEPAGE= http://www.schroepl.net/projekte/mod_gzip/
|
|
|
|
MODULES+= apache-module
|
|
|
|
# Apache
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODAPACHE_NAME= gzip
|
|
|
|
SUBST_VARS= PKGNAME
|
|
NO_REGRESS= Yes
|
|
|
|
HTML_DOCS= browser.htm cache.htm config.htm encoding.htm \
|
|
enhancements.htm extern.gif firewalls.htm index.htm \
|
|
links.htm mod_gzip_logo.gif status.htm valid-css.png \
|
|
valid-xhtml11.png versions.htm
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && /usr/sbin/apxs -Wc,"${CFLAGS}" -c mod_gzip.c \
|
|
mod_gzip_debug.c mod_gzip_compress.c -o ${WRKBUILD}/mod_gzip.so
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_gzip
|
|
${INSTALL_DATA} ${WRKSRC}/docs/mod_gzip.conf.sample \
|
|
${PREFIX}/share/examples/mod_gzip
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_gzip
|
|
.for i in ${HTML_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/manual/english/${i} \
|
|
${PREFIX}/share/doc/mod_gzip
|
|
.endfor
|
|
${MODAPACHE_INSTALL}
|
|
|
|
.include <bsd.port.mk>
|