1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/xshttpd/Makefile
Pav Lucistnik d5ebe0f43a - Update to 3.3b29
PR:		ports/86489
Submitted by:	Johan van Selst <johans@stack.nl> (maintainer)
2005-09-23 08:15:54 +00:00

81 lines
1.8 KiB
Makefile

# New ports collection makefile for: xshttpd
# Date created: 29 June 2005
# Whom: Ed Schouten <ed@fxq.nl>
#
# $FreeBSD$
#
PORTNAME= xshttpd
DISTVERSION= 3.3b29
CATEGORIES= www
MASTER_SITES= ftp://ftp.stack.nl/pub/xs-httpd/release/ \
ftp://mud.stack.nl/pub/xs-httpd/release/
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
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
# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
DATADIR= ${PREFIX}/www
CONFIGURE_ARGS+=--with-rootdir=${DATADIR}
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_SSL)
.include <${PORTSDIR}/Mk/bsd.openssl.mk>
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:
.for i in man/httpd.1 man/httpd.conf.5 config/httpd.conf.sample \
contrib/SSL-Makefile contrib/logrotate.sh
@${REINPLACE_CMD} \
-e 's|/wwwsys|${DATADIR}|g' \
-e 's|/usr/local/lib/httpd|${DATADIR}|g' \
-e 's|nobody|${WWWOWN}|g' \
-e 's|nogroup|${WWWGRP}|g' \
${WRKSRC}/$i
.endfor
.include <bsd.port.post.mk>