mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
net-misc/networkmanager: fixup deps and tidy ebuild
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
This commit is contained in:
@@ -16,9 +16,7 @@ HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
|
||||
|
||||
IUSE="audit bluetooth connection-sharing consolekit +dhclient elogind gnutls \
|
||||
+introspection json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf \
|
||||
selinux systemd teamd test vala +wext +wifi"
|
||||
IUSE="audit bluetooth connection-sharing consolekit +dhclient elogind gnutls +introspection json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
|
||||
|
||||
REQUIRED_USE="
|
||||
modemmanager? ( ppp )
|
||||
@@ -40,11 +38,11 @@ COMMON_DEPEND="
|
||||
>=dev-libs/libnl-3.2.8:3=[${MULTILIB_USEDEP}]
|
||||
>=sys-auth/polkit-0.106
|
||||
net-libs/libndp
|
||||
>=net-libs/libsoup-2.40:2.4=
|
||||
net-misc/curl
|
||||
net-misc/iputils
|
||||
sys-apps/util-linux[${MULTILIB_USEDEP}]
|
||||
sys-libs/readline:0=
|
||||
>=virtual/libgudev-165:=[${MULTILIB_USEDEP}]
|
||||
>=virtual/libudev-175:=[${MULTILIB_USEDEP}]
|
||||
audit? ( sys-process/audit )
|
||||
bluetooth? ( >=net-wireless/bluez-5 )
|
||||
connection-sharing? (
|
||||
@@ -66,7 +64,10 @@ COMMON_DEPEND="
|
||||
resolvconf? ( net-dns/openresolv )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
systemd? ( >=sys-apps/systemd-209:0= )
|
||||
teamd? ( >=net-misc/libteam-1.9 )
|
||||
teamd? (
|
||||
dev-libs/jansson
|
||||
>=net-misc/libteam-1.9
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
wifi? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
|
||||
@@ -92,17 +93,13 @@ DEPEND="${COMMON_DEPEND}
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
local rv=0
|
||||
if use introspection; then
|
||||
has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
|
||||
(( rv |= $? ))
|
||||
has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
|
||||
fi
|
||||
if use test; then
|
||||
has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
|
||||
has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
|
||||
(( rv |= $? ))
|
||||
fi
|
||||
return ${rv}
|
||||
}
|
||||
|
||||
sysfs_deprecated_check() {
|
||||
@@ -151,7 +148,52 @@ src_prepare() {
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=()
|
||||
local myconf=(
|
||||
--disable-more-warnings
|
||||
--disable-static
|
||||
--localstatedir=/var
|
||||
--disable-lto
|
||||
--disable-config-plugin-ibft
|
||||
# ifnet plugin always disabled until someone volunteers to actively
|
||||
# maintain and fix it
|
||||
--disable-ifnet
|
||||
--disable-qt
|
||||
--without-netconfig
|
||||
--with-dbus-sys-dir=/etc/dbus-1/system.d
|
||||
# We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
|
||||
# still not ready for removing that lib
|
||||
--with-libnm-glib
|
||||
--with-nmcli=yes
|
||||
--with-udev-dir="$(get_udevdir)"
|
||||
--with-config-plugins-default=keyfile
|
||||
--with-iptables=/sbin/iptables
|
||||
$(multilib_native_enable concheck)
|
||||
--with-crypto=$(usex nss nss gnutls)
|
||||
--with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
|
||||
--with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
|
||||
$(multilib_native_use_with audit libaudit)
|
||||
$(multilib_native_use_enable bluetooth bluez5-dun)
|
||||
$(use_with dhclient)
|
||||
# Also disable dhcpcd support as it's also completely unmaintained
|
||||
# and facing bugs like #563938 and many others
|
||||
--without-dhcpcd
|
||||
$(multilib_native_use_enable introspection)
|
||||
$(multilib_native_use_enable json json-validation)
|
||||
$(multilib_native_use_enable ppp)
|
||||
--without-libpsl
|
||||
$(multilib_native_use_with modemmanager modem-manager-1)
|
||||
$(multilib_native_use_with ncurses nmtui)
|
||||
$(multilib_native_use_with ofono)
|
||||
$(multilib_native_use_with resolvconf)
|
||||
$(multilib_native_use_with selinux)
|
||||
$(multilib_native_use_with systemd systemd-journal)
|
||||
$(multilib_native_use_enable teamd teamdctl)
|
||||
$(multilib_native_use_enable test tests)
|
||||
$(multilib_native_use_enable vala)
|
||||
--without-valgrind
|
||||
$(multilib_native_use_with wext)
|
||||
$(multilib_native_use_enable wifi)
|
||||
)
|
||||
|
||||
# Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
|
||||
if use ppp; then
|
||||
@@ -167,67 +209,11 @@ multilib_src_configure() {
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
# work-around man out-of-source brokenness, must be done before configure
|
||||
mkdir man || die
|
||||
find "${S}"/man -name '*.?' -exec ln -s {} man/ ';' || die
|
||||
ln -s "${S}/docs" docs || die
|
||||
ln -s "${S}/man" man || die
|
||||
fi
|
||||
|
||||
# ifnet plugin always disabled until someone volunteers to actively
|
||||
# maintain and fix it
|
||||
# Also disable dhcpcd support as it's also completely unmaintained
|
||||
# and facing bugs like #563938 and many others
|
||||
#
|
||||
# We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
|
||||
# still not ready for removing that lib
|
||||
myconf=(
|
||||
--disable-more-warnings
|
||||
--disable-static
|
||||
--localstatedir=/var
|
||||
--disable-lto
|
||||
--disable-config-plugin-ibft
|
||||
--disable-ifnet
|
||||
--disable-qt
|
||||
--without-netconfig
|
||||
--with-dbus-sys-dir=/etc/dbus-1/system.d
|
||||
--with-libnm-glib
|
||||
--with-nmcli=yes
|
||||
--with-udev-dir="$(get_udevdir)"
|
||||
--with-config-plugins-default=keyfile
|
||||
--with-iptables=/sbin/iptables
|
||||
$(multilib_native_enable concheck)
|
||||
--with-crypto=$(usex nss nss gnutls)
|
||||
--with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
|
||||
--with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
|
||||
$(multilib_native_use_with audit libaudit)
|
||||
$(multilib_native_use_enable bluetooth bluez5-dun)
|
||||
$(multilib_native_use_enable introspection)
|
||||
$(multilib_native_use_enable json json-validation)
|
||||
$(multilib_native_use_enable ppp)
|
||||
$(use_with dhclient)
|
||||
--without-dhcpcd
|
||||
$(multilib_native_use_with modemmanager modem-manager-1)
|
||||
$(multilib_native_use_with ncurses nmtui)
|
||||
$(multilib_native_use_with ofono)
|
||||
$(multilib_native_use_with resolvconf)
|
||||
$(multilib_native_use_with selinux)
|
||||
$(multilib_native_use_with systemd systemd-journal)
|
||||
$(multilib_native_use_enable teamd teamdctl)
|
||||
$(multilib_native_use_enable test tests)
|
||||
$(multilib_native_use_enable vala)
|
||||
--without-valgrind
|
||||
$(multilib_native_use_with wext)
|
||||
$(multilib_native_use_enable wifi)
|
||||
"${myconf[@]}"
|
||||
)
|
||||
|
||||
ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
|
||||
|
||||
# work-around gtk-doc out-of-source brokedness
|
||||
if multilib_is_native_abi; then
|
||||
local d
|
||||
for d in api libnm libnm-util libnm-glib; do
|
||||
ln -s "${S}"/docs/${d}/html docs/${d}/html || die
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
|
||||
Reference in New Issue
Block a user