ports/113784: [PATCH] www/webfs: add backup MASTER_SITE, add start script, take maintainership

Lars Engels lars.engels at 0x20.net
Sun Jun 17 00:40:04 UTC 2007


>Number:         113784
>Category:       ports
>Synopsis:       [PATCH] www/webfs: add backup MASTER_SITE, add start script, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 00:40:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Lars Engels
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD maggie.bsd-geek.de 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Wed Jun  6 21:12:35 CEST
>Description:
[DESCRIBE CHANGES]
- add a backup MASTER_SITE
- add a rc_ng start script
- move content of pkg-plist to PLIST_FILES
- Take maintainership

Added file(s):
- files/webfsd.in

Removed file(s):
- pkg-plist

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- webfs-1.21.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/webfs/Makefile,v
retrieving revision 1.22
diff -u -u -r1.22 Makefile
--- Makefile	29 Apr 2007 16:21:09 -0000	1.22
+++ Makefile	17 Jun 2007 00:36:12 -0000
@@ -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 at FreeBSD.org
+MAINTAINER=	lars.engels at 0x20.net
 COMMENT=	A simple http server for static content
 
 RUN_DEPENDS=	${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
@@ -24,9 +24,13 @@
 .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} "==========================================="
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- pkg-plist	28 May 2005 09:04:46 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1 +0,0 @@
-sbin/webfsd
Index: files/webfsd.in
===================================================================
RCS file: files/webfsd.in
diff -N files/webfsd.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/webfsd.in	17 Jun 2007 00:36:12 -0000
@@ -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"
--- webfs-1.21.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list