summaryrefslogtreecommitdiff
path: root/net/rsync
diff options
context:
space:
mode:
Diffstat (limited to 'net/rsync')
-rw-r--r--net/rsync/Makefile6
-rw-r--r--net/rsync/PLIST3
-rw-r--r--net/rsync/files/rsyncd.sh18
3 files changed, 25 insertions, 2 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index 9bdd4cc83ed..f76d8bf652f 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -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 @@ TEST_TARGET= test
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 --git a/net/rsync/PLIST b/net/rsync/PLIST
index 9e2a9181b2d..0090b37ffad 100644
--- a/net/rsync/PLIST
+++ b/net/rsync/PLIST
@@ -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 --git a/net/rsync/files/rsyncd.sh b/net/rsync/files/rsyncd.sh
new file mode 100644
index 00000000000..2efb285c14f
--- /dev/null
+++ b/net/rsync/files/rsyncd.sh
@@ -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"