ソースを参照

correct and obey tcp wrapper usage help; address is optional, port is mandatory; fix superflous "program" arg bug in rc file; fix PR#176 set default daemon bind/listen address to 127.0.0.1

Thomas Lotterer 22 年 前
コミット
42d0dc3f34
2 ファイル変更7 行追加2 行削除
  1. 5 1
      uucp/rc.uucp
  2. 2 1
      uucp/uucp.spec

+ 5 - 1
uucp/rc.uucp

@@ -5,6 +5,9 @@
 
 %config
     uucp_enable="$openpkg_rc_def"
+    uucp_flags="-l"
+    uucp_bind="127.0.0.1"
+    uucp_port="540"
     uucp_log_prolog="true"
     uucp_log_epilog="true"
     uucp_log_numfiles="10"
@@ -17,7 +20,8 @@
         [ -f $uucp_pidfile ] && kill -$1 `cat $uucp_pidfile`
     }
     uucp_start () {
-        ( @l_prefix@/sbin/uucpd uucp @l_prefix@/sbin/uucico -l \
+        ( @l_prefix@/sbin/uucpd ${uucp_bind}${uucp_bind:+:}${uucp_port:-540} \
+          @l_prefix@/sbin/uucico ${uucp_flags} \
           </dev/null >/dev/null 2>&1 &
           echo "$!" >$uucp_pidfile
         ) </dev/null >/dev/null 2>&1

+ 2 - 1
uucp/uucp.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        Communication
 License:      GPL
 Version:      1.07
-Release:      20030724
+Release:      20030725
 
 #   list of sources
 Source0:      ftp://ftp.gnu.org/gnu/uucp/uucp-%{version}.tar.gz
@@ -66,6 +66,7 @@ AutoReqProv:  no
           -e 's;chgrp;true;g' \
           `find . -name Makefile.in -print`
     ) || exit $?
+    %{l_shtool} subst -e 's/port program \[argv0 argv1/port argv0 \[argv1 argv2/' uucpd/uucpd.c
 
 %build
     ( cd uucp-%{version}