diff options
author | Daniel Gryniewicz <dang@gentoo.org> | 2009-05-02 19:03:48 +0000 |
---|---|---|
committer | Daniel Gryniewicz <dang@gentoo.org> | 2009-05-02 19:03:48 +0000 |
commit | c7f19ebd336826b26ee73a2686d2ce6010770581 (patch) | |
tree | dded5215384dc38352824941d282b14cbd556732 /net-misc/networkmanager | |
parent | Fix policy to allow ck-based policy; bug #268223 (diff) | |
download | historical-c7f19ebd336826b26ee73a2686d2ce6010770581.tar.gz historical-c7f19ebd336826b26ee73a2686d2ce6010770581.tar.bz2 historical-c7f19ebd336826b26ee73a2686d2ce6010770581.zip |
Enable ck-based policy; bug #268223
Package-Manager: portage-2.2_rc31/cvs/Linux x86_64
Diffstat (limited to 'net-misc/networkmanager')
-rw-r--r-- | net-misc/networkmanager/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/networkmanager/Manifest | 14 | ||||
-rw-r--r-- | net-misc/networkmanager/files/networkmanager-0.7.1-confchanges.patch | 16 | ||||
-rw-r--r-- | net-misc/networkmanager/networkmanager-0.7.1-r2.ebuild | 144 |
4 files changed, 181 insertions, 2 deletions
diff --git a/net-misc/networkmanager/ChangeLog b/net-misc/networkmanager/ChangeLog index 037242e3439e..37578e3aed94 100644 --- a/net-misc/networkmanager/ChangeLog +++ b/net-misc/networkmanager/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/networkmanager # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.42 2009/04/25 14:27:22 rbu Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.43 2009/05/02 19:03:47 dang Exp $ + +*networkmanager-0.7.1-r2 (02 May 2009) + + 02 May 2009; Daniel Gryniewicz <dang@gentoo.org> + +networkmanager-0.7.1-r2.ebuild, + +files/networkmanager-0.7.1-confchanges.patch: + Enable ck-based policy; bug #268223 *networkmanager-0.7.1-r1 (25 Apr 2009) diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest index 4b7e5fe3d5d8..3d9256bfae3d 100644 --- a/net-misc/networkmanager/Manifest +++ b/net-misc/networkmanager/Manifest @@ -1,8 +1,12 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX NetworkManagerDispatcher 1198 RMD160 4345870ab40607b9aed80c8da383b604f032b98e SHA1 1dd2250c746b25566fceaab551f4ef8335fe4f55 SHA256 f8cb5d0470619cf1f0812fffcf1bf2091e3c44a757899c07164f80ddd6a2641e AUX networkmanager-0.6.5-confchanges.patch 1053 RMD160 ae76d5c029090848a9264e7559aaab90e7f3c084 SHA1 4847532aa15316a1a45e8667cd7947b514a1833f SHA256 bf3418ccbf8643d14b0413cf7a9d25290003d4443a7a051bb54f953aebede84f AUX networkmanager-0.7.0-confchanges.patch 594 RMD160 c70c7d32722aa8f1ebf62b0382fad56c7d8e21d4 SHA1 35706e9807e923732e3ac1db9c1e7d7a9f0bcc8f SHA256 ffd4fdf452a5791d938406d33b432aff591ab7e475583a66343a5c98ee6091af AUX networkmanager-0.7.0-gentoo-dhclient.patch 956 RMD160 7d7cb94256350c92e95d9adcf57cc891a84cc086 SHA1 95663877b428803bdbb540cda6effe5a29dda9c5 SHA256 da9c943969ad22a9ad465efc914644c7a6c600c0c88b8b2a8b8807ff05e5f7ae AUX networkmanager-0.7.1-bad-link.patch 655 RMD160 24a431665b604d111a9b10efa33ff066a4363aad SHA1 9de1073f681623cb156444fed53c19d03e06076d SHA256 92bf60b9a10d804d0c295e73f8525bce67e9d6e36dc7ccf5468243c21183c113 +AUX networkmanager-0.7.1-confchanges.patch 968 RMD160 7216f028613a29cf619029db3178cb0510aa3c1b SHA1 d818ddeb553862e18f0f796dcf30e53e25af0bd4 SHA256 5032ffd7fddbd9f67ef05ee0159f77e67b8c08b1aac9ef5209363fb02297d437 AUX networkmanager-resolvconf-perms.patch 532 RMD160 453ce19560e1872d1da1fa48e0c9a365025e6b1b SHA1 a81be4e9c9bac854e092b82529c4ae2c12cdf91c SHA256 e1786f34a75d2e0a27ceccb960cf975176260886f70cc3e9b172180f8a1d2e6e AUX networkmanager-updatedbackend.patch 17700 RMD160 685132b4a98843416264f06c480ff205fa87f789 SHA1 a83d2b0ea7e4a563af3d14567ba1da3605fbf654 SHA256 ee4a1583db867fd6a1851a9dd243401166f29ee9d00ad6e03e5b677915e5bf43 AUX networkmanager-use-kernel-headers.patch 466 RMD160 cd16279966d4e3594a20aa0b89d08f3baa3c2e58 SHA1 a9e269c9021888ca058b9fb72f9a71dc25a7488b SHA256 952948f41676fafcf76210cbef46728cbb219d6c851d5417d892b984fd725402 @@ -16,5 +20,13 @@ EBUILD networkmanager-0.6.5_p20070823.ebuild 2703 RMD160 f26ac7b1b243c9be2e08704 EBUILD networkmanager-0.6.6.ebuild 2621 RMD160 7516ea6287cfe7c9b98e4f8e5203bf4b1642c8e6 SHA1 6dfc5a1e518e5b4b335a28ceeb248f8e1c639175 SHA256 8dce1c81ef039889d0bdd0ec9c18a3f3da14b42f20ba6ced5639808d6708bbe5 EBUILD networkmanager-0.7.0.ebuild 3783 RMD160 81c88e8d04ef13dc350c79ce56efef3b41e7b657 SHA1 87b1c84937850409cb6c9d0e8d91913aab88fbe1 SHA256 c9f4155a47f50128feec7eb52c34741d09089a7d34482aedaf8c541fe44e92bb EBUILD networkmanager-0.7.1-r1.ebuild 4142 RMD160 17ff334306ac6ccd330e9039968632febaa32ab9 SHA1 114c1e17e8e19c54b3fdb093e38daae64b6cf98b SHA256 09b0a1eb4ca5c9a7d57619d903a47c2099b16ab33a0233994620c04b26cf47f4 -MISC ChangeLog 9667 RMD160 69cfd3c31c512717f8a26510adb31f1d5c260303 SHA1 8d4e780aa3f9068e064a5297e0e94504b7b218ba SHA256 eb6b4ed10b5b053aff319cd20d6f9d314de7625c7cdd314791aac0e94fe84d0b +EBUILD networkmanager-0.7.1-r2.ebuild 4137 RMD160 66bfc89542226825bed385cc06664218ad63e00f SHA1 e3cdea44b391a635ce2eca48f242417fbe730d93 SHA256 07522eec27137705b6f490ad7e3529bc2ca074e0077acfb617681620c4d47011 +MISC ChangeLog 9882 RMD160 ed0f458b38153ff3a3fd288876de7293dba38848 SHA1 be0296fb3a3a117123ea8cd64defbc6d0c78aa2c SHA256 d9ed26e9d398d15c0c327ea1573c9757b5cc7b0dbde236728e3e8f2fde930b7b MISC metadata.xml 981 RMD160 3bc47188c37b22140511a58a3dc9ff7b0e7ddcef SHA1 cf4a964ae0b40a0e9440799d41a8296d940bfcfd SHA256 4f0dcfe4b5a1453d76259c25f501505fa52c4b547634ce1768391eabfe13a06d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iD8DBQFJ/JktomPajV0RnrERAnRgAJ9dM/GIEiaPgcFIZCnuKRc8jaA14QCeIGQv +H+ZpuVi4NYrHgQHABSO1wKg= +=P6VK +-----END PGP SIGNATURE----- diff --git a/net-misc/networkmanager/files/networkmanager-0.7.1-confchanges.patch b/net-misc/networkmanager/files/networkmanager-0.7.1-confchanges.patch new file mode 100644 index 000000000000..ca5332815e1c --- /dev/null +++ b/net-misc/networkmanager/files/networkmanager-0.7.1-confchanges.patch @@ -0,0 +1,16 @@ +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN NetworkManager-0.7.1.orig/src/NetworkManager.conf NetworkManager-0.7.1/src/NetworkManager.conf +--- NetworkManager-0.7.1.orig/src/NetworkManager.conf 2009-03-03 11:55:47.000000000 -0500 ++++ NetworkManager-0.7.1/src/NetworkManager.conf 2009-05-01 20:04:33.000000000 -0400 +@@ -15,6 +15,12 @@ + <deny send_destination="org.freedesktop.NetworkManager" + send_interface="org.freedesktop.NetworkManager.PPP"/> + </policy> ++ <policy group="plugdev"> ++ <allow send_destination="org.freedesktop.NetworkManager"/> ++ ++ <deny send_destination="org.freedesktop.NetworkManager" ++ send_interface="org.freedesktop.NetworkManager.PPP"/> ++ </policy> + <policy context="default"> + <deny own="org.freedesktop.NetworkManager"/> + <deny send_destination="org.freedesktop.NetworkManager"/> diff --git a/net-misc/networkmanager/networkmanager-0.7.1-r2.ebuild b/net-misc/networkmanager/networkmanager-0.7.1-r2.ebuild new file mode 100644 index 000000000000..1105e14e7c41 --- /dev/null +++ b/net-misc/networkmanager/networkmanager-0.7.1-r2.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.7.1-r2.ebuild,v 1.1 2009/05/02 19:03:47 dang Exp $ + +EAPI="2" +inherit eutils +# autotools + +# NetworkManager likes itself with capital letters +MY_PN=${PN/networkmanager/NetworkManager} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent." +HOMEPAGE="http://www.gnome.org/projects/NetworkManager/" +SRC_URI="mirror://gnome/sources/NetworkManager/0.7/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~arm ~amd64 ~ppc ~x86" +IUSE="avahi doc nss gnutls dhclient dhcpcd resolvconf connection-sharing" +# modemmanager" + +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[dbus] + || ( sys-libs/e2fsprogs-libs <sys-fs/e2fsprogs-1.41.0 ) + avahi? ( net-dns/avahi[autoipd] ) + 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 ) + connection-sharing? ( + net-dns/dnsmasq + net-firewall/iptables )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/intltool + net-dialup/ppp + doc? ( >=dev-util/gtk-doc-1.8 )" + +#PDEPEND="modemmanager? ( >=net-misc/modemmanager-0.2 )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + + # Fix up the dbus conf file to use plugdev group + epatch "${FILESDIR}/${PN}-0.7.1-confchanges.patch" + + # bug #266982 + epatch "${FILESDIR}/${PN}-0.7.0-gentoo-dhclient.patch" + + # bug #267349 + epatch "${FILESDIR}/${PN}-0.7.1-bad-link.patch" + +# EPATCH_SOURCE="${WORKDIR}/modem-manager-patchset-0.7.1" +# EPATCH_SUFFIX="patch" +# use modemmanager && epatch && eautoreconf + +} + +src_configure() { + ECONF="--disable-more-warnings + --localstatedir=/var + --with-distro=gentoo + --with-dbus-sys=/etc/dbus-1/system.d + --with-udev-dir=/etc/udev + $(use_enable doc gtk-doc) + $(use_with doc docs) + $(use_with resolvconf)" + + # 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 + + econf ${ECONF} +} + +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 AUTHORS ChangeLog NEWS README TODO || 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 "If you're using dhcpcd please remove" + elog "host_name option from /etc/dhcpcd.conf" + 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"' +} |