ports/94268: [new port] www/xshttpd-devel - another webserver
Johan van Selst
johans at stack.nl
Thu Mar 9 13:00:14 UTC 2006
>Number: 94268
>Category: ports
>Synopsis: [new port] www/xshttpd-devel - another webserver
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 09 13:00:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Johan van Selst
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 6.0-STABLE FreeBSD 6.0-STABLE #9: Wed Jan 11 14:40:03 CET 2006 johans at mud.stack.nl:/usr/obj/usr/src/sys/mud i386
>Description:
This is pretty much the same as existing www/xshttpd port,
but with a newer software version. I've had several requests
to update www/xshttpd to the latest development release, but
I prefer a clear distinction and want to keep the stable version.
>How-To-Repeat:
>Fix:
The port conflicts with existing www/xshttpd port,
this should also be reflected in the Makefile of that port
by adding CONFLICTS+=xshttpd-devel-[0-9]*
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# xshttpd-devel
# xshttpd-devel/files
# xshttpd-devel/files/xshttpd.sh.in
# xshttpd-devel/Makefile
# xshttpd-devel/distinfo
# xshttpd-devel/pkg-descr
# xshttpd-devel/pkg-plist
#
echo c - xshttpd-devel
mkdir -p xshttpd-devel > /dev/null 2>&1
echo c - xshttpd-devel/files
mkdir -p xshttpd-devel/files > /dev/null 2>&1
echo x - xshttpd-devel/files/xshttpd.sh.in
sed 's/^X//' >xshttpd-devel/files/xshttpd.sh.in << 'END-of-xshttpd-devel/files/xshttpd.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: xshttpd
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following line to /etc/rc.conf to enable XS-HTTPD:
X# xshttpd_enable (bool): Set to "NO" by default.
X# Set it to "YES" to enable XS-HTTPD.
X#
Xxshttpd_enable=${xshttpd_enable-"NO"}
X
X. %%RC_SUBR%%
X
Xname="xshttpd"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
Xpidfile="/var/run/httpd.pid"
Xcommand="%%PREFIX%%/bin/httpd"
Xstop_cmd="%%PREFIX%%/bin/httpdc kill"
Xrestart_cmd="%%PREFIX%%/bin/httpdc restart"
X
Xrun_rc_command "$1"
END-of-xshttpd-devel/files/xshttpd.sh.in
echo x - xshttpd-devel/Makefile
sed 's/^X//' >xshttpd-devel/Makefile << 'END-of-xshttpd-devel/Makefile'
X# New ports collection makefile for: xshttpd-devel
X# Date created: 8 March 2006
X# Whom: Johan van Selst <johans at stack.nl>
X#
X# $FreeBSD$
X#
X
XPORTNAME= xshttpd
XDISTVERSION= 3.4b06
XCATEGORIES= www ipv6
XMASTER_SITES= ftp://ftp.stack.nl/pub/xs-httpd/release/ \
X ftp://mud.stack.nl/pub/xs-httpd/release/
XPKGNAMESUFFIX= -devel
XDISTNAME= ${PORTNAME}-${DISTVERSION:S/.//}
X
XMAINTAINER= johans at stack.nl
XCOMMENT= A webserver with CGI as own user and SSL suport
X
XRUN_DEPENDS= run-mailcap:${PORTSDIR}/misc/mime-support
X
XCONFLICTS+= apache-[0-9]* xshttpd-[0-9]*
X
XMAN1= clearxs.1 gfxcount.1 httpd.1 httpdc.1 imagemap.1 \
X readxs.1 xsindex.1 xspasswd.1
XMAN5= httpd.conf.5 xsauth.5 xsscripts.5
XUSE_BZIP2= yes
XUSE_RC_SUBR= xshttpd.sh
X
XGNU_CONFIGURE= yes
XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XOPTIONS= SSL "Enable https support" On \
X LDAP "Enable ldap support" Off \
X PCRE "Enable pcre rewriting support" Off \
X PERSISTENT_PERL "Enable persistent perl interpreter" Off
X
X# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
XDATADIR= ${PREFIX}/www
XPLIST_SUB= WWWDIR=${DATADIR}
XCONFIGURE_ARGS+=--with-rootdir=${DATADIR}
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_SSL)
X.include <${PORTSDIR}/Mk/bsd.openssl.mk>
X#USE_OPENSSL= yes
XCONFIGURE_ARGS+=--with-ssl
X.else
XCONFIGURE_ARGS+=--without-ssl
X.endif
X
X.if defined(WITH_LDAP)
XUSE_OPENLDAP= yes
XCONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
X.else
XCONFIGURE_ARGS+=--without-ldap
X.endif
X
X.if defined(WITH_PERSISTENT_PERL)
XUSE_PERL5= yes
XCONFIGURE_ARGS+=--with-perl
X.else
XCONFIGURE_ARGS+=--without-perl
X.endif
X
X.if defined(WITH_PCRE)
XLIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
XCONFIGURE_ARGS+=--with-pcre=yes
X.else
XCONFIGURE_ARGS+=--with-pcre=no
X.endif
X
Xpost-patch:
X.for i in man/httpd.1 man/httpd.conf.5 config/httpd.conf.sample \
X contrib/SSL-Makefile contrib/logrotate.sh
X @${REINPLACE_CMD} \
X -e 's|/wwwsys|${DATADIR}|g' \
X -e 's|/usr/local/lib/httpd|${DATADIR}|g' \
X -e 's|nobody|${WWWOWN}|g' \
X -e 's|nogroup|${WWWGRP}|g' \
X ${WRKSRC}/$i
X.endfor
X @${REINPLACE_CMD} -e 's|\(MIMETYPESFILE\ "\).*|\1${LOCALBASE}/etc/mime.types"|' \
X ${WRKSRC}/src/confuser.h
X
Xpost-install:
X @${RM} ${DATADIR}/mime.types
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X @cd ${WRKSRC} && ${CP} README BUGS COPYING ChangeLog ${DOCSDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-xshttpd-devel/Makefile
echo x - xshttpd-devel/distinfo
sed 's/^X//' >xshttpd-devel/distinfo << 'END-of-xshttpd-devel/distinfo'
XMD5 (xshttpd-34b06.tar.bz2) = 48d8df68865eb30d5af352bb92d5188d
XSHA256 (xshttpd-34b06.tar.bz2) = b88203213f2125d9da4a26f0cdcfb30a3939632d643470a03da1d4191f963402
XSIZE (xshttpd-34b06.tar.bz2) = 186314
END-of-xshttpd-devel/distinfo
echo x - xshttpd-devel/pkg-descr
sed 's/^X//' >xshttpd-devel/pkg-descr << 'END-of-xshttpd-devel/pkg-descr'
XThis port offers the development branch of the XS-HTTPD webserver.
XThe stable version of XS-HTTPD is available as well, as www/xshttpd.
X
XDevelopment releases are updated much more often and will contain
Xall kinds of nice new features - some of them are even documented.
X
XRead the ChangeLog file for possible issues with backwards compatibility.
X
XWWW: http://www.stack.nl/xs-httpd/
END-of-xshttpd-devel/pkg-descr
echo x - xshttpd-devel/pkg-plist
sed 's/^X//' >xshttpd-devel/pkg-plist << 'END-of-xshttpd-devel/pkg-plist'
Xbin/clearxs
Xbin/httpd
Xbin/httpdc
Xbin/readxs
Xbin/xsindex
Xbin/xspasswd
X%%DATADIR%%/cgi-bin/error
X%%DATADIR%%/cgi-bin/gfxcount
X%%DATADIR%%/cgi-bin/imagemap
X%%DATADIR%%/cgi-bin/xschpass
X%%DATADIR%%/contrib/SSL-Makefile
X%%DATADIR%%/contrib/agentstats.pl
X%%DATADIR%%/contrib/caroot.pem
X%%DATADIR%%/contrib/logrotate.sh
X%%DATADIR%%/contrib/persistent.pl
X%%DATADIR%%/contrib/powered-by-xs.gif
X%%DATADIR%%/contrib/wwwstats.pl
X%%DATADIR%%/compress.methods.sample
X%%DATADIR%%/gfxcount/digital0.ppm
X%%DATADIR%%/gfxcount/digital1.ppm
X%%DATADIR%%/gfxcount/digital2.ppm
X%%DATADIR%%/gfxcount/digital3.ppm
X%%DATADIR%%/gfxcount/digital4.ppm
X%%DATADIR%%/gfxcount/digital5.ppm
X%%DATADIR%%/gfxcount/digital6.ppm
X%%DATADIR%%/gfxcount/digital7.ppm
X%%DATADIR%%/gfxcount/digital8.ppm
X%%DATADIR%%/gfxcount/digital9.ppm
X%%DATADIR%%/gfxcount/large0.ppm
X%%DATADIR%%/gfxcount/large1.ppm
X%%DATADIR%%/gfxcount/large2.ppm
X%%DATADIR%%/gfxcount/large3.ppm
X%%DATADIR%%/gfxcount/large4.ppm
X%%DATADIR%%/gfxcount/large5.ppm
X%%DATADIR%%/gfxcount/large6.ppm
X%%DATADIR%%/gfxcount/large7.ppm
X%%DATADIR%%/gfxcount/large8.ppm
X%%DATADIR%%/gfxcount/large9.ppm
X%%DATADIR%%/gfxcount/largecol0.ppm
X%%DATADIR%%/gfxcount/largecol1.ppm
X%%DATADIR%%/gfxcount/largecol2.ppm
X%%DATADIR%%/gfxcount/largecol3.ppm
X%%DATADIR%%/gfxcount/largecol4.ppm
X%%DATADIR%%/gfxcount/largecol5.ppm
X%%DATADIR%%/gfxcount/largecol6.ppm
X%%DATADIR%%/gfxcount/largecol7.ppm
X%%DATADIR%%/gfxcount/largecol8.ppm
X%%DATADIR%%/gfxcount/largecol9.ppm
X%%DATADIR%%/httpd.conf.sample
X%%DATADIR%%/icons/xs-audio.gif
X%%DATADIR%%/icons/xs-back.gif
X%%DATADIR%%/icons/xs-base.gif
X%%DATADIR%%/icons/xs-bin.gif
X%%DATADIR%%/icons/xs-dir.gif
X%%DATADIR%%/icons/xs-gif.gif
X%%DATADIR%%/icons/xs-html.gif
X%%DATADIR%%/icons/xs-image.gif
X%%DATADIR%%/icons/xs-jpeg.gif
X%%DATADIR%%/icons/xs-ps.gif
X%%DATADIR%%/icons/xs-tar.gif
X%%DATADIR%%/icons/xs-txt.gif
X%%DATADIR%%/icons/xs-unknown.gif
X%%DATADIR%%/icons/xs-video.gif
X%%DATADIR%%/icons/xs-zip.gif
X%%DATADIR%%/mime.index
X%%DATADIR%%/script.methods.sample
X at dirrm %%DATADIR%%/contrib
X at dirrm %%DATADIR%%/gfxcount
X at dirrm %%DATADIR%%/icons
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/BUGS
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at cwd %%WWWDIR%%
X at dirrmtry cgi-bin
X at dirrmtry htdocs
X at dirrmtry logs
END-of-xshttpd-devel/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list