pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39739: pkgsrc/net/kismet update to version kismet-2008-05-R1



>Number:         39739
>Category:       pkg
>Synopsis:       pkgsrc/net/kismet update to version kismet-2008-05-R1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 13 15:10:01 +0000 2008
>Originator:     Mustafa Dogan
>Release:        NetBSD 4.0_STABLE
>Organization:
Ankara University
>Environment:
NetBSD md.politics.ankara.edu.tr 4.0_STABLE NetBSD 4.0_STABLE (GENERIC_LAPTOP) 
#0: Tue Jun 10 23:27:23 EEST 2008  
root%md.politics.ankara.edu.tr@localhost:/root/OBJ/sys/arch/i386/compile/GENERIC_LAPTOP
 i386
>Description:
Kismet is an 802.11 layer2 wireless network detector, sniffer, and intrusion 
detection system. NetBSD pkgsrc has version kismet-2006-04-R1; TODO list has 
outdated Kismet entry, kismet-2007.01.1b; but, latest stable Kismet version is 
kismet-2008-05-R1.
I tried to update Kismet package to latest version. It compiles and runs on 
NetBSD 4 Stable. I couldn't try it on different archs and OSes but, I think it 
will work.
Could you review my changes and update Kismet package if applicable?
Thanks.

PS: Patches below are adapted from pkgsrc/net/kismet package, and removed 
patch-ab and patch-ad.
>How-To-Repeat:

>Fix:
Here is diffs:
========================================
--- kismet/Makefile     2007-07-04 23:54:50.000000000 +0300
+++ kismet-new/Makefile 2008-10-12 21:19:18.000000000 +0300
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.7 2007/07/04 20:54:50 jlam Exp $

-DISTNAME=              kismet-2006-04-R1
-PKGNAME=               kismet-2006.04.01
-PKGREVISION=           2
+DISTNAME=              kismet-2008-05-R1
+PKGNAME=               kismet-2008.05.01
 CATEGORIES=            net
 MASTER_SITES=          http://www.kismetwireless.net/code/

========================================
--- kismet/PLIST        2006-08-03 18:09:49.000000000 +0300
+++ kismet-new/PLIST    2008-10-12 22:45:26.000000000 +0300
@@ -1,8 +1,16 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/03 15:09:49 salo Exp $
+@comment $NetBSD$
+bin/gpsmap
+bin/gpsmap-helper-earthamaps
 bin/kismet
 bin/kismet_client
 bin/kismet_drone
 bin/kismet_server
+etc/kismet/ap_manuf
+etc/kismet/client_manuf
+etc/kismet/kismet.conf
+etc/kismet/kismet_drone.conf
+etc/kismet/kismet_ui.conf
+man/man1/gpsmap.1
 man/man1/kismet.1
 man/man1/kismet_drone.1
 man/man5/kismet.conf.5
@@ -20,3 +28,4 @@ share/kismet/wav/traffic.wav
 @dirrm share/kismet/wav
 @dirrm share/kismet
 @dirrm share/examples/kismet
+@dirrm etc/kismet

========================================
patch-aa
$NetBSD$
--- configure.orig      2008-10-12 20:16:06.000000000 +0300
+++ configure   2008-10-12 20:24:34.000000000 +0300
@@ -6255,7 +6255,7 @@ fi


 # Do we use uclibc++?
-if test "$foundcxxl"x == "x"; then
+if test "$foundcxxl"x = "x"; then
        { echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
 if test "${ac_cv_lib_stdcpp_main+set}" = set; then
@@ -6317,7 +6317,7 @@ fi

 fi

-if test "$foundcxxl"x == "x"; then
+if test "$foundcxxl"x = "x"; then
        { { echo "$as_me:$LINENO: error: Neither uclibc uClibc++ or standard 
gcc stdc++ libraries found." >&5
 echo "$as_me: error: Neither uclibc uClibc++ or standard gcc stdc++ libraries 
found." >&2;}
    { (exit 1); exit 1; }; }
@@ -8384,7 +8384,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */

            #include <stdio.h>
-               #include <sys/types.h>
+           #include <sys/types.h>
            #include <sys/socket.h>
            #include <net/if.h>
            #include <net/if_media.h>
@@ -9608,13 +9608,13 @@ echo "${ECHO_T}$ac_cv_header_pthread_h"

 fi
 if test $ac_cv_header_pthread_h = yes; then
-  { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
+  { echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} 
${PTHREAD_LIBS}" >&5
+echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} 
${PTHREAD_LIBS}... $ECHO_C" >&6; }
 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -9690,7 +9690,7 @@ fi
 echo "$as_me: WARNING: *** GPSMap will be built without pthread support. ***" 
>&2;};
                threadlib=""
        else
-               threadlib="-lpthread"
+               threadlib="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
        fi

        # Update the companion to this...

========================================
patch-ac
$NetBSD$
--- pcapsource.cc.orig  2008-10-12 20:26:29.000000000 +0300
+++ pcapsource.cc       2008-10-12 21:42:53.000000000 +0300
@@ -51,10 +51,16 @@ typedef unsigned long u64;
 #endif

 #ifdef HAVE_RADIOTAP
+#if defined(__DragonFly__)
+#include <netproto/802_11/ieee80211.h>
+#include <netproto/802_11/ieee80211_ioctl.h>
+#include <netproto/802_11/ieee80211_radiotap.h>
+#elif defined HAVE_RADIOTAP
 #include <net80211/ieee80211.h>
 #include <net80211/ieee80211_ioctl.h>
 #include <net80211/ieee80211_radiotap.h>
 #endif
+#endif

 #endif

@@ -72,7 +78,7 @@ extern "C" {
 }
 #endif

-#ifdef SYS_FREEBSD
+#if defined(SYS_FREEBSD) || defined(__DragonFly__)
 #include <sys/socket.h>
 #include <net/if.h>
 #include <net/if_media.h>
@@ -162,7 +168,7 @@ int PcapSource::OpenSource() {
         return -1; // Error is already in errstr

     #if defined (SYS_OPENBSD) || defined(SYS_NETBSD) || defined(SYS_FREEBSD) \
-               || defined(SYS_DARWIN)
+               || defined(SYS_DARWIN) || defined(__DragonFly__)
        /* OSX hack which should work on other platforms still, cascade through
         * desired DLTs and the "best one" should stick.  We try in the order we
         * least want - 80211, avs, then radiotap. */
@@ -247,7 +253,7 @@ int PcapSource::DatalinkType() {
     datalink_type = pcap_datalink(pd);

     // Blow up if we're not valid 802.11 headers
-#if (defined(SYS_FREEBSD) || defined(SYS_OPENBSD)) || defined(SYS_NETBSD)
+#if (defined(SYS_FREEBSD) || defined(SYS_OPENBSD)) || defined(SYS_NETBSD) || 
defined(__DragonFly__)
     if (datalink_type == DLT_EN10MB) {
         fprintf(stderr, "WARNING:  pcap reports link type of EN10MB but we'll 
fake "
                 "it on BSD.\n"
@@ -1167,7 +1173,7 @@ carrier_type PcapSourceWrt54g::IEEE80211
 }
 #endif

-#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD) || defined(__DragonFly__)))
 int PcapSourceRadiotap::OpenSource() {
        // XXX this is a hack to avoid duplicating code
        int s = PcapSource::OpenSource();
@@ -1289,7 +1295,7 @@ KisPacketSource *pcapsource_openbsdprism
 }
 #endif

-#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD) || defined(__DragonFly__)))
 KisPacketSource *pcapsource_radiotap_registrant(string in_name, string 
in_device,
                                                      char *in_err) {
     return new PcapSourceRadiotap(in_name, in_device);
@@ -2997,7 +3003,7 @@ int chancontrol_openbsd_prism2(const cha
 }
 #endif

-#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD) || defined(__DragonFly__)))
 RadiotapBSD::RadiotapBSD(const char *name) : ifname(name) {
     s = -1;
 }
@@ -3148,7 +3154,7 @@ bool RadiotapBSD::set80211(int type, int
     return true;
 }

-#elif defined(SYS_FREEBSD) /* FreeBSD has a generic 802.11 ioctl */
+#elif defined(SYS_FREEBSD) || defined(__DragonFly__) /* FreeBSD has a generic 
802.11 ioctl */

 bool RadiotapBSD::get80211(int type, int& val, int len, u_int8_t *data) {
     struct ieee80211req ireq;
@@ -3198,7 +3204,7 @@ bool RadiotapBSD::getifflags(int& flags)
     }
 #if defined(SYS_FREEBSD)
     flags = (ifr.ifr_flags & 0xffff) | (ifr.ifr_flagshigh << 16);
-#elif defined(SYS_OPENBSD) || defined(SYS_NETBSD)
+#elif defined(SYS_OPENBSD) || defined(SYS_NETBSD) || defined(__DragonFly__)
     flags = ifr.ifr_flags;
 #endif
     return true;
@@ -3215,7 +3221,7 @@ bool RadiotapBSD::setifflags(int flags)
 #if defined(SYS_FREEBSD)
     ifr.ifr_flags = flags & 0xffff;
     ifr.ifr_flagshigh = flags >> 16;
-#elif defined(SYS_OPENBSD) || (SYS_NETBSD)
+#elif defined(SYS_OPENBSD) || (SYS_NETBSD) || defined(__DragonFly__)
     ifr.ifr_flags = flags;
 #endif
     if (ioctl(s, SIOCSIFFLAGS, (caddr_t)&ifr) < 0) {
@@ -3246,7 +3252,7 @@ bool RadiotapBSD::monitor_enable(int ini
     }
 #if defined(SYS_FREEBSD)
     if (!setifflags(prev_flags | IFF_PPROMISC | IFF_UP)) {
-#elif defined(SYS_OPENBSD) || defined(SYS_NETBSD)
+#elif defined(SYS_OPENBSD) || defined(SYS_NETBSD) || defined(__DragonFly__)
     if (!setifflags(prev_flags | IFF_PROMISC | IFF_UP)) {
 #endif
        (void) set80211(IEEE80211_IOC_CHANNEL, prev_chan, 0, NULL);

========================================
patch-ae
$NetBSD$
--- Makefile.in.orig    2008-10-12 20:43:45.000000000 +0300
+++ Makefile.in 2008-10-12 22:36:43.000000000 +0300
@@ -139,57 +139,39 @@ checkuiconfig:
        fi

 binuserinstall:
-       install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(PS) $(BIN)/$(PS);
-       install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(DRONE) $(BIN)/$(DRONE);
+       $(BSD_INSTALL_PROGRAM) $(PS) $(BIN)/$(PS);
+       $(BSD_INSTALL_PROGRAM) $(DRONE) $(BIN)/$(DRONE);

 binsuidinstall:
        install -o $(INSTUSR) -g $(INSTGRP) -s -m 4755 $(PS) $(BIN)/$(PS);
        install -o $(INSTUSR) -g $(INSTGRP) -s -m 4755 $(DRONE) $(BIN)/$(DRONE);

 commoninstall:
-       mkdir -p $(ETC)
-       mkdir -p $(BIN)
-
-       install -o $(INSTUSR) -g $(INSTGRP) -m 755 $(WRAP) $(BIN)/kismet
-       install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(NC) $(BIN)/$(NC)
-       # install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(HOPPER) 
$(BIN)/$(HOPPER)
-       @if test "$(ZAURUS)" = "yes"; then \
-               install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(BUZZER) 
$(BIN)/buzzme; \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(BUZZER) 
$(BIN)/buzzme; \
-       fi
-#install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/kismet_monitor 
$(BIN)/kismet_monitor
-#install -o $(INSTUSR) -g $(INSTGRP) -m 755 scripts/kismet_unmonitor 
$(BIN)/kismet_unmonitor
-       mkdir -p $(MAN)/man1
-       install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet.1 
$(MAN)/man1/kismet.1
-       # install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_monitor.1 
$(MAN)/man1/kismet_monitor.1
-       # install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_hopper.1 
$(MAN)/man1/kismet_hopper.1
-       install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_drone.1 
$(MAN)/man1/kismet_drone.1
-       mkdir -p $(MAN)/man5
-       install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet.conf.5 
$(MAN)/man5/kismet.conf.5
-       install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_ui.conf.5 
$(MAN)/man5/kismet_ui.conf.5
-       install -o $(INSTUSR) -g $(MANGRP) -m 644 man/kismet_drone.conf.5 
$(MAN)/man5/kismet_drone.conf.5
+       $(BSD_INSTALL_PROGRAM_DIR) $(BIN)
+       $(BSD_INSTALL_SCRIPT) $(WRAP) $(BIN)/kismet
+       $(BSD_INSTALL_PROGRAM) $(NC) $(BIN)/$(NC)
+#      @if test "$(ZAURUS)" = "yes"; then \
+#              $(BSD_INSTALL_PROGRAM) $(BUZZER) $(BIN)/buzzme; \
+#      fi
+       $(BSD_INSTALL_MAN_DIR) $(MAN)/man1
+       $(BSD_INSTALL_MAN) man/kismet.1 $(MAN)/man1/kismet.1
+       $(BSD_INSTALL_MAN) man/kismet_drone.1 $(MAN)/man1/kismet_drone.1
+       $(BSD_INSTALL_MAN_DIR) $(MAN)/man5
+       $(BSD_INSTALL_MAN) man/kismet.conf.5 $(MAN)/man5/kismet.conf.5
+       $(BSD_INSTALL_MAN) man/kismet_ui.conf.5 $(MAN)/man5/kismet_ui.conf.5
+       $(BSD_INSTALL_MAN) man/kismet_drone.conf.5 
$(MAN)/man5/kismet_drone.conf.5

        @if test "$(GPSLBUILD)" = "$(GPSL)"; then \
-               install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(GPSL) 
$(BIN)/$(GPSL); \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -s -m 755 $(GPSL) 
$(BIN)/$(GPSL); \
-               install -o $(INSTUSR) -g $(INSTGRP) -m 755 
scripts/gpsmap-helper-earthamaps $(BIN)/gpsmap-helper-earthamaps; \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -m 755 
scripts/gpsmap-helper-earthamaps $(BIN)/gpsmap-helper-earthamaps; \
-               install -o $(INSTUSR) -g $(MANGRP) -m 644 man/gpsmap.1 
$(MAN)/man1/gpsmap.1; \
-               echo install -o $(INSTUSR) -g $(MANGRP) -m 644 man/gpsmap.1 
$(MAN)/man1/gpsmap.1; \
-       fi
-
-       mkdir -p $(WAV)
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 wav/new_network.wav 
$(WAV)/new_network.wav
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 wav/traffic.wav 
$(WAV)/traffic.wav
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 wav/junk_traffic.wav 
$(WAV)/junk_traffic.wav
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 wav/alert.wav 
$(WAV)/alert.wav
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 conf/ap_manuf 
$(ETC)/ap_manuf;
-       install -o $(INSTUSR) -g $(INSTGRP) -m 644 conf/client_manuf 
$(ETC)/client_manuf;
-
-       @if test -f $(BIN)/kismet_curses; then \
-               echo "Removing old kismet_curses binary.  The panels frontend 
is now kismet_client."; \
-               rm $(BIN)/kismet_curses; \
-       fi
+               $(BSD_INSTALL_PROGRAM) $(GPSL) $(BIN)/$(GPSL); \
+               $(BSD_INSTALL_SCRIPT) scripts/gpsmap-helper-earthamaps 
$(BIN)/gpsmap-helper-earthamaps; \
+               $(BSD_INSTALL_MAN) man/gpsmap.1 $(MAN)/man1/gpsmap.1; \
+       fi
+
+       $(BSD_INSTALL_DATA_DIR) $(WAV)
+       $(BSD_INSTALL_DATA) wav/new_network.wav $(WAV)/new_network.wav
+       $(BSD_INSTALL_DATA) wav/traffic.wav $(WAV)/traffic.wav
+       $(BSD_INSTALL_DATA) wav/junk_traffic.wav $(WAV)/junk_traffic.wav
+       $(BSD_INSTALL_DATA) wav/alert.wav $(WAV)/alert.wav

 suidinstall: $(PS) $(DRONE) $(WRAP) $(NC) $(GPSLBUILD) $(ZAURUSBUILD)
        $(MAKE) -e commoninstall
@@ -224,30 +206,7 @@ suidinstall: $(PS) $(DRONE) $(WRAP) $(NC
        @echo "YOUR WIRELESS NETWORK CONNECTION.  IF YOU HAVE ANY UNTRUSTED 
USERS ON YOUR "
        @echo "SYSTEM DO NOT INSTALL KISMET AS SUID ROOT."

-install: $(PS) $(DRONE) $(NC) $(WRAP) $(GPSLBUILD) $(ZAURUSBUILD)
-       $(MAKE) -e commoninstall
-       $(MAKE) -e binuserinstall
-       @if test -f $(ETC)/kismet.conf; then \
-               $(MAKE) -e checkconfig; \
-    else \
-               install -o $(INSTUSR) -g $(INSTGRP) -m 644 conf/kismet.conf 
$(ETC)/kismet.conf;  \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -m 644 
conf/kismet.conf $(ETC)/kismet.conf;  \
-               echo "Installed config into $(ETC)/kismet.conf."; \
-       fi
-       @if test -f $(ETC)/kismet_drone.conf; then \
-               $(MAKE) -e checkdroneconfig; \
-    else \
-               install -o $(INSTUSR) -g $(INSTGRP) -m 644 
conf/kismet_drone.conf $(ETC)/kismet_drone.conf;  \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -m 644 
conf/kismet_drone.conf $(ETC)/kismet_drone.conf;  \
-               echo "Installed drone config into $(ETC)/kismet_drone.conf."; \
-       fi
-       @if test -f $(ETC)/kismet_ui.conf; then \
-               $(MAKE) -e checkuiconfig; \
-       else \
-               install -o $(INSTUSR) -g $(INSTGRP) -m 644 conf/kismet_ui.conf 
$(ETC)/kismet_ui.conf;  \
-               echo install -o $(INSTUSR) -g $(INSTGRP) -m 644 
conf/kismet_ui.conf $(ETC)/kismet_ui.conf;  \
-               echo "Installed UI config into $(ETC)/kismet_ui.conf."; \
-       fi
+install: $(PS) $(DRONE) $(NC) $(WRAP) $(GPSLBUILD) $(ZAURUSBUILD) 
commoninstall binuserinstall
        @echo "Installed kismet into $(BIN)/."
        @echo "If you have not done so already, read the README file and the 
FAQ file.  Additional"
        @echo "documentation is in the docs/ directory.  You MUST edit 
$(ETC)/kismet.conf "

========================================
patch-af
$NetBSD$
--- kis_packsources.cc.orig     2008-05-20 11:47:13.000000000 +0300
+++ kis_packsources.cc  2008-10-12 21:02:08.000000000 +0300
@@ -345,7 +345,7 @@ int RegisterKismetSources(Packetsourcetr
     REG_EMPTY_CARD(sourcetracker, "prism2_openbsd");
 #endif

-#if (defined(HAVE_RADIOTAP) && defined(HAVE_LIBPCAP) && (defined(SYS_NETBSD) 
|| defined(SYS_OPENBSD) || defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && defined(HAVE_LIBPCAP) && (defined(SYS_NETBSD) 
|| defined(SYS_OPENBSD) || defined(SYS_FREEBSD) || defined(__DragonFly__)))
     sourcetracker->RegisterPacketsource("radiotap_bsd_ab", 1, "IEEE80211ab", 6,
                                         pcapsource_radiotap_registrant,
                                         monitor_bsd, unmonitor_bsd,

========================================
patch-ag
$NetBSD$
--- pcapsource.h.orig   2008-10-12 21:04:30.000000000 +0300
+++ pcapsource.h        2008-10-12 21:05:15.000000000 +0300
@@ -395,7 +395,7 @@ public:
 };
 #endif

-#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD) || defined(__DragonFly__)))
 class RadiotapBSD {
 public:
     RadiotapBSD(const char *ifname);
@@ -584,7 +584,7 @@ int chancontrol_openbsd_prism2(const cha
                                void *in_ext);
 #endif

-#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD)))
+#if (defined(HAVE_RADIOTAP) && (defined(SYS_NETBSD) || defined(SYS_OPENBSD) || 
defined(SYS_FREEBSD) || defined(__DragonFly__)))
 int monitor_bsd(const char *in_dev, int initch, char *in_err, void **in_if, 
void *in_ext);
 int unmonitor_bsd(const char *in_dev, int initch, char *in_err, void **in_if, 
void *in_ext);
 int chancontrol_bsd(const char *in_dev, int in_ch, char *in_err, void *in_ext);

========================================
patch-ah
$NetBSD$
--- configure.in.orig   2008-10-12 21:05:48.000000000 +0300
+++ configure.in        2008-10-12 21:06:39.000000000 +0300
@@ -269,12 +269,12 @@ AC_CHECK_LIB([uClibc++], [main],
                         foundcxxl="uclibc" LIBS="$LIBS -luClibc++")

 # Do we use uclibc++?
-if test "$foundcxxl"x == "x"; then
+if test "$foundcxxl"x = "x"; then
        AC_CHECK_LIB([stdc++], [main],
                                 foundcxxl="stdc++" LIBS="$LIBS -lstdc++ 
-lm",,"-lm")
 fi

-if test "$foundcxxl"x == "x"; then
+if test "$foundcxxl"x = "x"; then
        AC_MSG_ERROR(Neither uclibc uClibc++ or standard gcc stdc++ libraries 
found.)
 fi



Home | Main Index | Thread Index | Old Index