@@ -175,7 +175,7 @@ AC_ARG_WITH(rsync-path,
175175AC_DEFINE_UNQUOTED ( RSYNC_PATH , "$RSYNC_PATH" , [ location of rsync on remote machine] )
176176
177177AC_ARG_WITH ( rsyncd-conf ,
178- AS_HELP_STRING ( [ --with-rsyncd-conf=PATH] ,[ set configuration file for rsync server to PATH (default: /etc/rsyncd.conf)] ) ,
178+ AS_HELP_STRING ( [ --with-rsyncd-conf=PATH] ,[ set user/admin defined configuration file for rsync server to PATH (default: /etc/rsyncd.conf)] ) ,
179179 [ if test ! -z "$with_rsyncd_conf" ; then
180180 case $with_rsyncd_conf in
181181 yes|no)
@@ -193,7 +193,27 @@ AC_ARG_WITH(rsyncd-conf,
193193 fi ] ,
194194 [ RSYNCD_SYSCONF="/etc/rsyncd.conf" ] )
195195
196- AC_DEFINE_UNQUOTED ( RSYNCD_SYSCONF , "$RSYNCD_SYSCONF" , [ location of configuration file for rsync server] )
196+ AC_DEFINE_UNQUOTED ( RSYNCD_SYSCONF , "$RSYNCD_SYSCONF" , [ location of user/admin defined configuration file for rsync server] )
197+
198+ AC_ARG_WITH ( rsyncd-distconf ,
199+ AS_HELP_STRING ( [ --with-rsyncd-distconf=PATH] ,[ set vendor configuration file for rsync server to PATH (default: not set)] ) ,
200+ [ if test ! -z "$with_rsyncd_distconf" ; then
201+ case $with_rsyncd_distconf in
202+ yes|no)
203+ RSYNCD_DISTCONF="/usr/etc/rsyncd.conf"
204+ ;;
205+ /*)
206+ RSYNCD_DISTCONF="$with_rsyncd_distconf"
207+ ;;
208+ *)
209+ AC_MSG_ERROR ( You must specify an absolute path to -- with-rsyncd-distconf=PATH )
210+ ;;
211+ esac
212+ fi
213+ ] ,
214+ [ ] )
215+
216+ AC_DEFINE_UNQUOTED ( RSYNCD_DISTCONF , "$RSYNCD_DISTCONF" , [ location of vendor configuration file for rsync server] )
197217
198218AC_ARG_WITH ( rsh ,
199219 AS_HELP_STRING ( [ --with-rsh=CMD] ,[ set remote shell command to CMD (default: ssh)] ) )
0 commit comments