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

Contents of /net-misc/networkmanager/networkmanager-0.7.1_p20090824.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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-2009 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.1_p20090824.ebuild,v 1.1 2009/08/24 13:11:44 dagger Exp $
4
5 EAPI="2"
6 inherit eutils
7 # autotools
8
9 #PATCH_VERSION="1b"
10
11 # NetworkManager likes itself with capital letters
12 MY_PN=${PN/networkmanager/NetworkManager}
13 MY_P=${MY_PN}-${PV}
14
15 #PATCHNAME="${MY_P}-gentoo-patches-${PATCH_VERSION}"
16
17 DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent."
18 HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
19 SRC_URI="http://dev.gentoo.org/~dagger/files/${MY_P}.tar.bz2"
20 # http://dev.gentoo.org/~dagger/files/${PATCHNAME}.tar.bz2"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 KEYWORDS="~arm ~amd64 ~ppc ~x86"
25 IUSE="avahi doc nss gnutls dhclient dhcpcd resolvconf connection-sharing"
26 # modemmanager"
27
28 RDEPEND=">=sys-apps/dbus-1.2
29 >=dev-libs/dbus-glib-0.75
30 >=sys-apps/hal-0.5.10
31 >=net-wireless/wireless-tools-28_pre9
32 >=dev-libs/glib-2.16
33 <sys-auth/policykit-0.92
34 >=dev-libs/libnl-1.1
35 >=net-wireless/wpa_supplicant-0.5.10[dbus]
36 || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 )
37 avahi? ( net-dns/avahi[autoipd] )
38 gnutls? (
39 nss? ( >=dev-libs/nss-3.11 )
40 !nss? ( dev-libs/libgcrypt
41 net-libs/gnutls ) )
42 !gnutls? ( >=dev-libs/nss-3.11 )
43 dhclient? (
44 dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
45 !dhcpcd? ( >=net-misc/dhcp-3.0.0 ) )
46 !dhclient? ( >=net-misc/dhcpcd-4.0.0_rc3 )
47 resolvconf? ( net-dns/openresolv )
48 connection-sharing? (
49 net-dns/dnsmasq
50 net-firewall/iptables )"
51
52 DEPEND="${RDEPEND}
53 dev-util/pkgconfig
54 dev-util/intltool
55 net-dialup/ppp
56 doc? ( >=dev-util/gtk-doc-1.8 )"
57
58 #PDEPEND="modemmanager? ( >=net-misc/modemmanager-0.2 )"
59
60 S=${WORKDIR}/${MY_P}
61
62 src_prepare() {
63
64 # Fix up the dbus conf file to use plugdev group
65 epatch "${FILESDIR}/${PN}-0.7.1-confchanges.patch"
66
67 # EPATCH_SOURCE="${WORKDIR}/nm_0.7.1_patchset_${PATCH_VERSION}"
68 # EPATCH_SUFFIX="patch"
69 # epatch && eautoreconf
70
71 }
72
73 src_configure() {
74 ECONF="--disable-more-warnings
75 --localstatedir=/var
76 --with-distro=gentoo
77 --with-dbus-sys-dir=/etc/dbus-1/system.d
78 $(use_enable doc gtk-doc)
79 $(use_with doc docs)
80 $(use_with resolvconf)"
81
82 # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
83 if use dhclient ; then
84 if use dhcpcd ; then
85 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
86 else
87 ECONF="${ECONF} --with-dhcp-client=dhclient"
88 fi
89 else
90 ECONF="${ECONF} --with-dhcp-client=dhcpcd"
91 fi
92
93 # default is NSS (if none or both are specified), GnuTLS otherwise
94 if use gnutls ; then
95 if use nss ; then
96 ECONF="${ECONF} --with-crypto=nss"
97 else
98 ECONF="${ECONF} --with-crypto=gnutls"
99 fi
100 else
101 ECONF="${ECONF} --with-crypto=nss"
102 fi
103
104 econf ${ECONF}
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install || die "emake install failed"
109
110 # Need to keep the /var/run/NetworkManager directory
111 keepdir /var/run/NetworkManager
112
113 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
114 keepdir /etc/NetworkManager/dispatcher.d
115
116 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
117
118 # Add keyfile plugin support
119 keepdir /etc/NetworkManager/system-connections
120 insinto /etc/NetworkManager
121 newins "${FILESDIR}/nm-system-settings.conf" nm-system-settings.conf \
122 || die "newins failed"
123 insinto /etc/udev/rules.d
124 newins callouts/77-nm-probe-modem-capabilities.rules 77-nm-probe-modem-capabilities.rules
125 rm -rf "${D}"/lib/udev/rules.d
126 }
127
128 pkg_postinst() {
129 elog "You will need to restart DBUS if this is your first time"
130 elog "installing NetworkManager."
131 elog ""
132 elog "To save system-wide settings as a user, that user needs to have the"
133 elog "right policykit privileges. You can add them by running:"
134 elog 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
135 }

  ViewVC Help
Powered by ViewVC 1.1.20