2005-09-15 23:04:31 +00:00
|
|
|
# New ports collection makefile for: xshttpd
|
|
|
|
# Date created: 29 June 2005
|
|
|
|
# Whom: Ed Schouten <ed@fxq.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xshttpd
|
2008-08-10 09:14:38 +00:00
|
|
|
DISTVERSION= 3.5g05
|
2007-03-22 16:27:08 +00:00
|
|
|
CATEGORIES= www ipv6
|
2005-09-20 21:07:10 +00:00
|
|
|
MASTER_SITES= ftp://ftp.stack.nl/pub/xs-httpd/release/ \
|
2006-03-21 13:47:09 +00:00
|
|
|
ftp://mud.stack.nl/pub/xs-httpd/release/
|
2005-09-15 23:04:31 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION:S/.//}
|
|
|
|
|
|
|
|
MAINTAINER= johans@stack.nl
|
|
|
|
COMMENT= A webserver with CGI as own user and SSL suport
|
|
|
|
|
2008-02-03 08:24:41 +00:00
|
|
|
RUN_DEPENDS= run-mailcap:${PORTSDIR}/misc/mime-support \
|
|
|
|
ppmtogif:${PORTSDIR}/graphics/netpbm
|
2005-09-15 23:04:31 +00:00
|
|
|
|
2008-02-03 08:24:41 +00:00
|
|
|
CONFLICTS+= xshttpd-devel-[0-9]*
|
2005-09-15 23:04:31 +00:00
|
|
|
|
|
|
|
MAN1= clearxs.1 gfxcount.1 httpd.1 httpdc.1 imagemap.1 \
|
2008-02-03 08:24:41 +00:00
|
|
|
readxs.1 xschpass.1 xsindex.1 xspasswd.1
|
2007-03-22 16:27:08 +00:00
|
|
|
MAN5= httpd.conf.5 xsauth.5 xsconf.5 xsscripts.5 xsredir.5
|
2008-02-03 08:24:41 +00:00
|
|
|
MAN7= httpd_cgi.7 httpd_ssi.7
|
2007-03-22 16:27:08 +00:00
|
|
|
USE_BZIP2= yes
|
2005-09-15 23:04:31 +00:00
|
|
|
USE_RC_SUBR= xshttpd.sh
|
|
|
|
|
2005-09-28 13:52:36 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-09-20 21:07:10 +00:00
|
|
|
|
|
|
|
OPTIONS= SSL "Enable https support" On \
|
2008-02-03 08:24:41 +00:00
|
|
|
PCRE "Enable pcre rewriting support" On \
|
2005-09-20 21:07:10 +00:00
|
|
|
LDAP "Enable ldap support" Off \
|
2007-03-22 16:27:08 +00:00
|
|
|
CURL "Enable curl (proxy) support" Off \
|
|
|
|
M4_CONFIG "Enable m4 configuration preprocessor" Off \
|
2005-09-20 21:07:10 +00:00
|
|
|
PERSISTENT_PERL "Enable persistent perl interpreter" Off
|
|
|
|
|
2008-02-03 08:24:41 +00:00
|
|
|
PORTDOCS= README COPYING ChangeLog
|
2007-03-22 16:27:08 +00:00
|
|
|
|
2008-02-03 08:24:41 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-09-15 23:04:31 +00:00
|
|
|
# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
|
2008-02-03 08:24:41 +00:00
|
|
|
WWWDIR?= ${PREFIX}/www/${PORTNAME}
|
2007-07-23 09:36:51 +00:00
|
|
|
CONFIGURE_ARGS+=--with-rootdir=${WWWDIR}
|
2005-09-15 23:04:31 +00:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_SSL)
|
2005-09-20 21:07:10 +00:00
|
|
|
.include <${PORTSDIR}/Mk/bsd.openssl.mk>
|
2005-09-28 13:52:36 +00:00
|
|
|
#USE_OPENSSL= yes
|
2005-09-15 23:04:31 +00:00
|
|
|
CONFIGURE_ARGS+=--with-ssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-ldap
|
|
|
|
.endif
|
|
|
|
|
2007-03-22 16:27:08 +00:00
|
|
|
.if defined(WITH_M4_CONFIG)
|
|
|
|
CONFIGURE_ARGS+=--with-preprocessor
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-preprocessor
|
|
|
|
.endif
|
|
|
|
|
2005-09-15 23:04:31 +00:00
|
|
|
.if defined(WITH_PERSISTENT_PERL)
|
|
|
|
USE_PERL5= yes
|
|
|
|
CONFIGURE_ARGS+=--with-perl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-perl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
CONFIGURE_ARGS+=--with-pcre=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-pcre=no
|
|
|
|
.endif
|
|
|
|
|
2007-03-22 16:27:08 +00:00
|
|
|
.if defined(WITH_CURL)
|
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
|
|
|
CONFIGURE_ARGS+=--with-curl=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-curl=no
|
|
|
|
.endif
|
|
|
|
|
2005-09-15 23:04:31 +00:00
|
|
|
post-patch:
|
2005-09-20 21:07:10 +00:00
|
|
|
.for i in man/httpd.1 man/httpd.conf.5 config/httpd.conf.sample \
|
|
|
|
contrib/SSL-Makefile contrib/logrotate.sh
|
|
|
|
@${REINPLACE_CMD} \
|
2006-03-21 13:47:09 +00:00
|
|
|
-e 's|/wwwsys|${WWWDIR}|g' \
|
|
|
|
-e 's|/usr/local/lib/httpd|${WWWDIR}|g' \
|
2005-09-20 21:07:10 +00:00
|
|
|
-e 's|nobody|${WWWOWN}|g' \
|
|
|
|
-e 's|nogroup|${WWWGRP}|g' \
|
|
|
|
${WRKSRC}/$i
|
2005-09-15 23:04:31 +00:00
|
|
|
.endfor
|
2008-02-03 08:24:41 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|\(MIME_TYPES\).*|\1 "${LOCALBASE}/etc/mime.types"|' \
|
2005-09-28 13:52:36 +00:00
|
|
|
${WRKSRC}/src/confuser.h
|
2006-03-21 13:47:09 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|mime.types ||g' \
|
|
|
|
${WRKSRC}/config/Makefile.in
|
2008-07-20 12:35:32 +00:00
|
|
|
@${REINPLACE_CMD} -e '/^install-data-am/s|install-docDATA||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2005-09-28 13:52:36 +00:00
|
|
|
|
2007-03-22 16:27:08 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
. for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2005-09-20 21:07:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|