Ralf S. Engelschall 24 лет назад
Родитель
Сommit
05f63dcd4d
2 измененных файлов с 10 добавлено и 5 удалено
  1. 2 2
      dsniff/dsniff.spec
  2. 8 3
      libnids/libnids.spec

+ 2 - 2
dsniff/dsniff.spec

@@ -29,11 +29,11 @@ Summary:      Tools for network auditing and penetration testing
 URL:          http://www.monkey.org/~dugsong/dsniff/
 URL:          http://www.monkey.org/~dugsong/dsniff/
 Vendor:       Dug Song
 Vendor:       Dug Song
 Packager:     The OpenPKG Project
 Packager:     The OpenPKG Project
-Distribution: OpenPKG [PLUS]
+Distribution: OpenPKG [EVAL]
 Group:        Network
 Group:        Network
 License:      BSD-style
 License:      BSD-style
 Version:      2.3
 Version:      2.3
-Release:      20020206
+Release:      20020822
 
 
 #   list of sources
 #   list of sources
 Source0:      http://www.monkey.org/~dugsong/dsniff/dsniff-%{version}.tar.gz
 Source0:      http://www.monkey.org/~dugsong/dsniff/dsniff-%{version}.tar.gz

+ 8 - 3
libnids/libnids.spec

@@ -29,11 +29,11 @@ Summary:      Network Intrusion Detection System Library
 URL:          http://www.packetfactory.net/Projects/Libnids/
 URL:          http://www.packetfactory.net/Projects/Libnids/
 Vendor:       Rafal Wojtczuk
 Vendor:       Rafal Wojtczuk
 Packager:     The OpenPKG Project
 Packager:     The OpenPKG Project
-Distribution: OpenPKG [PLUS]
+Distribution: OpenPKG [EVAL]
 Group:        Network
 Group:        Network
 License:      GPL
 License:      GPL
 Version:      1.16
 Version:      1.16
-Release:      20020206
+Release:      20020822
 
 
 #   list of sources
 #   list of sources
 Source0:      http://www.packetfactory.net/Projects/Libnids/dist/libnids-%{version}.tar.gz
 Source0:      http://www.packetfactory.net/Projects/Libnids/dist/libnids-%{version}.tar.gz
@@ -56,8 +56,13 @@ AutoReqProv:  no
     %setup -q
     %setup -q
 
 
 %build
 %build
+    define="LIBNET_LIL_ENDIAN"
+    case "%{l_target}" in
+        sparc*-* ) define="LIBNET_BIG_ENDIAN" ;;
+        *68*-*   ) define="LIBNET_BIG_ENDIAN" ;;
+    esac
     CC="%{l_cc}" \
     CC="%{l_cc}" \
-    CFLAGS="%{l_cflags -O}" \
+    CFLAGS="%{l_cflags -O} -D$define" \
     ./configure \
     ./configure \
         --prefix=%{l_prefix}
         --prefix=%{l_prefix}
     #   do not use --with-libpcap=%{l_prefix} and
     #   do not use --with-libpcap=%{l_prefix} and