diff options
author | tron <tron> | 2009-02-21 09:34:17 +0000 |
---|---|---|
committer | tron <tron> | 2009-02-21 09:34:17 +0000 |
commit | 0d2fd341b427ead0660f4688144fd1491a8dff06 (patch) | |
tree | ebeb6a3cdcf410ee2582c80309966add330f5df7 /net | |
parent | bf41434312dcda7134907615fa0a07b2580543a5 (diff) | |
download | pkgsrc-0d2fd341b427ead0660f4688144fd1491a8dff06.tar.gz |
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 (limited to 'net')
-rw-r--r-- | net/rsync/Makefile | 6 | ||||
-rw-r--r-- | net/rsync/PLIST | 3 | ||||
-rw-r--r-- | net/rsync/files/rsyncd.sh | 18 |
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" |