1 |
# Copyright 1999-2005 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-r1.ebuild,v 1.5 2005/05/30 19:09:16 swegener Exp $ |
4 |
|
5 |
inherit toolchain-funcs eutils |
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="3" |
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="~x86 ~ppc" |
19 |
IUSE="" |
20 |
RDEPEND="virtual/libc" |
21 |
DEPEND="sys-devel/gcc |
22 |
>=sys-kernel/linux-headers-2.4.22 |
23 |
${RDEPEND}" |
24 |
|
25 |
src_unpack() { |
26 |
unpack ${DEBIANPKG_TARBALL} |
27 |
EPATCH_OPTS="-d ${S} -p1" epatch ${DISTDIR}/${DEBIANPKG_PATCH} |
28 |
} |
29 |
|
30 |
src_compile() { |
31 |
$(tc-getCC) ${CFLAGS} ${PN}.c -o ${PN} || die "Failed to compile!" |
32 |
} |
33 |
|
34 |
src_install() { |
35 |
doman ${S}/${PN}.8 |
36 |
into / |
37 |
dosbin ${PN} |
38 |
# there really is no better documentation than the sourcecode :-) |
39 |
dodoc ${PN}.c |
40 |
insinto /etc/modules.d |
41 |
newins ${FILESDIR}/modules.d-bond bond |
42 |
} |
43 |
|
44 |
pkg_postinst() { |
45 |
einfo "If you want to use bonding on your system, be sure to use" |
46 |
einfo "baselayout-1.10, where support is now integrated!" |
47 |
} |