svn commit: r367807 - in head/net/rsync: . files

Emanuel Haupt ehaupt at FreeBSD.org
Wed Sep 10 09:36:25 UTC 2014


Author: ehaupt
Date: Wed Sep 10 09:36:24 2014
New Revision: 367807
URL: http://svnweb.freebsd.org/changeset/ports/367807
QAT: https://qat.redports.org/buildarchive/r367807/

Log:
  Allow specifying config path in rc.conf
  
  PR:		191601
  Submitted by:	daniel at blodan.se

Modified:
  head/net/rsync/Makefile
  head/net/rsync/files/rsyncd.in

Modified: head/net/rsync/Makefile
==============================================================================
--- head/net/rsync/Makefile	Wed Sep 10 09:19:27 2014	(r367806)
+++ head/net/rsync/Makefile	Wed Sep 10 09:36:24 2014	(r367807)
@@ -3,7 +3,7 @@
 
 PORTNAME=	rsync
 PORTVERSION=	3.1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net ipv6
 MASTER_SITES=	http://rsync.samba.org/ftp/%SUBDIR%/ \
 		ftp://ftp.samba.org/pub/%SUBDIR%/ \

Modified: head/net/rsync/files/rsyncd.in
==============================================================================
--- head/net/rsync/files/rsyncd.in	Wed Sep 10 09:19:27 2014	(r367806)
+++ head/net/rsync/files/rsyncd.in	Wed Sep 10 09:36:24 2014	(r367807)
@@ -22,14 +22,17 @@ name="%%NAME%%"
 rcvar=%%NAME%%_enable
 
 command="%%PREFIX%%/bin/rsync"
-command_args="--daemon"
 start_precmd="%%NAME%%_precmd"
 pidfile="/var/run/$name.pid"
-required_files="%%ETCDIR%%/$name.conf"
 
 # read configuration and set defaults
 load_rc_config "$name"
 : ${%%NAME%%_enable="NO"}
+: ${%%NAME%%_configfile:=%%ETCDIR%%/$name.conf}
+
+required_files="${%%NAME%%_configfile}"
+
+command_args="--daemon --config ${%%NAME%%_configfile}"
 
 %%NAME%%_precmd()
 {


More information about the svn-ports-head mailing list