aboutsummaryrefslogtreecommitdiffstats
path: root/www/webfs
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-06-19 02:17:55 +0800
committermiwi <miwi@FreeBSD.org>2007-06-19 02:17:55 +0800
commit76f3a412530c456bc998244365c75ef14d4c9085 (patch)
tree0b3bdf887b6755cba366f0061452846b2d59f8ed /www/webfs
parentd0f3bb2e3a0d418a4a8daa9a834e86efb6048393 (diff)
downloadfreebsd-ports-gnome-76f3a412530c456bc998244365c75ef14d4c9085.tar.gz
freebsd-ports-gnome-76f3a412530c456bc998244365c75ef14d4c9085.tar.zst
freebsd-ports-gnome-76f3a412530c456bc998244365c75ef14d4c9085.zip
- Add backup MASTER_SITES
- Move content of pkg-plist to PLIST_FILES - Add a rc_ng start script - Pass maintainership to submitter PR: 113784 Submitted by: Lars Engels <lars.engels@0x20.net>
Diffstat (limited to 'www/webfs')
-rw-r--r--www/webfs/Makefile10
-rw-r--r--www/webfs/files/webfsd.in27
-rw-r--r--www/webfs/pkg-plist1
3 files changed, 34 insertions, 4 deletions
diff --git a/www/webfs/Makefile b/www/webfs/Makefile
index 32e3620d0e77..4abdbe29f56d 100644
--- a/www/webfs/Makefile
+++ b/www/webfs/Makefile
@@ -7,11 +7,11 @@
PORTNAME= webfs
PORTVERSION= 1.21
-PORTREVISION= 0
CATEGORIES= www ipv6
-MASTER_SITES= http://dl.bytesex.org/releases/webfs/
+MASTER_SITES= http://dl.bytesex.org/releases/webfs/ \
+ http://www.bsd-geek.de/FreeBSD/distfiles/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lars.engels@0x20.net
COMMENT= A simple http server for static content
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
@@ -24,9 +24,13 @@ MAKE_ENV= USE_SSL=no
.endif
MAKE_ENV+= LDLIBS="-lssl -lcrypto" USE_DIET=no
+PLIST_FILES= sbin/webfsd
+
MAN1= webfsd.1
MIMEFILE?= ${LOCALBASE}/etc/mime.types
+USE_RC_SUBR= webfsd
+
pre-everything::
@${ECHO_CMD} ""
@${ECHO_CMD} "==========================================="
diff --git a/www/webfs/files/webfsd.in b/www/webfs/files/webfsd.in
new file mode 100644
index 000000000000..9cd9bfd4cb0f
--- /dev/null
+++ b/www/webfs/files/webfsd.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: webfsd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable webfsd:
+#
+# webfsd_enable=(bool): Set it to "YES" to enable webfsd
+#
+# and add appropriate webfsd_flags.
+#
+
+. %%RC_SUBR%%
+
+name="webfsd"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${webfsd_enable="NO"}
+
+command=%%PREFIX%%/sbin/${name}
+
+run_rc_command "$1"
diff --git a/www/webfs/pkg-plist b/www/webfs/pkg-plist
deleted file mode 100644
index 1fbb2242d9c7..000000000000
--- a/www/webfs/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-sbin/webfsd