2003-04-06 02:30:58 +02:00
|
|
|
# New ports collection makefile for: cherokee
|
|
|
|
# Date created: 01 Jun 2002
|
|
|
|
# Whom: silence <oksala@videotron.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-04-13 13:05:52 +02:00
|
|
|
PORTNAME= cherokee
|
2006-12-15 09:17:42 +01:00
|
|
|
PORTVERSION= 0.5.6
|
2007-10-17 12:13:01 +02:00
|
|
|
PORTREVISION= 6
|
2003-04-06 02:30:58 +02:00
|
|
|
CATEGORIES= www
|
2007-04-10 10:23:31 +02:00
|
|
|
MASTER_SITES= http://www.cherokee-project.com/download/${PORTVERSION:R}/${PORTVERSION}/ \
|
2007-06-15 11:37:13 +02:00
|
|
|
CENKES LOCAL/beech
|
2003-04-06 02:30:58 +02:00
|
|
|
|
2007-06-15 11:37:13 +02:00
|
|
|
MAINTAINER= beech@FreeBSD.org
|
2007-04-26 17:02:48 +02:00
|
|
|
COMMENT= Extremely fast and flexible web server
|
2004-07-17 20:58:41 +02:00
|
|
|
|
2005-04-23 13:48:02 +02:00
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
2004-07-17 20:58:41 +02:00
|
|
|
|
2007-04-10 10:23:31 +02:00
|
|
|
CONFLICTS= cherokee-devel-[0-9]*
|
2004-07-17 20:58:41 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
2007-04-10 10:23:31 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-20 22:51:35 +01:00
|
|
|
USE_RC_SUBR= cherokee.sh
|
2006-01-19 20:07:20 +01:00
|
|
|
USE_GCC= 3.4+
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-04-10 10:23:31 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2004-07-17 20:58:41 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --with-wwwroot=${PREFIX}/www/cherokee \
|
2007-04-26 17:02:48 +02:00
|
|
|
--enable-readdir_r \
|
2007-04-10 10:23:31 +02:00
|
|
|
--disable-static
|
2007-04-26 17:02:48 +02:00
|
|
|
DEFCONFS= advanced.conf cherokee.conf icons.conf mime.compression.types mime.types
|
|
|
|
CONFSUBDIRS= ssl mods-available mods-enabled sites-available sites-enabled
|
2005-08-30 03:33:56 +02:00
|
|
|
MAN1= cget.1 cherokee-config.1 cherokee.1 cherokee_logrotate.1
|
2004-07-17 20:58:41 +02:00
|
|
|
|
2007-04-26 17:02:48 +02:00
|
|
|
OPTIONS= OPENSSL "TLS/SSL support via openssl" on \
|
|
|
|
GNUTLS "TLS/SSL support via gnutls" off \
|
|
|
|
IPV6 "IPv6 support" on
|
2006-11-07 17:54:49 +01:00
|
|
|
|
2007-04-26 17:02:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-04-06 02:30:58 +02:00
|
|
|
|
2007-04-26 17:02:48 +02:00
|
|
|
.ifndef WITHOUT_OPENSSL
|
2006-11-07 17:54:49 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-tls=openssl
|
2007-04-26 17:02:48 +02:00
|
|
|
.elifdef WITH_GNUTLS
|
2007-07-01 10:56:16 +02:00
|
|
|
LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
2007-04-26 17:02:48 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-tls=gnutls
|
|
|
|
.else
|
2006-11-07 17:54:49 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-tls
|
|
|
|
.endif
|
|
|
|
|
2007-04-26 17:02:48 +02:00
|
|
|
.ifdef WITHOUT_IPV6
|
2006-11-07 17:54:49 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
|
|
.endif
|
2004-09-18 09:42:28 +02:00
|
|
|
|
2005-09-01 02:17:59 +02:00
|
|
|
post-patch:
|
2007-04-26 17:02:48 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|@mkdir_p@|${MKDIR} --|g'
|
|
|
|
@${REINPLACE_CMD} -e '/cherokee_replace.*%sysconfdir%/d;/^SUBDIRS/s|doc ||;\
|
|
|
|
/^install-data-am/s|install-data-local|install-data-local-config|'\
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@for i in ${BUILD_WRKSRC}/*.sample.pre;do ${SED} -e \
|
|
|
|
's:%sysconfdir%:${PREFIX}/etc:g; \
|
|
|
|
s:%datadir%:${PREFIX}/share:g; \
|
|
|
|
s:%wwwroot%:${PREFIX}/www/cherokee:g; \
|
|
|
|
s:%prefix%:${PREFIX}:g; \
|
|
|
|
s:#.*User.*nobody:User www:g; \
|
|
|
|
s:#.*Group.*nogroup:Group www:g; \
|
|
|
|
s:#.*PollMethod.*poll:PollMethod kqueue:g' \
|
|
|
|
$$i > $${i%.pre};done
|
2005-04-23 13:48:02 +02:00
|
|
|
|
2003-04-13 13:05:52 +02:00
|
|
|
post-install:
|
2007-04-26 17:02:48 +02:00
|
|
|
@${INSTALL} -d ${CONFSUBDIRS:S|^|${PREFIX}/etc/cherokee/|}
|
|
|
|
@for i in ${DEFCONFS};do\
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i.sample ${PREFIX}/etc/cherokee/$$i.default;done
|
|
|
|
@for i in ${WRKSRC}/mods-*.sample;do\
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/etc/cherokee/mods-available/$${i#*mods-};done
|
|
|
|
@for i in ${WRKSRC}/sites-*.sample;do\
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/etc/cherokee/sites-available/$${i#*sites-};done
|
|
|
|
@:>${PREFIX}/etc/cherokee/mods-enabled/.empty
|
|
|
|
@:>${PREFIX}/etc/cherokee/ssl/.empty
|
|
|
|
@for i in `${FIND} ${PREFIX}/etc/cherokee/ -name \*.default`;do\
|
|
|
|
if [ ! -f $${i%.default} ];then ${CP} $$i $${i%.default};fi;done
|
|
|
|
@for i in `${FIND} ${PREFIX}/etc/cherokee/ -name \*.sample`;do\
|
|
|
|
if [ ! -f $${i%.sample} ];then ${CP} $$i $${i%.sample};fi;done
|
|
|
|
@if [ -z "`${LS} ${PREFIX}/etc/cherokee/sites-enabled/`" ];then\
|
|
|
|
${LN} -sf ../sites-available/default ${PREFIX}/etc/cherokee/sites-enabled/;fi
|
2005-07-12 10:08:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-04-26 17:02:48 +02:00
|
|
|
@${INSTALL} -d ${DOCSDIR}/images/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR}/images/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/develop/Intro.txt ${DOCSDIR}/
|
2005-07-12 10:08:20 +02:00
|
|
|
.endif
|
2003-04-06 02:30:58 +02:00
|
|
|
|
2004-09-18 09:42:28 +02:00
|
|
|
.include <bsd.port.post.mk>
|