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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Feb 26 10:23:29 2010 UTC (9 years, 9 months ago) by dagger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
New version of NetworkManager (0.8) is officially out!
(Portage version: 2.1.7.17/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.7.999.ebuild,v 1.2 2010/01/25 17:48:26 nirbheek Exp $
4
5 EAPI="2"
6
7 inherit gnome.org eutils
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 ~x86"
20 IUSE="avahi bluetooth doc nss gnutls dhclient dhcpcd 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.2
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-3.0.0 ) )
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
52 doc? ( >=dev-util/gtk-doc-1.8 )"
53
54 S=${WORKDIR}/${MY_P}
55
56 src_prepare() {
57 # Fix up the dbus conf file to use plugdev group
58 epatch "${FILESDIR}/${PN}-0.7.1-confchanges.patch"
59
60 # Hack keyfile plugin to read hostname file, fixes bug 176873
61 epatch "${FILESDIR}/${PN}-0.8-read-hostname.patch"
62 }
63
64 src_configure() {
65 ECONF="--disable-more-warnings
66 --localstatedir=/var
67 --with-distro=gentoo
68 --with-dbus-sys-dir=/etc/dbus-1/system.d
69 --with-udev-dir=/etc/udev
70 --with-iptables=/sbin/iptables
71 $(use_enable doc gtk-doc)
72 $(use_with doc docs)
73 $(use_with resolvconf)"
74
75 # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
76 if use dhclient ; then
77 if use dhcpcd ; then
78 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
79 else
80 ECONF="${ECONF} --with-dhcp-client=dhclient"
81 fi
82 else
83 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
84 fi
85
86 # default is NSS (if none or both are specified), GnuTLS otherwise
87 if use gnutls ; then
88 if use nss ; then
89 ECONF="${ECONF} --with-crypto=nss"
90 else
91 ECONF="${ECONF} --with-crypto=gnutls"
92 fi
93 else
94 ECONF="${ECONF} --with-crypto=nss"
95 fi
96
97 econf ${ECONF}
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die "emake install failed"
102
103 # Need to keep the /var/run/NetworkManager directory
104 keepdir /var/run/NetworkManager
105
106 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
107 keepdir /etc/NetworkManager/dispatcher.d
108
109 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
110
111 # Add keyfile plugin support
112 keepdir /etc/NetworkManager/system-connections
113 insinto /etc/NetworkManager
114 newins "${FILESDIR}/nm-system-settings.conf" nm-system-settings.conf \
115 || die "newins failed"
116 }
117
118 pkg_postinst() {
119 elog "You will need to restart DBUS if this is your first time"
120 elog "installing NetworkManager."
121 elog ""
122 elog "To save system-wide settings as a user, that user needs to have the"
123 elog "right policykit privileges. You can add them by running:"
124 elog 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
125 }

  ViewVC Help
Powered by ViewVC 1.1.20