aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_gzip2/Makefile
blob: 11ffda40bffc02388c5995bfade3fb89957ffd9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: Stefan `Sec` Zehl <sec@42.org>
# $FreeBSD$

PORTNAME=   mod_gzip2
PORTVERSION=    2.1.0
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://www.gknw.net/development/apache/httpd-2.0/unix/modules/
DISTNAME=   mod_gzip-${PORTVERSION}

MAINTAINER= sec@42.org
COMMENT=    Apache 2.x Internet Content Acceleration module

#LICENSE=   AL11

USE_APACHE= 22+
AP_FAST_BUILD=  yes
AP_GENPLIST=    yes
MAKE_ENV+=  "APXS=${APXS}"
USES=       gmake

PORTDOCS=   commands.txt samples.txt
PORTEXAMPLES=   mod_gzip2.conf.sample

post-patch:
    @${MV} ${WRKSRC}/mod_gzip.c ${WRKSRC}/${PORTNAME}.c

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/my_cfg.txt ${STAGEDIR}${EXAMPLESDIR}/mod_gzip2.conf.sample
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>