diff options
author | Zero_Chaos <zerochaos@gentoo.org> | 2018-08-02 16:35:44 -0400 |
---|---|---|
committer | Zero_Chaos <zerochaos@gentoo.org> | 2018-08-02 16:36:28 -0400 |
commit | 43688dd1b1d61df26559dcb91eee323c172a770c (patch) | |
tree | 6df71e9a2aae71874a98fe1758109d1ed33638f5 /net-wireless/kismet | |
parent | gnome-extra/zenity: bump to 3.28.1 (diff) | |
download | gentoo-43688dd1b1d61df26559dcb91eee323c172a770c.tar.gz gentoo-43688dd1b1d61df26559dcb91eee323c172a770c.tar.bz2 gentoo-43688dd1b1d61df26559dcb91eee323c172a770c.zip |
net-wireless/kismet: fix use flags
fix lm_sensors use flag
add networkmanager use flag
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'net-wireless/kismet')
-rw-r--r-- | net-wireless/kismet/kismet-2018.08_beta1-r1.ebuild (renamed from net-wireless/kismet/kismet-2018.08_beta1.ebuild) | 17 | ||||
-rw-r--r-- | net-wireless/kismet/kismet-9999.ebuild | 17 |
2 files changed, 22 insertions, 12 deletions
diff --git a/net-wireless/kismet/kismet-2018.08_beta1.ebuild b/net-wireless/kismet/kismet-2018.08_beta1-r1.ebuild index 1f6e8da8176c..ddf8e2e5e783 100644 --- a/net-wireless/kismet/kismet-2018.08_beta1.ebuild +++ b/net-wireless/kismet/kismet-2018.08_beta1-r1.ebuild @@ -28,7 +28,7 @@ HOMEPAGE="https://www.kismetwireless.net" LICENSE="GPL-2" SLOT="0/${PV}" -IUSE="lm_sensors +pcre selinux +suid" +IUSE="lm_sensors networkmanager +pcre selinux +suid" CDEPEND=" ${PYTHON_DEPS} @@ -67,18 +67,23 @@ src_prepare() { epatch "${FILESDIR}"/fix-setuptools.patch eapply_user + if [[ ${PV} == "9999" ]] ; then - sed -i 's#-O3##' configure.ac eautoreconf + fi + + if ! use lm_sensors; then + sed -i "s#HAVE_LMSENSORS_H=1#HAVE_LMSENSORS_H=0#" configure + fi + if use networkmanager; then + sed -i "s#havelibnm\=no#havelibnm\=yes#" configure else - sed -i 's#-O3##' configure + sed -i "s#havelibnm\=yes#havelibnm\=no#" configure fi + sed -i 's#-O3##' configure } src_configure() { - if ! use lm_sensors; then - adddeny /usr/include/sensors/sensors.h - fi econf \ $(use_enable pcre) } diff --git a/net-wireless/kismet/kismet-9999.ebuild b/net-wireless/kismet/kismet-9999.ebuild index 1f6e8da8176c..ddf8e2e5e783 100644 --- a/net-wireless/kismet/kismet-9999.ebuild +++ b/net-wireless/kismet/kismet-9999.ebuild @@ -28,7 +28,7 @@ HOMEPAGE="https://www.kismetwireless.net" LICENSE="GPL-2" SLOT="0/${PV}" -IUSE="lm_sensors +pcre selinux +suid" +IUSE="lm_sensors networkmanager +pcre selinux +suid" CDEPEND=" ${PYTHON_DEPS} @@ -67,18 +67,23 @@ src_prepare() { epatch "${FILESDIR}"/fix-setuptools.patch eapply_user + if [[ ${PV} == "9999" ]] ; then - sed -i 's#-O3##' configure.ac eautoreconf + fi + + if ! use lm_sensors; then + sed -i "s#HAVE_LMSENSORS_H=1#HAVE_LMSENSORS_H=0#" configure + fi + if use networkmanager; then + sed -i "s#havelibnm\=no#havelibnm\=yes#" configure else - sed -i 's#-O3##' configure + sed -i "s#havelibnm\=yes#havelibnm\=no#" configure fi + sed -i 's#-O3##' configure } src_configure() { - if ! use lm_sensors; then - adddeny /usr/include/sensors/sensors.h - fi econf \ $(use_enable pcre) } |