summaryrefslogtreecommitdiff
path: root/www-servers/thttpd/files
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/thttpd/files')
-rw-r--r--www-servers/thttpd/files/thttpd-renamed-htpasswd.patch108
-rw-r--r--www-servers/thttpd/files/thttpd.conf.sample38
-rw-r--r--www-servers/thttpd/files/thttpd.confd.135
-rw-r--r--www-servers/thttpd/files/thttpd.init.134
-rw-r--r--www-servers/thttpd/files/thttpd.logrotate12
5 files changed, 0 insertions, 227 deletions
diff --git a/www-servers/thttpd/files/thttpd-renamed-htpasswd.patch b/www-servers/thttpd/files/thttpd-renamed-htpasswd.patch
deleted file mode 100644
index 31e68429dbd6..000000000000
--- a/www-servers/thttpd/files/thttpd-renamed-htpasswd.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index 2c2dfae..e028a0d 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -42,12 +42,6 @@ if test "x${WEBDIR}" = "x" ; then
- WEBDIR='/usr/local/www'
- fi
-
--AC_ARG_VAR(WEBGROUP, [The group that the web server will run as])
--
--if test "x${WEBGROUP}" = "x" ; then
-- WEBGROUP='thttpd'
--fi
--
- AC_CONFIG_FILES([Makefile
- docs/Makefile
- extras/Makefile
-diff --git a/docs/Makefile.am b/docs/Makefile.am
-index 303c25f..2823290 100644
---- a/docs/Makefile.am
-+++ b/docs/Makefile.am
-@@ -1 +1 @@
--dist_man_MANS = htpasswd.1 makeweb.1 redirect.8 ssi.8 syslogtocern.8 thttpd.8
-+dist_man_MANS = th_htpasswd.1 makeweb.1 redirect.8 ssi.8 syslogtocern.8 thttpd.8
-diff --git a/docs/htpasswd.1 b/docs/htpasswd.1
-deleted file mode 100644
-index 1124b02..0000000
---- a/docs/htpasswd.1
-+++ /dev/null
-@@ -1,16 +0,0 @@
--.TH htpasswd 1 "05 May 1998"
--.SH NAME
--htpasswd - manipulate HTTP-server password files
--.SH SYNOPSIS
--.B htpasswd
--.RB [ -c ]
--.I passwordfile
--.I username
--.SH DESCRIPTION
--.PP
--Sets a user's password in an httpd-style password file.
--The -c flag creates a new file.
--.SH AUTHOR
--Rob McCool.
--Modified 29aug97 by Jef Poskanzer to accept new password on stdin,
--if stdin is a pipe or file. This is necessary for use from CGI.
-diff --git a/docs/th_htpasswd.1 b/docs/th_htpasswd.1
-new file mode 100644
-index 0000000..f524af9
---- /dev/null
-+++ b/docs/th_htpasswd.1
-@@ -0,0 +1,16 @@
-+.TH th_htpasswd 1 "05 May 1998"
-+.SH NAME
-+th_htpasswd - manipulate HTTP-server password files
-+.SH SYNOPSIS
-+.B th_htpasswd
-+.RB [ -c ]
-+.I passwordfile
-+.I username
-+.SH DESCRIPTION
-+.PP
-+Sets a user's password in an httpd-style password file.
-+The -c flag creates a new file.
-+.SH AUTHOR
-+Rob McCool.
-+Modified 29aug97 by Jef Poskanzer to accept new password on stdin,
-+if stdin is a pipe or file. This is necessary for use from CGI.
-diff --git a/docs/thttpd.8 b/docs/thttpd.8
-index a0fd334..78af884 100644
---- a/docs/thttpd.8
-+++ b/docs/thttpd.8
-@@ -270,7 +270,7 @@ called .htpasswd by default.
- This file is formatted as the familiar colon-separated
- username/encrypted-password pair, records delimited by newlines.
- The protection does not carry over to subdirectories.
--The utility program htpasswd(1) is included to help create and
-+The utility program th_htpasswd(1) is included to help create and
- modify .htpasswd files.
- .PP
- Relevant thttpd.h option: AUTH_FILE
-@@ -562,7 +562,7 @@ This is a little tricky to set up correctly, for instance if you are using
- chroot() then the log file must be within the chroot tree, but it's
- definitely doable.
- .SH "SEE ALSO"
--redirect(8), ssi(8), makeweb(1), htpasswd(1), syslogtocern(8), weblog_parse(1), http_get(1)
-+redirect(8), ssi(8), makeweb(1), th_htpasswd(1), syslogtocern(8), weblog_parse(1), http_get(1)
- .SH THANKS
- .PP
- Many thanks to contributors, reviewers, testers:
-diff --git a/extras/Makefile.am b/extras/Makefile.am
-index b1f3b4d..ffd19d7 100644
---- a/extras/Makefile.am
-+++ b/extras/Makefile.am
-@@ -1,11 +1,7 @@
- AM_CPPFLAGS = -DWEBDIR='"$(WEBDIR)"'
-
--sbin_PROGRAMS = makeweb htpasswd
-+sbin_PROGRAMS = makeweb th_htpasswd
- makeweb_SOURCES = makeweb.c
--htpasswd_SOURCES = htpasswd.c
-+th_htpasswd_SOURCES = th_htpasswd.c
-
- dist_sbin_SCRIPTS = syslogtocern
--
--install-exec-hook:
-- chgrp $(WEBGROUP) $(DESTDIR)$(sbindir)/makeweb
-- chmod 2751 $(DESTDIR)$(sbindir)/makeweb
diff --git a/www-servers/thttpd/files/thttpd.conf.sample b/www-servers/thttpd/files/thttpd.conf.sample
deleted file mode 100644
index 462bd0c198d0..000000000000
--- a/www-servers/thttpd/files/thttpd.conf.sample
+++ /dev/null
@@ -1,38 +0,0 @@
-## /etc/thttpd.conf
-##
-## do not leave empty lines in here!
-## format is: key=value
-##
-## run in debug-mode?
-#debug
-##
-## what interface to bind to?
-## (default is binding to any interface)
-#host=www.example.org
-port=80
-user=thttpd
-##
-## CGI:
-## ? match a single char
-## * matches any string excluding "/"
-## ** matches any string including "/"
-## separate multiple patterns with "|"
-#cgipat=**.sh|**.cgi
-##
-## chroot:
-chroot
-#nochroot
-##
-logfile=/var/log/thttpd.log
-pidfile=/var/run/thttpd.pid
-##
-charset=iso-8859-1
-##
-## control the caching: (in secs)
-#maxage 60
-##
-## virtual hosting:
-#vhost
-##
-## cache-control: send this "max-age" in all HTTP-responses:
-#max-age=0
diff --git a/www-servers/thttpd/files/thttpd.confd.1 b/www-servers/thttpd/files/thttpd.confd.1
deleted file mode 100644
index b5f630e7ecc2..000000000000
--- a/www-servers/thttpd/files/thttpd.confd.1
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-## Config file for /etc/init.d/thttpd
-
-## the startup-dir of thttpd is the docroot, so we specify it here
-## and the init-script does a "cd" prior to startup:
-THTTPD_DOCROOT="/var/www/localhost"
-
-## There are 2 ways to configure thttpd:
-## 1) specify all params on the cmd-line
-## 2) use a config-file (and start with "-C <conf-file>")
-
-## For additional thttpd instances, run:
-# ln -s /etc/init.d/thttpd /etc/init.d/thttpd.$NAME
-# cp /etc/conf.d/thttpd /etc/conf.d/thttpd.$NAME
-
-## Note: 1) and 2) can be mixed but
-## the init-script set PID (option -i) to
-## /var/run/thttpd.$NAME.run
-## and logfile (option -l) to
-## /var/log/thttpd.$NAME.log
-##
-## We choose 1) here -- if you have a more complicated setup read
-## thttpd(8) for details on 2).
-
-THTTPD_OPTS="-p 80 -u thttpd -r"
-
-## For a more complex setup (e.g. cgi-support) use an external configfile:
-## comment the THTTPD_OPTS line above und use the one below.
-#THTTPD_OPTS="-C /etc/thttpd/thttpd.conf"
-
-## If you know what you are doing you can add cgi-support with the line below;
-## but you _should_ use the extern-configfile version!
-#THTTPD_OPTS="$THTTPD_OPTS -c **.cgi|**.sh"
diff --git a/www-servers/thttpd/files/thttpd.init.1 b/www-servers/thttpd/files/thttpd.init.1
deleted file mode 100644
index 3b7756eae19a..000000000000
--- a/www-servers/thttpd/files/thttpd.init.1
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v3 or later
-
-depend() {
- need net
- use dns logger netmount
- after sshd
-}
-
-checkconfig() {
- if [ ! -d "$THTTPD_DOCROOT" ]; then
- eend 1 "THTTPD_DOCROOT not set correctly in /etc/conf.d/${SVCNAME}"
- fi
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
-
- checkconfig || return 1
-
- start-stop-daemon --quiet --start --exec /usr/sbin/thttpd \
- --pidfile /var/run/${SVCNAME}.pid --chdir "$THTTPD_DOCROOT" -- \
- -i /var/run/${SVCNAME}.pid \
- -l /var/log/${SVCNAME}.log \
- ${THTTPD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --quiet --stop --pidfile /var/run/${SVCNAME}.pid
- eend $?
-}
diff --git a/www-servers/thttpd/files/thttpd.logrotate b/www-servers/thttpd/files/thttpd.logrotate
deleted file mode 100644
index 7e75c813524a..000000000000
--- a/www-servers/thttpd/files/thttpd.logrotate
+++ /dev/null
@@ -1,12 +0,0 @@
-/var/log/thttpd.log {
- daily
- rotate 5
- compress
- delaycompress
- missingok
- notifempty
- sharedscripts
- postrotate
- kill -HUP `cat /var/run/thttpd.pid 2>/dev/null` 2>/dev/null || true
- endscript
-}