net-wireless/kismet: add tinfo patch to 2016.01.1
authorZero_Chaos <zerochaos@gentoo.org>
Mon, 14 Mar 2016 18:11:12 +0000 (14:11 -0400)
committerZero_Chaos <zerochaos@gentoo.org>
Mon, 14 Mar 2016 18:11:12 +0000 (14:11 -0400)
Package-Manager: portage-2.2.27

net-wireless/kismet/files/kismet-2016.01.1-tinfo.patch [new file with mode: 0644]
net-wireless/kismet/kismet-2016.01.1.ebuild

diff --git a/net-wireless/kismet/files/kismet-2016.01.1-tinfo.patch b/net-wireless/kismet/files/kismet-2016.01.1-tinfo.patch
new file mode 100644 (file)
index 0000000..6294c80
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -423,6 +423,8 @@
+                                foundlcurses=yes curseaux="-lcurses" termcontrol="curses" )
+       fi
++      AC_SEARCH_LIBS([stdscr], tinfo ncurses,curseaux="$curseaux $ac_res")
++
+       if test "$foundlcurses" != "yes"; then
+               AC_MSG_ERROR(Failed to find libcurses or libncurses.  Install them or disable building the Kismet client with --disable-client.  Disabling the client is probably not something you want to do normally.)
+       fi
index 403a75f02f259c374a2f9001c3d59378a16274c1..596d8ab852875584833f7790002860dbbdd11685 100644 (file)
@@ -51,6 +51,8 @@ RDEPEND="${CDEPEND}
 "
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-tinfo.patch
+
        sed -i -e "s:^\(logtemplate\)=\(.*\):\1=/tmp/\2:" \
                conf/kismet.conf.in