Hello community, here is the log from the commit of package atftp checked in at Mon Jul 31 23:27:01 CEST 2006. -------- --- atftp/atftp.changes 2006-07-01 04:55:29.000000000 +0200 +++ atftp/atftp.changes 2006-07-31 16:28:48.000000000 +0200 @@ -1,0 +2,13 @@ +Mon Jul 31 16:16:43 CEST 2006 - mrueckert@suse.de + +- added /var/run/atftpd/ (0755,nobody,nogroup): + at ftp can finally create pid files + the default pid file for a single instance will be + /var/run/atftpd/pid +- added support to run multiple instances of atftpd bound to specific + IP addresses: + * new sysconfig variable ATFTPD_BIND_ADDRESSES: whitespace + seperated list of ip addresses. + * each instance has its own pid file /var/run/atftpd/$ip.pid + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ atftp.spec ++++++ --- /var/tmp/diff_new_pack.9Voaaf/_old 2006-07-31 23:26:56.000000000 +0200 +++ /var/tmp/diff_new_pack.9Voaaf/_new 2006-07-31 23:26:56.000000000 +0200 @@ -13,7 +13,7 @@ Name: atftp %define pkg_version 0.7 Version: 0.7.0 -Release: 1 +Release: 2 License: GPL Group: System/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -61,12 +61,12 @@ %{__make} %install - %makeinstall # SuSE rc %{__install} -D -m 0755 %{S:1} %{buildroot}/etc/init.d/atftpd %{__ln_s} -f ../../etc/init.d/atftpd %{buildroot}%{_sbindir}/rcatftpd %{__install} -D -m 0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.atftpd +%{__install} -Dd -m 0750 %{buildroot}/var/run/atftpd/ %clean %{__rm} -rf %{buildroot} @@ -93,8 +93,19 @@ %{_mandir}/man1/atftp.1.gz %{_mandir}/man8/atftpd.8.gz %{_mandir}/man8/in.tftpd.8.gz +%dir %attr(-,nobody,nogroup) /var/run/atftpd/ %changelog -n atftp +* Mon Jul 31 2006 - mrueckert@suse.de +- added /var/run/atftpd/ (0755,nobody,nogroup): + at ftp can finally create pid files + the default pid file for a single instance will be + /var/run/atftpd/pid +- added support to run multiple instances of atftpd bound to specific + IP addresses: + * new sysconfig variable ATFTPD_BIND_ADDRESSES: whitespace + seperated list of ip addresses. + * each instance has its own pid file /var/run/atftpd/$ip.pid * Sat Jul 01 2006 - mrueckert@suse.de - bump the version number to 0.7.0: This fix is needed because 0.7 < 0.7cvs. Replaced %%{version} ++++++ atftpd.init.d ++++++ --- atftp/atftpd.init.d 2006-04-07 17:27:04.000000000 +0200 +++ atftp/atftpd.init.d 2006-07-31 16:28:48.000000000 +0200 @@ -68,9 +68,17 @@ case "$1" in start) - echo -n "Starting Advanced Trivial FTP server" - startproc $ATFTPD_BIN $ATFTPD_OPTIONS $ATFTPD_DIRECTORY - rc_status -v + if [ -n "$ATFTPD_BIND_ADDRESSES" ]; then + for IP in $ATFTPD_BIND_ADDRESSES; do + echo -n "Starting Advanced Trivial FTP server on $IP" + startproc -p "/var/run/atftpd/$IP.pid" -f $ATFTPD_BIN --pidfile "/var/run/atftpd/$IP.pid" $ATFTPD_OPTIONS $ATFTPD_DIRECTORY --bind-address $IP + rc_status -v + done + else + echo -n "Starting Advanced Trivial FTP server" + startproc $ATFTPD_BIN --pidfile "/var/run/atftpd/pid" $ATFTPD_OPTIONS $ATFTPD_DIRECTORY + rc_status -v + fi ;; stop) echo -n "Stopping Advanced Trivial FTP server" ++++++ atftpd.sysconfig ++++++ --- atftp/atftpd.sysconfig 2006-04-07 17:27:04.000000000 +0200 +++ atftp/atftpd.sysconfig 2006-07-31 16:28:48.000000000 +0200 @@ -22,3 +22,11 @@ # ATFTPD_DIRECTORY="/tftpboot" +## Type: string +## Default: "" +# +# Whitespace seperated list of IP addresses which ATFTPD binds to. +# One instance of the service is started on each IP address. +# By default atftpd will listen on all available IP addresses/interfaces. +# +ATFTPD_BIND_ADDRESSES="" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit-help@opensuse.org
participants (1)
-
root@suse.de