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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 30 09:35:18 2010 UTC (9 years ago) by qiaomuf
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Accept "gw" by the plugin. That should fix bug #339215

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.ebuild,v 1.1 2010/11/10 12:57:16 dagger 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-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_configure() {
84 ECONF="--disable-more-warnings
85 --localstatedir=/var
86 --with-distro=gentoo
87 --with-dbus-sys-dir=/etc/dbus-1/system.d
88 --with-udev-dir=/etc/udev
89 --with-iptables=/sbin/iptables
90 $(use_enable doc gtk-doc)
91 $(use_with doc docs)
92 $(use_with resolvconf)"
93
94 # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
95 if use dhclient ; then
96 if use dhcpcd ; then
97 ECONF="${ECONF} --with-dhcpcd --without-dhclient"
98 else
99 ECONF="${ECONF} --with-dhclient --without-dhcpcd"
100 fi
101 else
102 ECONF="${ECONF} --with-dhcpcd --without-dhclient"
103 fi
104
105 # default is NSS (if none or both are specified), GnuTLS otherwise
106 if use gnutls ; then
107 if use nss ; then
108 ECONF="${ECONF} --with-crypto=nss"
109 else
110 ECONF="${ECONF} --with-crypto=gnutls"
111 fi
112 else
113 ECONF="${ECONF} --with-crypto=nss"
114 fi
115
116 econf ${ECONF}
117 }
118
119 src_install() {
120 emake DESTDIR="${D}" install || die "emake install failed"
121
122 # Need to keep the /var/run/NetworkManager directory
123 keepdir /var/run/NetworkManager
124
125 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
126 keepdir /etc/NetworkManager/dispatcher.d
127
128 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
129
130 # Add keyfile plugin support
131 keepdir /etc/NetworkManager/system-connections
132 insinto /etc/NetworkManager
133 newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf \
134 || die "newins failed"
135 }
136
137 pkg_postinst() {
138 elog "You will need to reload DBus if this is your first time installing"
139 elog "NetworkManager, or if you're upgrading from 0.7 or older."
140 elog ""
141 }

  ViewVC Help
Powered by ViewVC 1.1.20