diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2012-07-17 18:58:46 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2012-07-17 18:58:46 +0000 |
commit | 52109d0b81add37f4b2dbec786da92120fb49755 (patch) | |
tree | e34b89f6a60e5506a4e2d23ada776683f5bf16c6 /net-misc/ifenslave | |
parent | Stable ppc, bug #424922 (diff) | |
download | gentoo-2-52109d0b81add37f4b2dbec786da92120fb49755.tar.gz gentoo-2-52109d0b81add37f4b2dbec786da92120fb49755.tar.bz2 gentoo-2-52109d0b81add37f4b2dbec786da92120fb49755.zip |
Version bump. Don't install "deprecated" modprobe.d/modules.conf files. Bump debian additions. Some refactoring.
(Portage version: 2.2.0_alpha118/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/ifenslave')
-rw-r--r-- | net-misc/ifenslave/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/ifenslave/ifenslave-1.1.0-r6.ebuild | 52 |
2 files changed, 60 insertions, 2 deletions
diff --git a/net-misc/ifenslave/ChangeLog b/net-misc/ifenslave/ChangeLog index 8583f502e2e7..252ff09d2787 100644 --- a/net-misc/ifenslave/ChangeLog +++ b/net-misc/ifenslave/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/ifenslave -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ChangeLog,v 1.24 2010/03/20 17:04:28 armin76 Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ChangeLog,v 1.25 2012/07/17 18:58:46 idl0r Exp $ + +*ifenslave-1.1.0-r6 (17 Jul 2012) + + 17 Jul 2012; Christian Ruppert <idl0r@gentoo.org> +ifenslave-1.1.0-r6.ebuild: + Version bump. Don't install "deprecated" modprobe.d/modules.conf files. Bump + debian additions. Some refactoring. 20 Mar 2010; Raúl Porcel <armin76@gentoo.org> ifenslave-1.1.0-r5.ebuild: sparc stable wrt #247885 diff --git a/net-misc/ifenslave/ifenslave-1.1.0-r6.ebuild b/net-misc/ifenslave/ifenslave-1.1.0-r6.ebuild new file mode 100644 index 000000000000..d800bf0fe981 --- /dev/null +++ b/net-misc/ifenslave/ifenslave-1.1.0-r6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ifenslave-1.1.0-r6.ebuild,v 1.1 2012/07/17 18:58:46 idl0r Exp $ + +EAPI=4 + +MY_PN="ifenslave-2.6" # this is NOT an error +DEBIAN_PV="17" +DEBIANPKG_TARBALL="${MY_PN}_${PV}.orig.tar.gz" +DEBIANPKG_PATCH="${MY_PN}_${PV}-${DEBIAN_PV}.debian.tar.gz" +DEBIANPKG_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}" + +inherit toolchain-funcs + +DESCRIPTION="Attach and detach slave interfaces to a bonding device" +HOMEPAGE="http://sf.net/projects/bonding/" +SRC_URI="${DEBIANPKG_BASE}/${DEBIANPKG_TARBALL} + ${DEBIANPKG_BASE}/${DEBIANPKG_PATCH}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="" +DEPEND="sys-devel/gcc + >=sys-kernel/linux-headers-2.4.22 + ${RDEPEND}" + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} || die "Failed to compile!" +} + +src_install() { + into / + dosbin ${PN} + into + + # there really is no better documentation than the sourcecode :-) + dodoc ${PN}.c + + doman "${WORKDIR}/debian/${PN}.8" +} + +pkg_preinst() { + if [[ -f /etc/modules.d/bond ]] || [[ -f /etc/modprobe.d/bond ]]; then + elog "You may want to remove /etc/modules.d/bond and/or /etc/modprobe.d/bond" + elog "because it likely causes some deprecation warnings like:" + elog "Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-bond0 instead" + elog "It may also cause unexpected behaviour." + fi +} |