pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/rsync Add a startup script for "rsync" in daemon m...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9050dd9da4ab
branches: trunk
changeset: 554805:9050dd9da4ab
user: tron <tron%pkgsrc.org@localhost>
date: Sat Feb 21 09:34:17 2009 +0000
description:
Add a startup script for "rsync" in daemon mode loosely based on
the example provided under
<http://wiki.netbsd.se/Mirroring_NetBSD#Configuring_RSYNC_Server>.
This fixes PR pkg/40704 by Brian A. Seklecki.
diffstat:
net/rsync/Makefile | 6 +++++-
net/rsync/PLIST | 3 ++-
net/rsync/files/rsyncd.sh | 18 ++++++++++++++++++
3 files changed, 25 insertions(+), 2 deletions(-)
diffs (57 lines):
diff -r 5216ba83e311 -r 9050dd9da4ab net/rsync/Makefile
--- a/net/rsync/Makefile Sat Feb 21 08:23:04 2009 +0000
+++ b/net/rsync/Makefile Sat Feb 21 09:34:17 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.80 2009/01/28 12:34:00 tron Exp $
+# $NetBSD: Makefile,v 1.81 2009/02/21 09:34:17 tron Exp $
DISTNAME= rsync-3.0.5
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://rsync.samba.org/ftp/rsync/ \
http://rsync.samba.org/ftp/rsync/old-versions/ \
@@ -23,6 +24,9 @@
PKG_SYSCONFSUBDIR= rsync
+RCD_SCRIPTS= rsyncd
+RCD_SCRIPT_SRC.rsyncd= files/rsyncd.sh
+
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= post-patch
diff -r 5216ba83e311 -r 9050dd9da4ab net/rsync/PLIST
--- a/net/rsync/PLIST Sat Feb 21 08:23:04 2009 +0000
+++ b/net/rsync/PLIST Sat Feb 21 09:34:17 2009 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.4 2008/03/11 10:16:43 tron Exp $
+@comment $NetBSD: PLIST,v 1.5 2009/02/21 09:34:17 tron Exp $
bin/rsync
man/man1/rsync.1
man/man5/rsyncd.conf.5
share/doc/rsync/README
share/doc/rsync/tech_report.tex
+share/examples/rc.d/rsyncd
@dirrm share/doc/rsync
diff -r 5216ba83e311 -r 9050dd9da4ab net/rsync/files/rsyncd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rsync/files/rsyncd.sh Sat Feb 21 09:34:17 2009 +0000
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: rsyncd.sh,v 1.1 2009/02/21 09:34:17 tron Exp $
+#
+# PROVIDE: rsyncd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="rsyncd"
+rcvar=$name
+command="@PREFIX@/bin/rsync"
+required_files="@PKG_SYSCONFDIR@/rsyncd.conf"
+
+command_args="--daemon"
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index