1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/cherokee/Makefile
2014-09-13 18:25:04 +00:00

111 lines
3.3 KiB
Makefile

# Created by: silence <oksala@videotron.ca>
# $FreeBSD$
PORTNAME= cherokee
PORTVERSION= 1.2.104
CATEGORIES= www
MASTER_SITES= GH
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast and flexible web server
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}
GH_PROJECT= webserver
GH_TAGNAME= ${PORTVERSION:S/^/v/}
GH_COMMIT= e5583c6
USES= 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
USE_AUTOTOOLS= libtoolize aclocal automake autoheader autoconf
AUTOMAKE_ARGS= --add-missing --copy --foreign
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
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>
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>