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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jul 28 09:34:45 2010 UTC (9 years, 4 months ago) by dagger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Bump version to 0.8.1. Added Gentoo specyfic (GSoC 2010) ifnet plugin by Qiao Mu
(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.ebuild,v 1.5 2010/07/07 17:57:32 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 ~arm ~ppc ~ppc64 ~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}/${P}-read-hostname.patch"
62
63 # Clear NSCD cache rather then kill daemon bug 301720
64 epatch "${FILESDIR}/${P}-nscd-clear-cache.patch"
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