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
|
2005-09-23 08:15:54 +00:00
|
|
|
DISTVERSION= 3.3b29
|
2005-09-15 23:04:31 +00:00
|
|
|
CATEGORIES= www
|
2005-09-20 21:07:10 +00:00
|
|
|
MASTER_SITES= ftp://ftp.stack.nl/pub/xs-httpd/release/ \
|
|
|
|
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
|
|
|
|
|
|
|
|
CONFLICTS+= apache-[0-9]*
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
MAN1= clearxs.1 gfxcount.1 httpd.1 httpdc.1 imagemap.1 \
|
|
|
|
readxs.1 xsindex.1 xspasswd.1
|
|
|
|
MAN5= httpd.conf.5 xsauth.5 xsscripts.5
|
|
|
|
USE_RC_SUBR= xshttpd.sh
|
|
|
|
|
2005-09-20 21:07:10 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
OPTIONS= SSL "Enable https support" On \
|
|
|
|
LDAP "Enable ldap support" Off \
|
|
|
|
PCRE "Enable pcre rewriting support" Off \
|
|
|
|
PERSISTENT_PERL "Enable persistent perl interpreter" Off
|
|
|
|
|
2005-09-15 23:04:31 +00:00
|
|
|
# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
|
|
|
|
DATADIR= ${PREFIX}/www
|
|
|
|
CONFIGURE_ARGS+=--with-rootdir=${DATADIR}
|
|
|
|
|
2005-09-20 21:07:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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-15 23:04:31 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
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
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
|
|
|
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} \
|
2005-09-15 23:04:31 +00:00
|
|
|
-e 's|/wwwsys|${DATADIR}|g' \
|
|
|
|
-e 's|/usr/local/lib/httpd|${DATADIR}|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
|
|
|
|
|
2005-09-20 21:07:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|