aboutsummaryrefslogtreecommitdiff
path: root/www/mod_fcgid/Makefile
blob: 7c3ce45fafdba455ae5478db4533be603b219058 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	mod_fcgid for Apache2
# Date created:		13 August 2004
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	mod_fcgid
PORTVERSION=	2.1
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	${PORTNAME:S/_/-/}
DISTNAME=	${PORTNAME}.${PORTVERSION}

MAINTAINER=	hemi@puresimplicity.net
COMMENT=	An alternative FastCGI module for Apache2

USE_APACHE=	2.0+
WITH_APACHE2=	yes

SUB_FILES=	pkg-message

.include <bsd.port.pre.mk>

.if ${APACHE_VERSION} >= 22
MAKE_ARGS=	top_dir="${LOCALBASE}/share/apache${APACHE_VERSION}"
MAKE_ARGS+=	INCLUDES="-I${LOCALBASE}/include/apache${APACHE_VERSION} -I${LOCALBASE}/include/apr-1"
INSTALL_TARGET=	install-modules-yes
PLIST_SUB=	APACHE_VERSION=${APACHE_VERSION}
PLIST_FILES+=	libexec/apache%%APACHE_VERSION%%/mod_fcgid.a
PLIST_FILES+=	libexec/apache%%APACHE_VERSION%%/mod_fcgid.la
SUB_LIST=	APACHE_VERSION=${APACHE_VERSION}
.else
MAKE_ARGS=	top_dir="${LOCALBASE}/share/apache${APACHE_VERSION:S/20/2/}"
MAKE_ARGS+=	INCLUDES="-I${LOCALBASE}/include/apache${APACHE_VERSION:S/20/2/}"
INSTALL_TARGET=	install-modules
PLIST_SUB=	APACHE_VERSION=${APACHE_VERSION:S/20/2/}
SUB_LIST=	APACHE_VERSION=${APACHE_VERSION:S/20/2/}
.endif

post-install:
	${MKDIR} -m 700 /var/run/fcgidsock
	${CHOWN} www:www /var/run/fcgidsock
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>