summaryrefslogtreecommitdiff
path: root/www/cherokee/Makefile
blob: 9546f6870192a7b4df1f8ad5fba51033d3b8145a (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
# $NetBSD: Makefile,v 1.21 2012/10/28 06:30:12 asau Exp $
#

DISTNAME=	cherokee-1.2.101
PKGREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://www.cherokee-project.com/download/1.2/${PKGVERSION_NOREV}/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.cherokee-project.com/
COMMENT=	Flexible and fast web server
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake msgfmt

CONFIGURE_ARGS+=	--localstatedir=${VARBASE}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--with-wwwroot=${PREFIX}/share/cherokee

PKGCONFIG_OVERRIDE=	cherokee.pc.in

INSTALL_MAKE_FLAGS+=	sysconfdir=${EGDIR}
OWN_DIRS=		${PKG_SYSCONFDIR}/cherokee
OWN_DIRS+=		${VARBASE}/log
OWN_DIRS+=		${VARBASE}/run
EGDIR=			${PREFIX}/share/examples/cherokee
MESSAGE_SUBST+=		EGDIR=${EGDIR}
CONF_FILES+=		${EGDIR}/cherokee/cherokee.conf \
			${PKG_SYSCONFDIR}/cherokee/cherokee.conf

RCD_SCRIPTS=		cherokee

INSTALLATION_DIRS+=	${EGDIR}/pam.d

.include "options.mk"

BUILD_DEFS+=		VARBASE

REPLACE_PYTHON=		admin/CTK/CTK-run.pre \
			admin/server.py admin/upgrade_config.py \
			cherokee/cherokee-admin-launcher \
			cherokee/cherokee-tweak

# Needs installation:
TEST_TARGET=		test

.include "../../devel/pcre/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"