summaryrefslogtreecommitdiff
path: root/www/mod_myvhost/Makefile
blob: d9ded9dd24590ce7f012187c0000f2bcd226ef5d (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: Olli Hauer <ohauer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	mod_myvhost
PORTVERSION=	0.21
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://mod-myvhost.googlecode.com/files/
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}

MAINTAINER=	apache@FreeBSD.org
COMMENT=	Apache module for dynamically configured mass virtual hosting with php

LICENSE=	APACHE20

BROKEN=		Unfetchable (google code has gone away)
DEPRECATED=	Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=	2017-04-30

MANUAL_PACKAGE_BUILD=	needs apr and apache with DBD options enabled

USE_APACHE=	22+

PORTDOCS=	changelog.html documentation.html download.html \
		index.html my.css
PORTEXAMPLES=	vhosts.sql httpd.conf.add

OPTIONS_DEFINE=		PHP_MODULE DEBUG_MODULE PHP DEBUG
OPTIONS_DEFAULT=	PHP_MODULE

PHP_MODULE_DESC=	Enable PHP
DEBUG_MODULE_DESC=	Enable debugging

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG_MODULE}
MAKE_ENV+=	WITH_DEBUG=true
STRIP=		# keep debug information
.endif

.if ${PORT_OPTIONS:MPHP_MODULE}
MAKE_ENV+=	WITH_PHP=true
USES+=	php:mod
.endif

pre-patch:
	@${REINPLACE_CMD} -e "s|= apxs|= ${APXS}|" \
		-e "s|= rm|= ${RM}|" -e "s|= ln|= ${LN}|" \
		-e "s|= cp|= ${CP}|" ${WRKSRC}/Makefile

post-patch:
	${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
		${WRKSRC}/Makefile

pre-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}

	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>