46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.17 2013/03/11 11:44:43 espie Exp $
|
|
|
|
COMMENT= transparently compress Apache output
|
|
|
|
REVISION= 6
|
|
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
|
|
|
|
MODAPACHE_NAME= gzip
|
|
|
|
SUBST_VARS= PKGNAME
|
|
NO_TEST= 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>
|