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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Aug 28 09:19:42 2014 UTC (5 years, 3 months ago) by kumba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Added ~mips to KEYWORDS, per #521148.

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

1 # Copyright 1999-2014 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-r6.ebuild,v 1.7 2012/11/02 19:08:17 robbat2 Exp $
4
5 EAPI=4
6
7 MY_PN="ifenslave-2.6" # this is NOT an error
8 DEBIAN_PV="17"
9 DEBIANPKG_TARBALL="${MY_PN}_${PV}.orig.tar.gz"
10 DEBIANPKG_PATCH="${MY_PN}_${PV}-${DEBIAN_PV}.debian.tar.gz"
11 DEBIANPKG_BASE="mirror://debian/pool/main/${MY_PN:0:1}/${MY_PN}"
12
13 inherit toolchain-funcs linux-info
14
15 DESCRIPTION="Attach and detach slave interfaces to a bonding device"
16 HOMEPAGE="http://sf.net/projects/bonding/"
17 SRC_URI="${DEBIANPKG_BASE}/${DEBIANPKG_TARBALL}
18 ${DEBIANPKG_BASE}/${DEBIANPKG_PATCH}"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~alpha amd64 ~arm ~mips ppc sparc x86"
23 IUSE=""
24
25 RDEPEND=""
26 DEPEND="sys-devel/gcc
27 >=sys-kernel/linux-headers-2.4.22
28 ${RDEPEND}"
29
30 CONFIG_CHECK="~BONDING"
31 WARNING_BONDING="CONFIG_BONDING is required to get bond devices in the kernel"
32
33 src_compile() {
34 $(tc-getCC) ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} || die "Failed to compile!"
35 }
36
37 src_install() {
38 into /
39 dosbin ${PN}
40 into
41
42 # there really is no better documentation than the sourcecode :-)
43 dodoc ${PN}.c
44
45 doman "${WORKDIR}/debian/${PN}.8"
46 }
47
48 pkg_preinst() {
49 if [[ -f /etc/modules.d/bond ]] || [[ -f /etc/modprobe.d/bond ]]; then
50 elog "You may want to remove /etc/modules.d/bond and/or /etc/modprobe.d/bond"
51 elog "because it likely causes some deprecation warnings like:"
52 elog "Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-bond0 instead"
53 elog "It may also cause unexpected behaviour."
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20