Hello community, here is the log from the commit of package nast for openSUSE:Factory checked in at Tue Jan 18 00:34:11 CET 2011. -------- New Changes file: --- /dev/null 2010-08-26 16:28:41.000000000 +0200 +++ nast/nast.changes 2011-01-16 08:34:02.000000000 +0100 @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Sun Jan 16 07:32:28 UTC 2011 - mseben@gmail.com + +- enable ncurses build (added nast-0.2.0-include.patch and modified nast-0.2.0-config.patch) +- use optflags for build + +------------------------------------------------------------------- +Thu Jan 6 12:04:40 UTC 2011 - mseben@gmail.com + +- fix build :use BuildRequires: libnet-devel for %suse_version > 1130 +- apply gitorious.org/opensuse/spec-cleaner on .spec file + +------------------------------------------------------------------- +Tue Nov 4 14:54:45 CEST 2008 - mseben@suse.cz + +- Initial package + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- nast-0.2.0-config.patch nast-0.2.0-include.patch nast-0.2.0.tar.bz2 nast.changes nast.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nast.spec ++++++ # # spec file for package nast # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: nast Version: 0.2.0 Release: 1 License: GPLv2 Summary: Packet sniffer and a LAN analyzer based on Libnet and Libpcap Url: http://nast.berlios.de/ Group: Productivity/Networking/Diagnostic Source: %{name}-%{version}.tar.bz2 Patch0: nast-%{version}-config.patch Patch1: nast-%{version}-include.patch %if 0%{?suse_version} > 1130 BuildRequires: libnet-devel %else BuildRequires: libnet %endif BuildRequires: libpcap-devel BuildRequires: ncurses-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Nast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap. It can sniff in normal mode or in promiscuos mode the packets on a network interface and log it. It dumps the headers of packets and the payload in ascii or ascii-hex format. You can apply a filter. The sniffed data can be saved in a separated file. As analyzer tool, it has many features like: * Build LAN hosts list * Follow a TCP-DATA stream * Find LAN internet gateways * Discorver promiscous nodes * Reset an established connection * Perform a single half-open portscanner * Perform a multi half-open portscanner * Find link type (hub or switch) * Catch daemon banner of LAN nodes * Control arp answers to discover possible arp-spoofings * Byte couting with an optional filter * Write reports logging It also provides a new ncurses interface %prep %setup -q %patch0 %patch1 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" %configure make %install %make_install %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README NCURSES_README BUGS TODO CREDITS AUTHORS VERSION %doc %{_mandir}/man8/* %{_bindir}/nast* %changelog ++++++ nast-0.2.0-config.patch ++++++ Index: Makefile.in =================================================================== --- Makefile.in.orig +++ Makefile.in @@ -37,9 +37,10 @@ nast: $(OBJS) $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ install: - chown root nast nast.8 - cp -fR nast @bindir@ - cp -fR nast.8 @mandir@/man8/ + mkdir -p $(DESTDIR)@bindir@ + mkdir -p $(DESTDIR)@mandir@/man8/ + cp -fR nast $(DESTDIR)@bindir@ + cp -fR nast.8 $(DESTDIR)@mandir@/man8/ @echo @echo "Run with nast (-h for help), enjoy!" @echo "Use -G flag to run in ncurses interface" Index: configure =================================================================== --- configure.orig +++ configure @@ -2337,8 +2337,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5 -echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for $libdir/libnet.so" >&5 +echo $ECHO_N "checking for $libdir/libnet.so... $ECHO_C" >&6 if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -2346,7 +2346,7 @@ else { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } -if test -r "/usr/lib/libnet.a"; then +if test -r "$libdir/libnet.so"; then ac_cv_file__usr_lib_libnet_a=yes else ac_cv_file__usr_lib_libnet_a=no @@ -2488,8 +2488,8 @@ fi # filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libpcap.a" >&5 -echo $ECHO_N "checking for /usr/lib/libpcap.a... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for $libdir/libpcap.so" >&5 +echo $ECHO_N "checking for $libdir/libpcap.so... $ECHO_C" >&6 if test "${ac_cv_file__usr_lib_libpcap_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -2497,7 +2497,7 @@ else { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } -if test -r "/usr/lib/libpcap.a"; then +if test -r "$libdir/libpcap.so"; then ac_cv_file__usr_lib_libpcap_a=yes else ac_cv_file__usr_lib_libpcap_a=no @@ -2638,8 +2638,8 @@ fi # filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libncurses.a" >&5 -echo $ECHO_N "checking for /usr/lib/libncurses.a... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for $libdir/libncurses.so" >&5 +echo $ECHO_N "checking for $libdir/libncurses.so... $ECHO_C" >&6 if test "${ac_cv_file__usr_lib_libncurses_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -2647,7 +2647,7 @@ else { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } -if test -r "/usr/lib/libncurses.a"; then +if test -r "$libdir/libncurses.so"; then ac_cv_file__usr_lib_libncurses_a=yes else ac_cv_file__usr_lib_libncurses_a=no @@ -2798,8 +2798,8 @@ fi # filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libmenu.a" >&5 -echo $ECHO_N "checking for /usr/lib/libmenu.a... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for $libdir/libmenu.so" >&5 +echo $ECHO_N "checking for $libdir/libmenu.so... $ECHO_C" >&6 if test "${ac_cv_file__usr_lib_libmenu_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -2807,7 +2807,7 @@ else { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } -if test -r "/usr/lib/libmenu.a"; then +if test -r "$libdir/libmenu.so"; then ac_cv_file__usr_lib_libmenu_a=yes else ac_cv_file__usr_lib_libmenu_a=no @@ -3042,8 +3042,6 @@ echo "$as_me: error: { (exit 1); exit 1; }; } fi - - CFLAGS="-Wall -O2" ;; *bsd*) CFLAGS="-Wall -O2 -pthread" ++++++ nast-0.2.0-include.patch ++++++ Index: nast-0.2.0/ncurses/n_nast.h =================================================================== --- nast-0.2.0.orig/ncurses/n_nast.h +++ nast-0.2.0/ncurses/n_nast.h @@ -21,7 +21,7 @@ #ifdef HAVE_LIBNCURSES /*don't compile if we haven't ncurses*/ -# include