Package: sntop
Version: 1.4.3-1
Severity: important
Tags: patch

I just found out there is something like sntop (so far only knew iftop)
and immediately believe that the package has a bug ;)

Just installing sntop without further configuration results in this
message

[EMAIL PROTECTED] ~>sntop
sntop: error, cannot open systen or user conf file


Here's the corresponding strace output.

open("/home/bernd/.sntoprc", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/usr/etc/sntoprc", O_RDONLY)      = -1 ENOENT (No such file or
directory)

However, sntoprc is installed in /etc. So I checked the debian-source
and the rules script gives this option "--sysconfdir=\$${prefix}/etc". I
really think "\$${prefix}" should be removed.



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-ck7-BS2
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 
(charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages sntop depends on:
ii  fping                   2.4b2-to-ipv6-10 sends ICMP ECHO_REQUEST packets to
ii  libc6                   2.3.2.ds1-21     GNU C Library: Shared libraries an
ii  libncurses5             5.4-4            Shared libraries for terminal hand

-- no debconf information
diff -ru sntop-1.4.3.orig/debian/rules sntop-1.4.3/debian/rules
--- sntop-1.4.3.orig/debian/rules       2005-05-28 01:47:10.000000000 +0200
+++ sntop-1.4.3/debian/rules    2005-05-28 02:00:02.000000000 +0200
@@ -13,7 +13,7 @@
        dh_testdir
        # Commands to configure the package.
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
-       --infodir=\$${prefix}/share/info --sysconfdir=\$${prefix}/etc
+       --infodir=\$${prefix}/share/info --sysconfdir=/etc
        touch configure-stamp

 build: configure-stamp build-stamp

Reply via email to