/[gentoo-x86]/net-misc/networkmanager/networkmanager-0.9.2.0-r3.ebuild
Gentoo

Contents of /net-misc/networkmanager/networkmanager-0.9.2.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Aug 14 04:47:00 2012 UTC (7 years, 3 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Add 0.9.4.0-r7 with systemd USE flag; systemd USE flag will be disabled in 0.9.4.0-r6 to allow stabilization. Drop some old ebuilds.

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.2.0-r3.ebuild,v 1.5 2012/06/27 14:41:17 ssuominen Exp $
4
5 EAPI="4"
6 GNOME_ORG_MODULE="NetworkManager"
7
8 inherit autotools eutils gnome.org linux-info systemd user
9
10 DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent."
11 HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 IUSE="avahi bluetooth doc +nss gnutls dhclient +dhcpcd +introspection
16 kernel_linux +ppp resolvconf connection-sharing wimax"
17 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
18
19 REQUIRED_USE="
20 ^^ ( nss gnutls )
21 ^^ ( dhclient dhcpcd )"
22
23 # gobject-introspection-0.10.3 is needed due to gnome bug 642300
24 # wpa_supplicant-0.7.3-r3 is needed due to bug 359271
25 # libnl:1.1 is needed for linking to net-wireless/wimax libraries
26 # XXX: on bump, check that net-wireless/wimax is still using libnl:1.1 !
27 # TODO: Qt support?
28 COMMON_DEPEND=">=sys-apps/dbus-1.2
29 >=dev-libs/dbus-glib-0.75
30 >=net-wireless/wireless-tools-28_pre9
31 || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-147[extras] )
32 >=dev-libs/glib-2.26
33 >=sys-auth/polkit-0.97
34 dev-libs/libnl:1.1
35 >=net-wireless/wpa_supplicant-0.7.3-r3[dbus]
36 bluetooth? ( >=net-wireless/bluez-4.82 )
37 avahi? ( net-dns/avahi[autoipd] )
38 gnutls? (
39 dev-libs/libgcrypt
40 net-libs/gnutls )
41 nss? ( >=dev-libs/nss-3.11 )
42 dhclient? ( net-misc/dhcp )
43 dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
44 introspection? ( >=dev-libs/gobject-introspection-0.10.3 )
45 ppp? (
46 >=net-misc/modemmanager-0.4
47 >=net-dialup/ppp-2.4.5 )
48 resolvconf? ( net-dns/openresolv )
49 connection-sharing? (
50 net-dns/dnsmasq
51 net-firewall/iptables )
52 wimax? ( >=net-wireless/wimax-1.5.1 )"
53
54 RDEPEND="${COMMON_DEPEND}
55 sys-auth/consolekit"
56
57 DEPEND="${COMMON_DEPEND}
58 virtual/pkgconfig
59 >=dev-util/intltool-0.40
60 >=sys-devel/gettext-0.17
61 doc? ( >=dev-util/gtk-doc-1.8 )"
62
63 sysfs_deprecated_check() {
64 ebegin "Checking for SYSFS_DEPRECATED support"
65
66 if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
67 eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
68 eerror "or NetworkManager will not work correctly."
69 eerror "See http://bugs.gentoo.org/333639 for more info."
70 die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
71 fi
72 eend $?
73 }
74
75 pkg_pretend() {
76 if use kernel_linux; then
77 get_version
78 if linux_config_exists; then
79 sysfs_deprecated_check
80 else
81 ewarn "Was unable to determine your kernel .config"
82 ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
83 ewarn "See http://bugs.gentoo.org/333639 for more info."
84 fi
85
86 fi
87 }
88
89 pkg_setup() {
90 enewgroup plugdev
91 }
92
93 src_prepare() {
94 # Don't build tests
95 epatch "${FILESDIR}/${PN}-0.9_rc3-fix-tests.patch"
96 # Build against libnl:1.1 for net-wireless/wimax-1.5.2 compatibility
97 epatch "${FILESDIR}/${PN}-0.9.1.95-force-libnl1.1.patch"
98 # Migrate to openrc style
99 epatch "${FILESDIR}/${P}-ifnet-openrc-style.patch"
100 # Ignore per-user connections
101 epatch "${FILESDIR}/${P}-ifnet-ignore-user-connections.patch"
102 # Remove system prefix
103 epatch "${FILESDIR}/${P}-ifnet-remove-system-prefix.patch"
104 # Correctly deal with single quotes in /etc/conf.d/hostname
105 epatch "${FILESDIR}/${P}-ifnet-unquote-hostname.patch"
106 # Update init.d script to provide net and use inactive status if not connected
107 epatch "${FILESDIR}/${P}-init-provide-net.patch"
108
109 eautoreconf
110 default
111 }
112
113 src_configure() {
114 ECONF="--disable-more-warnings
115 --disable-static
116 --localstatedir=/var
117 --with-distro=gentoo
118 --with-dbus-sys-dir=/etc/dbus-1/system.d
119 --with-udev-dir=/lib/udev
120 --with-iptables=/sbin/iptables
121 $(use_enable doc gtk-doc)
122 $(use_enable introspection)
123 $(use_enable ppp)
124 $(use_enable wimax)
125 $(use_with dhclient)
126 $(use_with dhcpcd)
127 $(use_with doc docs)
128 $(use_with resolvconf)
129 $(systemd_with_unitdir)"
130
131 if use nss ; then
132 ECONF="${ECONF} $(use_with nss crypto=nss)"
133 else
134 ECONF="${ECONF} $(use_with gnutls crypto=gnutls)"
135 fi
136
137 econf ${ECONF}
138 }
139
140 src_install() {
141 default
142 # /var/run/NetworkManager is used by some distros, but not by Gentoo
143 rmdir -v "${ED}/var/run/NetworkManager" || die "rmdir failed"
144
145 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
146 keepdir /etc/NetworkManager/dispatcher.d
147
148 # Provide openrc net dependency only when nm is connected
149 exeinto /etc/NetworkManager/dispatcher.d
150 doexe "${FILESDIR}/10-openrc-status"
151 sed -e "s:@EPREFIX@:${EPREFIX}:g" \
152 -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
153
154 # Add keyfile plugin support
155 keepdir /etc/NetworkManager/system-connections
156 chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765
157 insinto /etc/NetworkManager
158 newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf
159
160 # Allow users in plugdev group to modify system connections
161 insinto /etc/polkit-1/localauthority/10-vendor.d
162 doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.pkla"
163
164 # Remove useless .la files
165 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
166 }
167
168 pkg_postinst() {
169 elog "To modify system network connections without needing to enter the"
170 elog "root password, add your user account to the 'plugdev' group."
171 }

  ViewVC Help
Powered by ViewVC 1.1.20