From 915c5245c3b3e44827ba7cd24d7c765c57a1dd02 Mon Sep 17 00:00:00 2001 From: zuntum Date: Thu, 1 Nov 2001 02:15:23 +0000 Subject: Move pkg/ files into package's toplevel directory --- www/thttpd/DEINSTALL | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ www/thttpd/DESCR | 19 ++++++++++++++ www/thttpd/INSTALL | 56 ++++++++++++++++++++++++++++++++++++++++ www/thttpd/MESSAGE | 11 ++++++++ www/thttpd/PLIST | 19 ++++++++++++++ www/thttpd/pkg/DEINSTALL | 66 ------------------------------------------------ www/thttpd/pkg/DESCR | 19 -------------- www/thttpd/pkg/INSTALL | 56 ---------------------------------------- www/thttpd/pkg/MESSAGE | 11 -------- www/thttpd/pkg/PLIST | 19 -------------- 10 files changed, 171 insertions(+), 171 deletions(-) create mode 100644 www/thttpd/DEINSTALL create mode 100644 www/thttpd/DESCR create mode 100644 www/thttpd/INSTALL create mode 100644 www/thttpd/MESSAGE create mode 100644 www/thttpd/PLIST delete mode 100644 www/thttpd/pkg/DEINSTALL delete mode 100644 www/thttpd/pkg/DESCR delete mode 100644 www/thttpd/pkg/INSTALL delete mode 100644 www/thttpd/pkg/MESSAGE delete mode 100644 www/thttpd/pkg/PLIST (limited to 'www/thttpd') diff --git a/www/thttpd/DEINSTALL b/www/thttpd/DEINSTALL new file mode 100644 index 00000000000..38428f4a9c7 --- /dev/null +++ b/www/thttpd/DEINSTALL @@ -0,0 +1,66 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/11/01 02:18:57 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CMP="@CMP@" +RM="@RM@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples +CONFDIR=/etc +CONFFILES="thttpd.conf" + +case ${STAGE} in +DEINSTALL) + # Remove configuration files if they don't differ from the default + # config file. + # + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if ${CMP} -s ${FILE} ${SAMPLEFILE} + then + ${RM} -f ${FILE} + fi + done + ;; + +POST-DEINSTALL) + modified_files='' + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + if [ -f ${FILE} ] + then + modified_files="${modified_files} ${FILE}" + fi + done + + if [ -n "${modified_files}" ] + then + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove the +following files: + +EOF + for file in ${modified_files} + do + echo " ${file}" + done + ${CAT} << EOF +=========================================================================== +EOF + fi + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/www/thttpd/DESCR b/www/thttpd/DESCR new file mode 100644 index 00000000000..1e8d87ead36 --- /dev/null +++ b/www/thttpd/DESCR @@ -0,0 +1,19 @@ +thttpd is a simple, small, portable, fast, and secure HTTP server. + +Simple: It handles only the minimum necessary to implement HTTP/1.1. + +Small: See the size comparison chart at +http://www.acme.com/software/thttpd/notes.html#sizes. It also has a +very small run-time size, since it does not fork and is very careful about +memory allocation. + +Portable: It compiles cleanly on SunOS 4.1.x, Solaris 2.x, BSD/OS 2.x, +Linux 1.2.x, and OSF/1 (on a 64-bit Alpha). + +Fast: In typical use it's about as fast as the best full-featured servers +(Apache, NCSA, Netscape). Under extreme load it's much faster. + +Secure: It goes to great lengths to protect the web server machine +against attacks and breakins from other sites. + +thttpd also provides URL-traffic-based throttling and virtual hosting. diff --git a/www/thttpd/INSTALL b/www/thttpd/INSTALL new file mode 100644 index 00000000000..26bd2bbe4ef --- /dev/null +++ b/www/thttpd/INSTALL @@ -0,0 +1,56 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 02:18:57 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples +CONFDIR=/etc +CONFFILES="thttpd.conf" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + echo "Installing configuration files:" + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${FILE} + fi + done + ${CAT} << EOF + +=========================================================================== +Some files you might need to customize include the following: + +EOF + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + echo " ${FILE}" + done + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/www/thttpd/MESSAGE b/www/thttpd/MESSAGE new file mode 100644 index 00000000000..dd436d03907 --- /dev/null +++ b/www/thttpd/MESSAGE @@ -0,0 +1,11 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2001/11/01 02:18:57 zuntum Exp $ + +In order to use makeweb: + + chgrp makeweb + chmod 2755 makeweb + +The suggested group is "www". + +=========================================================================== diff --git a/www/thttpd/PLIST b/www/thttpd/PLIST new file mode 100644 index 00000000000..976cc5c6a79 --- /dev/null +++ b/www/thttpd/PLIST @@ -0,0 +1,19 @@ +@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:18:57 zuntum Exp $ +etc/rc.d/thttpd +libexec/cgi-bin/redirect +libexec/cgi-bin/phf +libexec/cgi-bin/ssi +man/man1/makeweb.1 +man/man1/thtpasswd.1 +man/man8/redirect.8 +man/man8/ssi.8 +man/man8/syslogtocern.8 +man/man8/thttpd.8 +sbin/makeweb +sbin/syslogtocern +sbin/thtpasswd +sbin/thttpd +share/examples/thttpd.conf +share/thttpd/index.html +share/thttpd/sitedrivenby.gif +@dirrm share/thttpd diff --git a/www/thttpd/pkg/DEINSTALL b/www/thttpd/pkg/DEINSTALL deleted file mode 100644 index 72577246275..00000000000 --- a/www/thttpd/pkg/DEINSTALL +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.2 2001/07/13 07:09:27 jlam Exp $ - -PKGNAME=$1 -STAGE=$2 - -CAT="@CAT@" -CMP="@CMP@" -RM="@RM@" - -SAMPLECONFDIR=${PKG_PREFIX}/share/examples -CONFDIR=/etc -CONFFILES="thttpd.conf" - -case ${STAGE} in -DEINSTALL) - # Remove configuration files if they don't differ from the default - # config file. - # - for file in ${CONFFILES} - do - FILE=${CONFDIR}/${file} - SAMPLEFILE=${SAMPLECONFDIR}/${file} - if ${CMP} -s ${FILE} ${SAMPLEFILE} - then - ${RM} -f ${FILE} - fi - done - ;; - -POST-DEINSTALL) - modified_files='' - for file in ${CONFFILES} - do - FILE=${CONFDIR}/${file} - if [ -f ${FILE} ] - then - modified_files="${modified_files} ${FILE}" - fi - done - - if [ -n "${modified_files}" ] - then - ${CAT} << EOF -=========================================================================== -If you won't be using ${PKGNAME} any longer, you may want to remove the -following files: - -EOF - for file in ${modified_files} - do - echo " ${file}" - done - ${CAT} << EOF -=========================================================================== -EOF - fi - ;; - -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/www/thttpd/pkg/DESCR b/www/thttpd/pkg/DESCR deleted file mode 100644 index 1e8d87ead36..00000000000 --- a/www/thttpd/pkg/DESCR +++ /dev/null @@ -1,19 +0,0 @@ -thttpd is a simple, small, portable, fast, and secure HTTP server. - -Simple: It handles only the minimum necessary to implement HTTP/1.1. - -Small: See the size comparison chart at -http://www.acme.com/software/thttpd/notes.html#sizes. It also has a -very small run-time size, since it does not fork and is very careful about -memory allocation. - -Portable: It compiles cleanly on SunOS 4.1.x, Solaris 2.x, BSD/OS 2.x, -Linux 1.2.x, and OSF/1 (on a 64-bit Alpha). - -Fast: In typical use it's about as fast as the best full-featured servers -(Apache, NCSA, Netscape). Under extreme load it's much faster. - -Secure: It goes to great lengths to protect the web server machine -against attacks and breakins from other sites. - -thttpd also provides URL-traffic-based throttling and virtual hosting. diff --git a/www/thttpd/pkg/INSTALL b/www/thttpd/pkg/INSTALL deleted file mode 100644 index d02be46173e..00000000000 --- a/www/thttpd/pkg/INSTALL +++ /dev/null @@ -1,56 +0,0 @@ -#! /bin/sh -# -# $NetBSD: INSTALL,v 1.2 2000/12/17 22:21:45 jlam Exp $ - -PKGNAME=$1 -STAGE=$2 - -CAT="@CAT@" -CHMOD="@CHMOD@" -CP="@CP@" - -SAMPLECONFDIR=${PKG_PREFIX}/share/examples -CONFDIR=/etc -CONFFILES="thttpd.conf" - -case ${STAGE} in -PRE-INSTALL) - ;; - -POST-INSTALL) - echo "Installing configuration files:" - for file in ${CONFFILES} - do - FILE=${CONFDIR}/${file} - SAMPLEFILE=${SAMPLECONFDIR}/${file} - if [ -f ${FILE} ] - then - echo " ${FILE} already exists" - else - echo " ${FILE}" - ${CP} ${SAMPLEFILE} ${FILE} - ${CHMOD} 644 ${FILE} - fi - done - ${CAT} << EOF - -=========================================================================== -Some files you might need to customize include the following: - -EOF - for file in ${CONFFILES} - do - FILE=${CONFDIR}/${file} - echo " ${FILE}" - done - ${CAT} << EOF -=========================================================================== -EOF - ;; - -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/www/thttpd/pkg/MESSAGE b/www/thttpd/pkg/MESSAGE deleted file mode 100644 index faaba57d7ac..00000000000 --- a/www/thttpd/pkg/MESSAGE +++ /dev/null @@ -1,11 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.3 2001/02/06 14:24:15 wiz Exp $ - -In order to use makeweb: - - chgrp makeweb - chmod 2755 makeweb - -The suggested group is "www". - -=========================================================================== diff --git a/www/thttpd/pkg/PLIST b/www/thttpd/pkg/PLIST deleted file mode 100644 index 8eea00e62e5..00000000000 --- a/www/thttpd/pkg/PLIST +++ /dev/null @@ -1,19 +0,0 @@ -@comment $NetBSD: PLIST,v 1.13 2001/05/02 22:22:44 jlam Exp $ -etc/rc.d/thttpd -libexec/cgi-bin/redirect -libexec/cgi-bin/phf -libexec/cgi-bin/ssi -man/man1/makeweb.1 -man/man1/thtpasswd.1 -man/man8/redirect.8 -man/man8/ssi.8 -man/man8/syslogtocern.8 -man/man8/thttpd.8 -sbin/makeweb -sbin/syslogtocern -sbin/thtpasswd -sbin/thttpd -share/examples/thttpd.conf -share/thttpd/index.html -share/thttpd/sitedrivenby.gif -@dirrm share/thttpd -- cgit v1.2.3