/[gentoo-x86]/net-misc/ifenslave/ifenslave-1.1.0-r4.ebuild
Gentoo

Contents of /net-misc/ifenslave/ifenslave-1.1.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Apr 26 22:58:44 2015 UTC (3 years, 3 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ifenslave/ifenslave-1.1.0-r4.ebuild,v 1.4 2012/10/12 21:09:49 robbat2 Exp $
4
5 inherit toolchain-funcs eutils linux-info
6
7 DESCRIPTION="Attach and detach slave interfaces to a bonding device"
8 HOMEPAGE="http://sf.net/projects/bonding/"
9 MY_PN="ifenslave-2.6" # this is NOT an error
10 DEBIAN_PV="12"
11 DEBIANPKG_TARBALL="${MY_PN}_${PV}.orig.tar.gz"
12 DEBIANPKG_PATCH="${MY_PN}_${PV}-${DEBIAN_PV}.diff.gz"
13 DEBIANPKG_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}"
14 SRC_URI="${DEBIANPKG_BASE}/${DEBIANPKG_TARBALL}
15 ${DEBIANPKG_BASE}/${DEBIANPKG_PATCH}"
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
19 IUSE=""
20 RDEPEND=""
21 DEPEND="sys-devel/gcc
22 >=sys-kernel/linux-headers-2.4.22
23 ${RDEPEND}"
24
25 CONFIG_CHECK="~BONDING"
26 WARNING_BONDING="CONFIG_BONDING is required to get bond devices in the kernel"
27
28 src_unpack() {
29 unpack ${DEBIANPKG_TARBALL}
30 EPATCH_OPTS="-d ${S} -p1" epatch "${DISTDIR}"/${DEBIANPKG_PATCH}
31 }
32
33 src_compile() {
34 $(tc-getCC) ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} || die "Failed to compile!"
35 }
36
37 src_install() {
38 doman ${PN}.8
39 into /
40 dosbin ${PN}
41 # there really is no better documentation than the sourcecode :-)
42 dodoc ${PN}.c
43 insinto /etc/modprobe.d
44 newins "${FILESDIR}"/modules.d-bond-1.1.0-r3 bond
45 }
46
47 pkg_preinst() {
48 if [[ -a /etc/modules.d/bond ]] && [[ ! -a /etc/modprobe.d/bond ]]; then
49 elog "Moving old bond configuration in modules.d to new"
50 elog "location in modprobe.d in /etc/"
51 mv "${ROOT}"/etc/{modules,modprobe}.d/bond
52 fi
53 }
54
55 pkg_postinst() {
56 einfo "If you want to use bonding on your system, be sure to use"
57 einfo ">=baselayout-1.10, where support is now integrated!"
58 einfo "Using >=baselayout-1.11.6 strongly recommended."
59 }

  ViewVC Help
Powered by ViewVC 1.1.20