summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaciag.artur <maciag.artur@0805d722-a2c2-11dd-9b86-41075523de00>2009-01-30 13:25:21 +0000
committermaciag.artur <maciag.artur@0805d722-a2c2-11dd-9b86-41075523de00>2009-01-30 13:25:21 +0000
commitce0b63b76dcf45c2b3692d59cc4dcd6b8c40ac16 (patch)
treeca1afe34a5132824c46cb332ae5b5deaf015a28a
parenthgview (mercurial gui) live ebuild added (diff)
downloadpiczu-ce0b63b76dcf45c2b3692d59cc4dcd6b8c40ac16.tar.gz
piczu-ce0b63b76dcf45c2b3692d59cc4dcd6b8c40ac16.tar.bz2
piczu-ce0b63b76dcf45c2b3692d59cc4dcd6b8c40ac16.zip
networkmanager live ebuild (git repo)
git-svn-id: http://piczu-overlay.googlecode.com/svn/trunk@33 0805d722-a2c2-11dd-9b86-41075523de00
-rw-r--r--net-misc/networkmanager/Manifest3
-rw-r--r--net-misc/networkmanager/files/networkmanager-9999-confchanges.patch28
-rw-r--r--net-misc/networkmanager/files/nm-system-settings.conf2
-rw-r--r--net-misc/networkmanager/networkmanager-9999.ebuild143
4 files changed, 176 insertions, 0 deletions
diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest
new file mode 100644
index 0000000..e1fee6d
--- /dev/null
+++ b/net-misc/networkmanager/Manifest
@@ -0,0 +1,3 @@
+AUX networkmanager-9999-confchanges.patch 1559 RMD160 e3acd1c8f7b14b879e47f79cf5f4b0f60722baeb SHA1 0d51824e221d7efd366b7f25f5ecb26f13b3e830 SHA256 b1f5af3b2f8be533fb36d04c3ac15049c7bdc0d6eebcc1e7740487397e76cab0
+AUX nm-system-settings.conf 23 RMD160 6d66c702b345bde668a420a15716feea6005fbd1 SHA1 49ba558d20f5ca5a201e027e13b878dd5ac3569c SHA256 44b048804c7c0b8b3b0c29b8632b6ad613c397d0a1635ec918e10c0fbcdadf21
+EBUILD networkmanager-9999.ebuild 3766 RMD160 15c7c3485934ddf1a3300de7b23a19da8d7d5f75 SHA1 a0df21761608fdded03960833abb1afb26a1c653 SHA256 237c8ce506961b63aa5e4d832da2d99a03c85dc8065ced04b56f1341fb30decb
diff --git a/net-misc/networkmanager/files/networkmanager-9999-confchanges.patch b/net-misc/networkmanager/files/networkmanager-9999-confchanges.patch
new file mode 100644
index 0000000..12b109a
--- /dev/null
+++ b/net-misc/networkmanager/files/networkmanager-9999-confchanges.patch
@@ -0,0 +1,28 @@
+--- src/NetworkManager.conf.bak 2008-04-24 12:35:07.000000000 +0200
++++ src/NetworkManager.conf 2008-04-24 12:36:53.000000000 +0200
+@@ -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/nm-system-settings.conf b/net-misc/networkmanager/files/nm-system-settings.conf
new file mode 100644
index 0000000..c37b596
--- /dev/null
+++ b/net-misc/networkmanager/files/nm-system-settings.conf
@@ -0,0 +1,2 @@
+[main]
+plugins=keyfile
diff --git a/net-misc/networkmanager/networkmanager-9999.ebuild b/net-misc/networkmanager/networkmanager-9999.ebuild
new file mode 100644
index 0000000..f188bba
--- /dev/null
+++ b/net-misc/networkmanager/networkmanager-9999.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: Exp $
+
+EAPI="2"
+
+inherit git autotools gnome2 eutils
+
+EGIT_REPO_URI="git://anongit.freedesktop.org/NetworkManager/NetworkManager.git"
+
+# NetworkManager likes itself with capital letters
+MY_P=${P/networkmanager/NetworkManager}
+
+DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent."
+HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc nss gnutls dhclient dhcpcd resolvconf"
+
+RDEPEND=">=sys-apps/dbus-1.2
+ >=dev-libs/dbus-glib-0.75
+ >=sys-apps/hal-0.5.10
+ >=net-wireless/wireless-tools-28_pre9
+ >=dev-libs/glib-2.16
+ >=sys-auth/policykit-0.8
+ >=dev-libs/libnl-1.1
+ >=net-wireless/wpa_supplicant-0.5.10
+ || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 )
+
+ gnutls? (
+ nss? ( >=dev-libs/nss-3.11 )
+ !nss? ( dev-libs/libgcrypt
+ net-libs/gnutls ) )
+ !gnutls? ( >=dev-libs/nss-3.11 )
+
+ dhclient? (
+ dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
+ !dhcpcd? ( >=net-misc/dhcp-3.0.0 ) )
+ !dhclient? ( >=net-misc/dhcpcd-4.0.0_rc3 )
+
+ resolvconf? ( net-dns/openresolv )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ dev-util/intltool
+ net-dialup/ppp
+ doc? ( >=dev-util/gtk-doc-1.8 )"
+
+DOCS="AUTHORS ChangeLog NEWS README TODO"
+
+S=${WORKDIR}/${MY_P}
+
+ECONF="--disable-more-warnings \
+ --localstatedir=/var \
+ --with-distro=gentoo \
+ --with-dbus-sys-dir=/etc/dbus-1/system.d
+ $(use_enable doc gtk-doc)
+ $(use_with doc docs)
+ $(use_with resolvconf)"
+
+pkg_setup() {
+ if ! built_with_use net-wireless/wpa_supplicant dbus ; then
+ eerror "Please rebuild net-wireless/wpa_supplicant with the dbus useflag."
+ die "Fix wpa_supplicant first."
+ fi
+}
+
+src_unpack () {
+ git_src_unpack ${A}
+ cd "${S}"
+
+ # Fix up the dbus conf file to use plugdev group
+ epatch "${FILESDIR}/${P}-confchanges.patch"
+}
+
+src_configure() {
+ git_bootstrap
+
+ # default is dhcpcd (if none or both are specified), ISC dchclient otherwise
+ if use dhclient ; then
+ if use dhcpcd ; then
+ ECONF="${ECONF} --with-dhcp-client=dhcpcd"
+ else
+ ECONF="${ECONF} --with-dhcp-client=dhclient"
+ fi
+ else
+ ECONF="${ECONF} --with-dhcp-client=dhcpcd"
+ fi
+
+ # default is NSS (if none or both are specified), GnuTLS otherwise
+ if use gnutls ; then
+ if use nss ; then
+ ECONF="${ECONF} --with-crypto=nss"
+ else
+ ECONF="${ECONF} --with-crypto=gnutls"
+ fi
+ else
+ ECONF="${ECONF} --with-crypto=nss"
+ fi
+
+ ./autogen.sh ${ECONF} || die 'autogen.sh failed'
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # Need to keep the /var/run/NetworkManager directory
+ keepdir /var/run/NetworkManager
+
+ # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
+ keepdir /etc/NetworkManager/dispatcher.d
+
+ dodoc ${DOCS} || die "dodoc failed"
+
+ # Add keyfile plugin support
+ keepdir /etc/NetworkManager/system-connections
+ insinto /etc/NetworkManager
+ newins "${FILESDIR}/nm-system-settings.conf" nm-system-settings.conf \
+ || die "newins failed"
+}
+
+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 ""
+ elog "You will need to restart DBUS if this is your first time"
+ elog "installing NetworkManager."
+ elog ""
+ elog "To save system-wide settings as a user, that user needs to have the"
+ elog "right policykit privileges. You can add them by running:"
+ elog 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
+}