2003-04-06 00:30:58 +00:00
|
|
|
# New ports collection makefile for: cherokee
|
|
|
|
# Date created: 01 Jun 2002
|
|
|
|
# Whom: silence <oksala@videotron.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-04-13 11:05:52 +00:00
|
|
|
PORTNAME= cherokee
|
2005-05-26 17:22:05 +00:00
|
|
|
PORTVERSION= 0.4.23
|
2003-04-06 00:30:58 +00:00
|
|
|
CATEGORIES= www
|
2005-04-23 11:48:02 +00:00
|
|
|
MASTER_SITES= http://www.0x50.org/download/%SUBDIR%/
|
2004-07-17 18:58:41 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION:R}/${PORTVERSION}
|
2003-04-06 00:30:58 +00:00
|
|
|
|
2004-06-29 10:12:34 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-07-17 18:58:41 +00:00
|
|
|
COMMENT= An extremely fast and flexible web server
|
|
|
|
|
2005-04-23 11:48:02 +00:00
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
2004-07-17 18:58:41 +00:00
|
|
|
|
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
|
|
USE_GETOPT_LONG= yes
|
2005-04-23 11:48:02 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-07-17 18:58:41 +00:00
|
|
|
USE_GMAKE= yes
|
2005-04-23 11:48:02 +00:00
|
|
|
USE_LIBTOOL_VER= 15
|
2004-07-17 18:58:41 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-04-23 11:48:02 +00:00
|
|
|
CONFIGURE_ARGS= --with-wwwroot=${PREFIX}/www
|
2003-04-13 11:05:52 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-05-26 17:22:05 +00:00
|
|
|
MAN1= cget.1 cherokee-config.1 cherokee.1
|
2004-07-17 18:58:41 +00:00
|
|
|
|
2005-04-23 11:48:02 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
.if defined(WITHOUT_GNUTLS)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-tls=openssl
|
|
|
|
LDFLAGS+= -lssl -lcrypto
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= gnutls.12:${PORTSDIR}/security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --enable-tls=gnutls
|
|
|
|
.endif
|
2003-04-06 00:30:58 +00:00
|
|
|
|
2004-09-18 07:42:28 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-23 11:48:02 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
PLIST_SUB+= PAM="" PAM5="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PAM="@comment " PAM5=""
|
2004-09-18 07:42:28 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-23 11:48:02 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(top_builddir)/sherokee_reinplace|true|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
.for file in advanced.conf cherokee.conf mods-ssl sites-default sites-example
|
|
|
|
@cd ${BUILD_WRKSRC} && ${SED} -e \
|
|
|
|
's:%sysconfdir%:${PREFIX}/etc:g ; \
|
|
|
|
s:%datadir%:${PREFIX}/share:g ; \
|
|
|
|
s:%wwwroot%:${PREFIX}/www:g ; \
|
|
|
|
s:%prefix%:${PREFIX}:g' < ${file}.sample.pre > ${file}.sample
|
|
|
|
.endfor
|
|
|
|
|
2003-04-06 00:30:58 +00:00
|
|
|
pre-install:
|
|
|
|
@if [ ! -f ${PREFIX}/www ]; then \
|
|
|
|
${MKDIR} ${PREFIX}/www;\
|
|
|
|
fi
|
2003-04-13 11:05:52 +00:00
|
|
|
@if [ ! -f ${PREFIX}/www/data ] ; then \
|
|
|
|
${MKDIR} ${PREFIX}/www/data;\
|
2003-04-06 00:30:58 +00:00
|
|
|
fi
|
2003-04-13 11:05:52 +00:00
|
|
|
@${ECHO_MSG} " `pwd` "
|
|
|
|
|
|
|
|
post-install:
|
2004-07-17 18:58:41 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Intro.txt ${DATADIR}
|
2003-04-13 11:05:52 +00:00
|
|
|
@${ECHO_MSG} " "
|
|
|
|
@${ECHO_MSG} " Dont forget to read the doc "
|
|
|
|
@${ECHO_MSG} " ${PREFIX}/share/cherokee/Intro.txt"
|
|
|
|
@${ECHO_MSG} " "
|
2003-04-06 00:30:58 +00:00
|
|
|
|
2004-09-18 07:42:28 +00:00
|
|
|
.include <bsd.port.post.mk>
|