blob: e38cc03c466edb97c9597a4d1091e8f2a4d0305f (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Created by: silence <oksala@videotron.ca>
# $FreeBSD$
PORTNAME= cherokee
PORTVERSION= 1.2.104
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast and flexible web server
LICENSE= GPLv2
USE_GITHUB= yes
GH_PROJECT= webserver
USES= autoreconf cpe gettext gmake libtool pathfix pkgconfig \
python:2,build shebangfix
SHEBANG_FILES= admin/CTK/CTK-run.pre admin/server.py \
admin/upgrade_config.py cherokee/cherokee-admin-launcher \
cherokee/cherokee-tweak contrib/tracelor.py \
doc/build/asciidoc.py doc/cookbook_dbslayer.txt \
doc/test_images.py doc/test_links.py \
po/admin/generate_POTFILESin.py po/po_stats.py \
qa/fcgi.py qa/run-tests.py
python_CMD= ${PYTHON_CMD}
USE_RC_SUBR= cherokee
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules \
--disable-static \
--localstatedir=${CHEROKEE_VARDIR} \
--without-php \
--with-python=${PYTHON_CMD} \
--with-wwwroot=${WWWDIR} \
--with-wwwuser=${CHEROKEE_USER} \
--with-wwwgroup=${CHEROKEE_GROUP}
MAKE_ARGS= pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPE_VENDOR= cherokee-project
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
SUB_FILES= pkg-install pkg-message
CHEROKEE_VARDIR?= /var
# Adjust this if you need to run Cherokee as a distinct user:group
CHEROKEE_USER= www
CHEROKEE_GROUP= www
OPTIONS_DEFINE= ADMIN DOCS FFMPEG GEOIP INTPCRE IPV6 LDAP MYSQL \
RRDTOOL UWSGI
OPTIONS_DEFAULT= ADMIN GEOIP
OPTIONS_SUB= yes
ADMIN_DESC= Build the Admin Interface
ADMIN_USES= python:2,run
ADMIN_CONFIGURE_OFF= --disable-admin
FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
FFMPEG_CONFIGURE_ON= --with-ffmpeg=yes
FFMPEG_CONFIGURE_OFF= --with-ffmpeg=no
GEOIP_LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
GEOIP_CONFIGURE_ON= --with-geoip=yes
GEOIP_CONFIGURE_OFF= --with-geoip=no
INTPCRE_DESC= Use internal PCRE library
INTPCRE_LIB_DEPENDS_OFF=libpcre.so:${PORTSDIR}/devel/pcre
INTPCRE_CONFIGURE_ON= --enable-internal-pcre
IPV6_CONFIGURE_OFF= --disable-ipv6
LDAP_USE= openldap=yes
LDAP_CONFIGURE_ON= --with-ldap=yes
LDAP_CONFIGURE_OFF= --with-ldap=no
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_ON= --with-mysql=yes
MYSQL_CONFIGURE_OFF= --with-mysql=no
RRDTOOL_DESC= Usage graphs support
RRDTOOL_RUN_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool
UWSGI_DESC= uWSGI support
UWSGI_RUN_DEPENDS= uwsgi:${PORTSDIR}/www/uwsgi
.include <bsd.port.options.mk>
post-patch:
@${RM} ${WRKSRC}/INSTALL
pre-configure:
@(cd ${WRKSRC}/po/admin && ${PYTHON_CMD} generate_POTFILESin.py \
> POTFILES.in)
post-install:
.for i in mods-available mods-enabled sites-available sites-enabled ssl
@${MKDIR} ${STAGEDIR}${ETCDIR}/${i}
@${ECHO_CMD} -n > ${STAGEDIR}${ETCDIR}/${i}/.empty
.endfor
(cd ${WRKSRC} && ${INSTALL_DATA} cherokee.conf.sample \
${STAGEDIR}${ETCDIR}/cherokee.conf.sample)
(cd ${WRKSRC} && ${INSTALL_DATA} performance.conf.sample \
${STAGEDIR}${ETCDIR}/cherokee.conf.perf_sample)
.if ${PORT_OPTIONS:MADMIN}
(cd ${WRKSRC} && ${INSTALL_DATA} cherokee.conf.sample \
${STAGEDIR}${DATADIR}/admin)
(cd ${WRKSRC} && ${INSTALL_DATA} performance.conf.sample \
${STAGEDIR}${DATADIR}/admin)
@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${DATADIR}/admin -f ${DATADIR_REL}/admin)
.endif
.include <bsd.port.mk>
|