From 2a9bcc99d358caa4182f646db0dd4659bd4933a8 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 20 Oct 2009 04:05:33 +0000 Subject: fixed iproute2 support for bug 289762. Removed oldnet from metadata. (Portage version: 2.2_rc46/cvs/Linux i686) --- sys-apps/openrc/ChangeLog | 10 +- .../files/0.5.2/0005-fix-iproute2-support.patch | 31 ++ sys-apps/openrc/metadata.xml | 3 - sys-apps/openrc/openrc-0.5.2-r1.ebuild | 370 +++++++++++++++++++++ 4 files changed, 410 insertions(+), 4 deletions(-) create mode 100644 sys-apps/openrc/files/0.5.2/0005-fix-iproute2-support.patch create mode 100644 sys-apps/openrc/openrc-0.5.2-r1.ebuild (limited to 'sys-apps') diff --git a/sys-apps/openrc/ChangeLog b/sys-apps/openrc/ChangeLog index 4eabae533565..9c94ccf10867 100644 --- a/sys-apps/openrc/ChangeLog +++ b/sys-apps/openrc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-apps/openrc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.86 2009/10/19 02:10:10 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.87 2009/10/20 04:05:32 williamh Exp $ + +*openrc-0.5.2-r1 (20 Oct 2009) + + 20 Oct 2009; William Hubbs + +files/0.5.2/0005-fix-iproute2-support.patch, +openrc-0.5.2-r1.ebuild, + metadata.xml: + Fixed iproute2 support for bug #289762. + Removed oldnet from metadata. *openrc-0.5.2 (19 Oct 2009) diff --git a/sys-apps/openrc/files/0.5.2/0005-fix-iproute2-support.patch b/sys-apps/openrc/files/0.5.2/0005-fix-iproute2-support.patch new file mode 100644 index 000000000000..e204267b63d9 --- /dev/null +++ b/sys-apps/openrc/files/0.5.2/0005-fix-iproute2-support.patch @@ -0,0 +1,31 @@ +From aa6d81180167192ad41a73e896f58db89a81d371 Mon Sep 17 00:00:00 2001 +From: William Hubbs +Date: Mon, 19 Oct 2009 22:25:40 -0500 +Subject: [PATCH] fix iproute2 support for gentoo bug 289762 + +--- + init.d/network.in | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/init.d/network.in b/init.d/network.in +index 5e60963..396c67d 100644 +--- a/init.d/network.in ++++ b/init.d/network.in +@@ -109,11 +109,11 @@ runip() + local int="$1" err= + + shift +- err=$(LC_ALL=C ip address add "$@" dev "$int" 2>&1) ++ err=$(LC_ALL=C ip address add "$@" dev "$int" brd + 2>&1) + if [ -z "$err" ]; then + # ip does not bring up the interface when adding addresses +- if ! intup; then +- ip set link up dev "$int" ++ if ! $intup; then ++ ip link set "$int" up + intup=true + fi + return 0 +-- +1.6.4.4 + diff --git a/sys-apps/openrc/metadata.xml b/sys-apps/openrc/metadata.xml index 3f7a84ffe5e6..8ec5548a3597 100644 --- a/sys-apps/openrc/metadata.xml +++ b/sys-apps/openrc/metadata.xml @@ -7,7 +7,4 @@ Roy Marples Upstream - please CC him on valid bugs - - Install the old type of network init-scripts with a symlink net.IFACE for each interface - diff --git a/sys-apps/openrc/openrc-0.5.2-r1.ebuild b/sys-apps/openrc/openrc-0.5.2-r1.ebuild new file mode 100644 index 000000000000..e3ab44ee9855 --- /dev/null +++ b/sys-apps/openrc/openrc-0.5.2-r1.ebuild @@ -0,0 +1,370 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.5.2-r1.ebuild,v 1.1 2009/10/20 04:05:32 williamh Exp $ + +EAPI="1" + +inherit eutils flag-o-matic multilib toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://roy.marples.name/openrc.git" + inherit git + KEYWORDS="" +else + SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.bz2 + mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~cardoe/files/${P}.tar.bz2 + http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +fi + +DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" +HOMEPAGE="http://roy.marples.name/openrc" + +LICENSE="BSD-2" +SLOT="0" +IUSE="debug elibc_glibc ncurses pam unicode kernel_linux kernel_FreeBSD" + +RDEPEND="virtual/init + kernel_FreeBSD? ( sys-process/fuser-bsd ) + elibc_glibc? ( >=sys-libs/glibc-2.5 ) + ncurses? ( sys-libs/ncurses ) + pam? ( virtual/pam ) + >=sys-apps/baselayout-2.0.0 + kernel_linux? ( !