2005-01-25 21:24:06 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2005/01/26 02:24:06 alek Exp $
|
2001-07-15 18:52:45 -04:00
|
|
|
|
|
|
|
COMMENT= "transparently compress Apache output"
|
|
|
|
|
2001-08-12 23:27:09 -04:00
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
2003-05-22 10:16:22 -04:00
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2001-08-12 23:27:09 -04:00
|
|
|
|
2003-05-24 11:37:44 -04:00
|
|
|
V= 1.3.26.1a
|
|
|
|
DISTNAME= mod_gzip-${V}
|
2005-01-25 21:24:06 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2001-07-15 18:52:45 -04:00
|
|
|
CATEGORIES= www
|
2002-10-28 20:30:41 -05:00
|
|
|
|
2003-05-24 11:37:44 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mod-gzip/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
2001-08-12 23:27:09 -04:00
|
|
|
|
2003-05-24 11:37:44 -04:00
|
|
|
HOMEPAGE= http://www.schroepl.net/projekte/mod_gzip/
|
2001-07-15 18:52:45 -04:00
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
|
|
|
|
2003-10-18 15:44:41 -04:00
|
|
|
# Apache
|
2001-07-15 18:52:45 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2001-08-12 23:27:09 -04:00
|
|
|
SUBST_VARS= PKGNAME
|
2002-10-28 20:30:41 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2003-05-24 11:37:44 -04:00
|
|
|
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
|
2001-07-15 18:52:45 -04:00
|
|
|
|
2003-05-24 11:37:44 -04:00
|
|
|
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
|
|
|
|
sed 's,!!PREFIX!!,${PREFIX},' \
|
2001-08-12 23:27:09 -04:00
|
|
|
< ${FILESDIR}/mod_gzip-enable > ${WRKBUILD}/mod_gzip-enable
|
2001-07-15 18:52:45 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_gzip
|
2001-08-12 23:27:09 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/mod_gzip.so ${PREFIX}/lib
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_gzip-enable ${PREFIX}/sbin
|
2003-05-24 11:37:44 -04:00
|
|
|
${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
|
2001-07-15 18:52:45 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|