Hello community, here is the log from the commit of package procinfo checked in at Tue Jun 5 01:11:59 CEST 2007. -------- --- procinfo/procinfo.changes 2007-04-17 17:10:55.000000000 +0200 +++ /mounts/work_src_done/STABLE/procinfo/procinfo.changes 2007-06-04 11:32:45.530115000 +0200 @@ -1,0 +2,5 @@ +Mon Jun 4 11:21:32 CEST 2007 - werner@suse.de + +- Expand socklist to TCP/IPv6 (bug #280032) + +------------------------------------------------------------------- New: ---- procinfo-socklist.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ procinfo.spec ++++++ --- /var/tmp/diff_new_pack.ja1165/_old 2007-06-05 01:11:37.000000000 +0200 +++ /var/tmp/diff_new_pack.ja1165/_new 2007-06-05 01:11:37.000000000 +0200 @@ -17,7 +17,7 @@ Group: System/Monitoring Autoreqprov: on Version: 18 -Release: 92 +Release: 103 Summary: Display System Status Gathered from /proc Provides: ps:/usr/bin/lsdev Source: ftp://ftp.cistron.nl/pub/people/svm/%{name}-%{version}.tar.bz2 @@ -30,6 +30,7 @@ Patch6: procinfo-irq.dif Patch7: procinfo-loadavg.dif Patch8: procinfo-lsdev.dif +Patch9: procinfo-socklist.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -53,6 +54,7 @@ %patch6 %patch7 %patch8 +%patch9 %build CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ${RPM_OPT_FLAGS} -pipe" @@ -77,6 +79,8 @@ %{_mandir}/man8/socklist.8* %changelog +* Mon Jun 04 2007 - werner@suse.de +- Expand socklist to TCP/IPv6 (bug #280032) * Tue Apr 17 2007 - werner@suse.de - Fix lsdev for ia64: there is no /proc/dma (bug #263740) * Thu Mar 29 2007 - rguenther@suse.de ++++++ procinfo-socklist.dif ++++++ --- procinfo-18/socklist.pl +++ procinfo-18/socklist.pl 2007-06-04 11:29:53.483798422 +0200 @@ -72,7 +72,7 @@ closedir PROC; # part 2: read /proc/net/tcp, /proc/net/udp, and /proc/net/raw, # printing the answers as we go. -print "type port inode uid pid fd name\n"; +print "type port inode uid pid fd name\n"; sub scheck { open(FILE,"/proc/net/".$_[0]) || die; while (<FILE>) { @@ -87,12 +87,15 @@ sub scheck { ($cmd) = ( $l=~/Name:\s*(\S+)/ ); close(CMD); } - printf "%s %6d %10d %6d %6d %4d %s\n", + printf "%-4.4s %6d %10d %6d %6d %4d %s\n", $_[0], $a ,$F[9], $F[7], $pid, $fd, $cmd; } close(FILE); } -scheck("tcp"); -scheck("udp"); -scheck("raw"); +if (-r "/proc/net/tcp" ) { scheck("tcp" ); } +if (-r "/proc/net/tcp6") { scheck("tcp6"); } +if (-r "/proc/net/udp" ) { scheck("udp" ); } +if (-r "/proc/net/udp6") { scheck("udp6"); } +if (-r "/proc/net/raw" ) { scheck("raw" ); } +if (-r "/proc/net/raw6") { scheck("raw6"); } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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@Hilbert.suse.de