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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 4 12:05:53 2010 UTC (9 years, 4 months ago) by dagger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Updated dhcp client configure option (bug #330659) - thanks Marco Paolone
Updated ISC dhcp client requirement to version 4.0 (bug #330319) - thanks
to Mike Auty for providing patch
(Portage version: 2.1.8.3/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.1.ebuild,v 1.1 2010/07/28 09:34:45 dagger Exp $
4
5 EAPI="2"
6
7 inherit gnome.org eutils autotools
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 http://dev.gentoo.org/~dagger/files/${PN}-ifnet.patch"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
21 IUSE="avahi bluetooth doc nss gnutls dhclient dhcpcd resolvconf connection-sharing"
22
23 RDEPEND=">=sys-apps/dbus-1.2
24 >=dev-libs/dbus-glib-0.75
25 >=net-wireless/wireless-tools-28_pre9
26 >=sys-fs/udev-145[extras]
27 >=dev-libs/glib-2.18
28 >=sys-auth/polkit-0.92
29 >=dev-libs/libnl-1.1
30 >=net-misc/modemmanager-0.2
31 >=net-wireless/wpa_supplicant-0.5.10[dbus]
32 bluetooth? ( net-wireless/bluez )
33 || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 )
34 avahi? ( net-dns/avahi[autoipd] )
35 gnutls? (
36 nss? ( >=dev-libs/nss-3.11 )
37 !nss? ( dev-libs/libgcrypt
38 net-libs/gnutls ) )
39 !gnutls? ( >=dev-libs/nss-3.11 )
40 dhclient? (
41 dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
42 !dhcpcd? ( >=net-misc/dhcp-3.0.0 ) )
43 !dhclient? ( >=net-misc/dhcpcd-4.0.0_rc3 )
44 resolvconf? ( net-dns/openresolv )
45 connection-sharing? (
46 net-dns/dnsmasq
47 net-firewall/iptables )"
48
49 DEPEND="${RDEPEND}
50 dev-util/pkgconfig
51 dev-util/intltool
52 net-dialup/ppp
53 doc? ( >=dev-util/gtk-doc-1.8 )"
54
55 S=${WORKDIR}/${MY_P}
56
57 src_prepare() {
58 # Fix up the dbus conf file to use plugdev group
59 epatch "${FILESDIR}/${P}-confchanges.patch"
60
61 # Gentoo system-plugin
62 epatch "${DISTDIR}/${PN}-ifnet.patch"
63
64 eautoreconf
65 }
66
67 src_configure() {
68 ECONF="--disable-more-warnings
69 --localstatedir=/var
70 --with-distro=gentoo
71 --with-dbus-sys-dir=/etc/dbus-1/system.d
72 --with-udev-dir=/etc/udev
73 --with-iptables=/sbin/iptables
74 $(use_enable doc gtk-doc)
75 $(use_with doc docs)
76 $(use_with resolvconf)"
77
78 # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
79 if use dhclient ; then
80 if use dhcpcd ; then
81 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
82 else
83 ECONF="${ECONF} --with-dhcp-client=dhclient"
84 fi
85 else
86 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
87 fi
88
89 # default is NSS (if none or both are specified), GnuTLS otherwise
90 if use gnutls ; then
91 if use nss ; then
92 ECONF="${ECONF} --with-crypto=nss"
93 else
94 ECONF="${ECONF} --with-crypto=gnutls"
95 fi
96 else
97 ECONF="${ECONF} --with-crypto=nss"
98 fi
99
100 econf ${ECONF}
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install || die "emake install failed"
105
106 # Need to keep the /var/run/NetworkManager directory
107 keepdir /var/run/NetworkManager
108
109 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
110 keepdir /etc/NetworkManager/dispatcher.d
111
112 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
113
114 # Add keyfile plugin support
115 keepdir /etc/NetworkManager/system-connections
116 insinto /etc/NetworkManager
117 newins "${FILESDIR}/nm-system-settings.conf" nm-system-settings.conf \
118 || die "newins failed"
119 }
120
121 pkg_postinst() {
122 elog "You will need to reload DBus if this is your first time installing"
123 elog "NetworkManager, or if you're upgrading from 0.7 or older."
124 elog ""
125 }

  ViewVC Help
Powered by ViewVC 1.1.20