aboutsummaryrefslogtreecommitdiff
path: root/www/dhttpd/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-09 13:31:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-09 13:31:28 +0000
commit7d2007c4e4e468e5eccdd43469af0857fed349dd (patch)
treed7b0dbee62ba8c83909fbc4e4e2b28a99add83e9 /www/dhttpd/files
parent6a1bbf8d40fd2ca1772409340fd235f369fd4cc8 (diff)
downloadports-7d2007c4e4e468e5eccdd43469af0857fed349dd.tar.gz
ports-7d2007c4e4e468e5eccdd43469af0857fed349dd.zip
- Add backup MASTER_SITES
- Add USE_RC_SUBR - Add RC_SUBR documentation to dhttpd.1 - Pass maintainership to submitter PR: 113493 Submitted by: Lars Engels <lars.engels@0x20.net>
Notes
Notes: svn path=/head/; revision=193106
Diffstat (limited to 'www/dhttpd/files')
-rw-r--r--www/dhttpd/files/dhttpd.sh17
-rw-r--r--www/dhttpd/files/dhttpd.sh.in25
-rw-r--r--www/dhttpd/files/patch-dhhtpd.115
3 files changed, 40 insertions, 17 deletions
diff --git a/www/dhttpd/files/dhttpd.sh b/www/dhttpd/files/dhttpd.sh
deleted file mode 100644
index 39c0d10d87ca..000000000000
--- a/www/dhttpd/files/dhttpd.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-case "$1" in
-start)
- if [ -x %%PREFIX%%/sbin/dhttpd ]; then
- %%PREFIX%%/sbin/dhttpd && echo -n ' dhttpd'
- fi
- ;;
-stop)
- killall dhttpd && echo -n ' dhttpd'
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- ;;
-esac
-
-exit 0
diff --git a/www/dhttpd/files/dhttpd.sh.in b/www/dhttpd/files/dhttpd.sh.in
new file mode 100644
index 000000000000..821b02c2de63
--- /dev/null
+++ b/www/dhttpd/files/dhttpd.sh.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: dhttpd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable dhttpd:
+#
+# dhttpd_enable (bool): Set it to "YES" to enable dhttpd
+#
+
+. %%RC_SUBR%%
+
+name="dhttpd"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${dhttpd_enable="NO"}
+
+command=%%PREFIX%%/sbin/${name}
+
+run_rc_command "$1"
diff --git a/www/dhttpd/files/patch-dhhtpd.1 b/www/dhttpd/files/patch-dhhtpd.1
new file mode 100644
index 000000000000..f50e5dc804fc
--- /dev/null
+++ b/www/dhttpd/files/patch-dhhtpd.1
@@ -0,0 +1,15 @@
+--- dhttpd.1.orig Tue Mar 4 01:35:54 1997
++++ dhttpd.1 Sat Jun 9 12:42:17 2007
+@@ -13,6 +13,12 @@
+ and it was in working condition, it was realized that it was memory
+ efficient, low profile, quick, and served the one need for
+ an HTTP daemon: to transmit files.
++
++The document root is /usr/local/www/data.
++
++To enable dhttp, add 'dhttpd_enable="YES"' to /etc/rc.conf.
++If you want to change the default port from 80 to another port, add
++\'dhhtdp_flags="- p <PORT>"\' to /etc/rc.conf.
+ .SH OPTIONS
+ .TP
+ .B \-h