summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-10-25 23:19:59 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2008-10-25 23:21:52 +0530
commit9cb8d05d0236b6547b5c28c5adfd2acc5bb97215 (patch)
tree7ff5600834e9259bc9a7e1825232ff3d1cd00f7f
parentOverriding gnome2.eclass -> metadata invalidation (diff)
downloadgnome-live-9cb8d05d0236b6547b5c28c5adfd2acc5bb97215.tar.gz
gnome-live-9cb8d05d0236b6547b5c28c5adfd2acc5bb97215.tar.bz2
gnome-live-9cb8d05d0236b6547b5c28c5adfd2acc5bb97215.zip
Add net-misc/NetworkManager-9999
WARNING: It didn't work for me, it will probably not work for you.
-rw-r--r--net-misc/NetworkManager/Manifest4
-rw-r--r--net-misc/NetworkManager/NetworkManager-9999.ebuild71
-rw-r--r--net-misc/NetworkManager/files/NetworkManager-confchanges.patch28
-rw-r--r--net-misc/NetworkManager/files/NetworkManager-initscript-changes.patch11
-rw-r--r--profiles/package.mask1
5 files changed, 115 insertions, 0 deletions
diff --git a/net-misc/NetworkManager/Manifest b/net-misc/NetworkManager/Manifest
new file mode 100644
index 0000000..b406911
--- /dev/null
+++ b/net-misc/NetworkManager/Manifest
@@ -0,0 +1,4 @@
+AUX NetworkManager-confchanges.patch 1555 RMD160 8282ab74a498f3b426dfcfc013b6eac188af0417 SHA1 e9bd0726785c531733fa9aa7c1edd0a9ff26011e SHA256 d9adac57929e12b2d65906c5b2b661e18e2f309b94a4750f1f4a06b4877377e0
+AUX NetworkManager-initscript-changes.patch 429 RMD160 753ca155dbc0d3d745f1ab2a00aaeb54ad3fba0c SHA1 0f6a864130718df30e4f0d9aa17680abcf461bd9 SHA256 6ca256b47f09dc7136b7921af830d7d4b00ac76845663100444b1416c8432146
+AUX NetworkManagerDispatcher 1198 RMD160 4345870ab40607b9aed80c8da383b604f032b98e SHA1 1dd2250c746b25566fceaab551f4ef8335fe4f55 SHA256 f8cb5d0470619cf1f0812fffcf1bf2091e3c44a757899c07164f80ddd6a2641e
+EBUILD NetworkManager-9999.ebuild 1862 RMD160 7d8498a1bdd3d12085ff0be68a1fd7a5371d4832 SHA1 15fb9416890128aa0b74cfe168b0ff218b3adcea SHA256 2c94f05d42a5a106e366cf37639294203bb939ecde428eaf8aa42d4de3856383
diff --git a/net-misc/NetworkManager/NetworkManager-9999.ebuild b/net-misc/NetworkManager/NetworkManager-9999.ebuild
new file mode 100644
index 0000000..d55daeb
--- /dev/null
+++ b/net-misc/NetworkManager/NetworkManager-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools gnome2 eutils gnome2-live
+
+DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent."
+HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc gnutls"
+
+PROVIDE="net-misc/networkmanager"
+# Yes, I know that configure will accept libnl 1.0-pre8, however we only have
+# 1.1 in the tree, therefore dep on it.
+RDEPEND=">=dev-libs/glib-2.10
+ >=dev-libs/dbus-glib-0.75
+ >=sys-apps/dbus-0.60
+ >=sys-apps/hal-0.5.10
+ >=dev-libs/libnl-1.1
+ >=net-wireless/wireless-tools-28_pre9
+ net-dialup/ppp
+ gnutls? ( >=net-libs/gnutls-1.2 )
+ !gnutls? ( >=dev-libs/nss-3.11 )
+ !net-misc/networkmanager"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc
+ dev-util/pkgconfig
+ dev-util/intltool"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+USE_DESTDIR="1"
+PATCHES="${PN}-confchanges.patch
+ ${PN}-initscript-changes.patch"
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-static
+ --disable-more-warnings
+ --without-resolvconf
+ --localstatedir=/var
+ --with-distro=gentoo
+ --with-resolvconf=/etc/resolv.conf
+ --with-dbus-sys-dir=/etc/dbus-1/system.d"
+
+ if use gnutls; then
+ G2CONF="${G2CONF} --with-crypto=gnutls"
+ else
+ G2CONF="${G2CONF} --with-crypto=nss"
+ fi
+}
+
+src_install() {
+ gnome2_src_install
+ # Need to keep the /var/run/NetworkManager directory
+ keepdir /var/run/NetworkManager
+}
+
+pkg_postinst() {
+ elog "You need to be in the plugdev group in order to use NetworkManager"
+ elog "Problems with your hostname getting changed?"
+ elog ""
+ elog "Add the following to /etc/dhcp/dhclient.conf"
+ elog 'send host-name "YOURHOSTNAME";'
+ elog 'supersede host-name "YOURHOSTNAME";'
+
+ elog "You will need to restart DBUS if this is your first time"
+ elog "installing NetworkManager."
+}
diff --git a/net-misc/NetworkManager/files/NetworkManager-confchanges.patch b/net-misc/NetworkManager/files/NetworkManager-confchanges.patch
new file mode 100644
index 0000000..c893175
--- /dev/null
+++ b/net-misc/NetworkManager/files/NetworkManager-confchanges.patch
@@ -0,0 +1,28 @@
+--- src/NetworkManager.conf 2007-11-29 20:08:07.000000000 +0530
++++ src/NetworkManager.conf 2008-10-21 13:50:49.000000000 +0530
+@@ -11,18 +11,18 @@
+ <allow send_destination="org.freedesktop.NetworkManager.PPP"/>
+ <allow send_interface="org.freedesktop.NetworkManager.PPP"/>
+ </policy>
+- <policy at_console="true">
++ <policy group="plugdev">
+ <allow send_destination="org.freedesktop.NetworkManager"/>
+ <allow send_interface="org.freedesktop.NetworkManager"/>
+ </policy>
+ <policy context="default">
+- <deny own="org.freedesktop.NetworkManager"/>
+- <deny send_destination="org.freedesktop.NetworkManager"/>
+- <deny send_interface="org.freedesktop.NetworkManager"/>
++ <allow own="org.freedesktop.NetworkManager"/>
++ <allow send_destination="org.freedesktop.NetworkManager"/>
++ <allow send_interface="org.freedesktop.NetworkManager"/>
+
+- <deny own="org.freedesktop.NetworkManager.PPP"/>
+- <deny send_destination="org.freedesktop.NetworkManager.PPP"/>
+- <deny send_interface="org.freedesktop.NetworkManager.PPP"/>
++ <allow own="org.freedesktop.NetworkManager.PPP"/>
++ <allow send_destination="org.freedesktop.NetworkManager.PPP"/>
++ <allow send_interface="org.freedesktop.NetworkManager.PPP"/>
+ </policy>
+
+ <limit name="max_replies_per_connection">512</limit>
diff --git a/net-misc/NetworkManager/files/NetworkManager-initscript-changes.patch b/net-misc/NetworkManager/files/NetworkManager-initscript-changes.patch
new file mode 100644
index 0000000..e234c85
--- /dev/null
+++ b/net-misc/NetworkManager/files/NetworkManager-initscript-changes.patch
@@ -0,0 +1,11 @@
+diff -Naur NetworkManager-0.7.0_p4193.orig/initscript/Gentoo/NetworkManager.in NetworkManager-0.7.0_p4193/initscript/Gentoo/NetworkManager.in
+--- NetworkManager-0.7.0_p4193.orig/initscript/Gentoo/NetworkManager.in 2008-04-27 05:54:58.000000000 +0530
++++ NetworkManager-0.7.0_p4193/initscript/Gentoo/NetworkManager.in 2008-10-21 14:41:58.000000000 +0530
+@@ -5,6 +5,7 @@
+
+ depend() {
+ need hald
++ provide net
+ }
+
+ start() {
diff --git a/profiles/package.mask b/profiles/package.mask
index 08794f9..43723f5 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -4,6 +4,7 @@
# Please append to the top of this list as ebuilds are added
+=net-misc/NetworkManager-9999
=dev-libs/libgweather-9999
=gnome-base/gnome-panel-9999
=x11-libs/pango-9999