/[gentoo-x86]/net-misc/networkmanager/networkmanager-0.8.2-r1.ebuild
Gentoo

Contents of /net-misc/networkmanager/networkmanager-0.8.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Aug 23 23:17:09 2011 UTC (8 years, 3 months ago) by nirbheek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump for the 0.9.0 release, go forth and test. Also, remove old ebuilds and unused patches.

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

1 # Copyright 1999-2011 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.8.2-r1.ebuild,v 1.2 2011/06/09 01:41:03 sping Exp $
4
5 EAPI="2"
6
7 inherit gnome.org linux-info
8
9 # NetworkManager likes itself with capital letters
10 MY_PN=${PN/networkmanager/NetworkManager}
11 MY_P=${MY_PN}-${PV}
12
13 DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent."
14 HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
15 SRC_URI="${SRC_URI//${PN}/${MY_PN}}"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
20 IUSE="avahi bluetooth doc nss gnutls dhclient dhcpcd kernel_linux resolvconf connection-sharing"
21
22 RDEPEND=">=sys-apps/dbus-1.2
23 >=dev-libs/dbus-glib-0.75
24 >=net-wireless/wireless-tools-28_pre9
25 || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-145[extras] )
26 >=dev-libs/glib-2.18
27 >=sys-auth/polkit-0.92
28 >=dev-libs/libnl-1.1
29 >=net-misc/modemmanager-0.4
30 >=net-wireless/wpa_supplicant-0.5.10[dbus]
31 bluetooth? ( net-wireless/bluez )
32 || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 )
33 avahi? ( net-dns/avahi[autoipd] )
34 gnutls? (
35 nss? ( >=dev-libs/nss-3.11 )
36 !nss? ( dev-libs/libgcrypt
37 net-libs/gnutls ) )
38 !gnutls? ( >=dev-libs/nss-3.11 )
39 dhclient? (
40 dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
41 !dhcpcd? ( net-misc/dhcp ) )
42 !dhclient? ( >=net-misc/dhcpcd-4.0.0_rc3 )
43 resolvconf? ( net-dns/openresolv )
44 connection-sharing? (
45 net-dns/dnsmasq
46 net-firewall/iptables )"
47
48 DEPEND="${RDEPEND}
49 dev-util/pkgconfig
50 dev-util/intltool
51 >=net-dialup/ppp-2.4.5
52 doc? ( >=dev-util/gtk-doc-1.8 )"
53
54 S=${WORKDIR}/${MY_P}
55
56 sysfs_deprecated_check() {
57 ebegin "Checking for SYSFS_DEPRECATED support"
58
59 if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
60 eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
61 eerror "or NetworkManager will not work correctly."
62 eerror "See http://bugs.gentoo.org/333639 for more info."
63 die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
64 fi
65 eend $?
66 }
67
68 pkg_setup() {
69
70 if use kernel_linux; then
71 get_version
72 if linux_config_exists; then
73 sysfs_deprecated_check
74 else
75 ewarn "Was unable to determine your kernel .config"
76 ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
77 ewarn "See http://bugs.gentoo.org/333639 for more info."
78 fi
79
80 fi
81 }
82
83 src_prepare() {
84 # accept "gw" in /etc/conf.d/net (bug #339215)
85 epatch "${FILESDIR}/${P}-accept-gw.patch"
86 }
87
88 src_configure() {
89 ECONF="--disable-more-warnings
90 --localstatedir=/var
91 --with-distro=gentoo
92 --with-dbus-sys-dir=/etc/dbus-1/system.d
93 --with-udev-dir=/etc/udev
94 --with-iptables=/sbin/iptables
95 $(use_enable doc gtk-doc)
96 $(use_with doc docs)
97 $(use_with resolvconf)"
98
99 # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
100 if use dhclient ; then
101 if use dhcpcd ; then
102 ECONF="${ECONF} --with-dhcpcd --without-dhclient"
103 else
104 ECONF="${ECONF} --with-dhclient --without-dhcpcd"
105 fi
106 else
107 ECONF="${ECONF} --with-dhcpcd --without-dhclient"
108 fi
109
110 # default is NSS (if none or both are specified), GnuTLS otherwise
111 if use gnutls ; then
112 if use nss ; then
113 ECONF="${ECONF} --with-crypto=nss"
114 else
115 ECONF="${ECONF} --with-crypto=gnutls"
116 fi
117 else
118 ECONF="${ECONF} --with-crypto=nss"
119 fi
120
121 econf ${ECONF}
122 }
123
124 src_install() {
125 emake DESTDIR="${D}" install || die "emake install failed"
126
127 # Need to keep the /var/run/NetworkManager directory
128 keepdir /var/run/NetworkManager
129
130 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
131 keepdir /etc/NetworkManager/dispatcher.d
132
133 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
134
135 # Add keyfile plugin support
136 keepdir /etc/NetworkManager/system-connections
137 insinto /etc/NetworkManager
138 newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf \
139 || die "newins failed"
140 }
141
142 pkg_postinst() {
143 elog "You will need to reload DBus if this is your first time installing"
144 elog "NetworkManager, or if you're upgrading from 0.7 or older."
145 elog ""
146 }

  ViewVC Help
Powered by ViewVC 1.1.20