diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-03-23 02:25:32 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-03-23 02:25:32 +0000 |
commit | bdb6fa84adc65f9e5d4792d57df1beb7f3a3c3d5 (patch) | |
tree | 85b7775e2580e2819a48be6d9a5d13a4bf854fdd /www/thttpd | |
parent | cc75cd9ec32e3bf9e9bc5294faa1a57e07899a89 (diff) | |
download | ports-bdb6fa84adc65f9e5d4792d57df1beb7f3a3c3d5.tar.gz ports-bdb6fa84adc65f9e5d4792d57df1beb7f3a3c3d5.zip |
Notes
Diffstat (limited to 'www/thttpd')
-rw-r--r-- | www/thttpd/Makefile | 47 | ||||
-rw-r--r-- | www/thttpd/distinfo | 1 | ||||
-rw-r--r-- | www/thttpd/pkg-message | 11 | ||||
-rw-r--r-- | www/thttpd/pkg-plist | 3 |
4 files changed, 45 insertions, 17 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index 7d57a27a3031..c8d3818e1254 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -10,11 +10,11 @@ DISTNAME= thttpd-2.16 CATEGORIES= www ipv6 MASTER_SITES= http://www.acme.com/software/thttpd/ \ http://www.freenix.no/~anders/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} notes.html MAINTAINER= anders@fix.no -NO_PACKAGE= "Group needs to be created for users to have their own web dirs" - +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} GNU_CONFIGURE= yes MAN1= makeweb.1 htpasswd.1 @@ -36,10 +36,36 @@ do-install: @${INSTALL_MAN} ${WRKSRC}/extras/makeweb.1 ${PREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/extras/htpasswd.1 ${PREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/extras/syslogtocern.8 ${PREFIX}/man/man8 + @if [ ! -f ${PREFIX}/sbin/thttpd_wrapper ]; then \ + ${ECHO} "Installing ${PREFIX}/sbin/thttpd_wrapper file."; \ + ${ECHO} "#!/bin/sh" > ${PREFIX}/sbin/thttpd_wrapper; \ + ${ECHO} "while true ; do" >> ${PREFIX}/sbin/thttpd_wrapper; \ + ${ECHO} " ${PREFIX}/sbin/thttpd -D -C ${PREFIX}/etc/thttpd.conf" >> ${PREFIX}/sbin/thttpd_wrapper; \ + ${ECHO} " sleep 10" >> ${PREFIX}/sbin/thttpd_wrapper; \ + ${ECHO} "done" >> ${PREFIX}/sbin/thttpd_wrapper; \ + ${CHMOD} 751 ${PREFIX}/sbin/thttpd_wrapper; \ + fi + @${ECHO} "Installing ${PREFIX}/etc/thttpd.conf.sample configuration file." + @${ECHO} "dir=${PREFIX}/www/data" > ${PREFIX}/etc/thttpd.conf.sample + @${ECHO} "chroot" >> ${PREFIX}/etc/thttpd.conf.sample + @${ECHO} "cgipat=*.cgi" >> ${PREFIX}/etc/thttpd.conf.sample + @${ECHO} "logfile=${PREFIX}/www/logs/thttpd.log" >> ${PREFIX}/etc/thttpd.conf.sample + @${ECHO} "pidfile=/var/run/thttpd.pid" >> ${PREFIX}/etc/thttpd.conf.sample + @if [ ! -f ${PREFIX}/etc/rc.d/thttpd.sh ]; then \ + ${ECHO} "Installing ${PREFIX}/etc/rc.d/thttpd.sh startup file."; \ + ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/thttpd.sh; \ + ${ECHO} "[ -x ${PREFIX}/sbin/thttpd_wrapper ] && ${PREFIX}/sbin/thttpd_wrapper && ${ECHO} -n ' thttpd'" >> ${PREFIX}/etc/rc.d/thttpd.sh; \ + ${CHMOD} 751 ${PREFIX}/etc/rc.d/thttpd.sh; \ + fi +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/thttpd + @${INSTALL_MAN} ${DISTDIR}/notes.html ${PREFIX}/share/doc/thttpd +.endif -post-install: message +post-install: + @${CAT} ${PKGMESSAGE} -pre-configure: config-message +post-configure: config-message post-build: config-message @@ -51,17 +77,4 @@ config-message: @${ECHO} "" @${ECHO} "=====================================================================" -message: - @${ECHO} "=====================================================================" - @${ECHO} "" - @${ECHO} "If you want users to be able to create their own web subdirectories" - @${ECHO} "off of the main web directory, you need to:" - @${ECHO} "" - @${ECHO} "a) add a group for www admins" - @${ECHO} "b) chgrp yourgroup ${PREFIX}/bin/makeweb ${PREFIX}/www" - @${ECHO} "c) chmod 2755 ${PREFIX}/bin/makeweb" - @${ECHO} "d) tell them about makeweb(1)" - @${ECHO} "" - @${ECHO} "=====================================================================" - .include <bsd.port.mk> diff --git a/www/thttpd/distinfo b/www/thttpd/distinfo index fc786d374e67..c8d44aa38372 100644 --- a/www/thttpd/distinfo +++ b/www/thttpd/distinfo @@ -1 +1,2 @@ MD5 (thttpd-2.16.tar.gz) = c095d3b8919cb386dfb5ee35dad2ad42 +MD5 (notes.html) = c5fec04bcb3cfbb6c1d590c66441a3e7 diff --git a/www/thttpd/pkg-message b/www/thttpd/pkg-message new file mode 100644 index 000000000000..06a5dc766238 --- /dev/null +++ b/www/thttpd/pkg-message @@ -0,0 +1,11 @@ +=========================================================================== + + If you want users to be able to create their own web + subdirectories off of the main web directory, you need to: + + a) add a group for www admins + b) chgrp yourgroup ${PREFIX}/bin/makeweb ${PREFIX}/www + c) chmod 2755 ${PREFIX}/bin/makeweb + d) tell them about makeweb(1) + +=========================================================================== diff --git a/www/thttpd/pkg-plist b/www/thttpd/pkg-plist index db33b7a29a2c..018f957606cc 100644 --- a/www/thttpd/pkg-plist +++ b/www/thttpd/pkg-plist @@ -2,6 +2,9 @@ bin/htpasswd bin/makeweb bin/syslogtocern sbin/thttpd +sbin/thttpd_wrapper +etc/thttpd.conf.sample +etc/rc.d/thttpd.sh www/cgi-bin/redirect www/cgi-bin/phf www/cgi-bin/ssi |