[Midnightbsd-cvs] mports: net/cvsup: add rc.d script for cvsupd
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Mar 11 19:11:21 EDT 2009
Log Message:
-----------
add rc.d script for cvsupd
Modified Files:
--------------
mports/net/cvsup:
Makefile (r1.3 -> r1.4)
Added Files:
-----------
mports/net/cvsup/files:
cvsupd (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/cvsup/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -L net/cvsup/Makefile -L net/cvsup/Makefile -u -r1.3 -r1.4
--- net/cvsup/Makefile
+++ net/cvsup/Makefile
@@ -8,7 +8,7 @@
PORTNAME= cvsup
PORTVERSION?= 16.1h
-PORTREVISION?= 2
+PORTREVISION?= 3
CATEGORIES= net devel
MASTER_SITES= ${MASTER_SITE_FREEBSD_ORG}
MASTER_SITE_SUBDIR=development/CVSup/snapshots
@@ -19,6 +19,7 @@
CONFLICTS?= cvsup-without-gui-[0-9]*
ONLY_FOR_ARCHS= amd64 i386 sparc64
+USE_RC_SUBR= cvsupd.sh
.include <bsd.port.pre.mk>
--- /dev/null
+++ net/cvsup/files/cvsupd
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+
+# PROVIDE: cvsupd
+# REQUIRE: LOGIN
+# BEFORE: securelevel
+# KEYWORD: shutdown
+
+# Add the following line to /etc/rc.conf to enable `cvsupd':
+#
+#cvsupd_enable="YES"
+#
+#
+
+. "/etc/rc.subr"
+
+name="cvsupd"
+rcvar=`set_rcvar`
+
+command="/usr/local/sbin/cvsupd"
+command_args="-C 5 -l /var/log/cvsupd"
+pidfile="/var/run/$name.pid"
+#required_files="/usr/local/etc/$name.conf"
+
+# read configuration and set defaults
+load_rc_config "$name"
+: ${cvsupd_enable="NO"}
+: ${cvsupd_flags=""}
+
+run_rc_command "$1"
More information about the Midnightbsd-cvs
mailing list