/[gentoo-x86]/net-misc/libteam/libteam-0_rc8448186.ebuild
Gentoo

Contents of /net-misc/libteam/libteam-0_rc8448186.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Oct 22 12:25:33 2012 UTC (17 months, 3 weeks ago) by pinkbyte
Branch: MAIN
Initial commit

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 AUTOTOOLS_AUTORECONF="yes"
8 AUTOTOOLS_IN_SOURCE_BUILD=1
9
10 inherit autotools-utils linux-info versionator
11
12 MY_PV="$(get_version_component_range 2-)"
13 MY_PV="${MY_PV/rc/}"
14 MY_P="${PN}-${MY_PV}"
15
16 DESCRIPTION="Library and tools set for controlling team network device"
17 HOMEPAGE="https://fedorahosted.org/libteam/"
18 SRC_URI="http://rion-overlay.googlecode.com/files/jpirko-${MY_P}.tar.gz -> ${MY_P}.tar.gz"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE="debug examples +syslog"
24
25 DEPEND="dev-libs/jansson
26 dev-libs/libdaemon
27 dev-libs/libnl:3[utils]
28 sys-apps/dbus
29 "
30 RDEPEND="${DEPEND}
31 syslog? ( virtual/logger )"
32
33 CONFIG_CHECK="~NET_TEAM ~NET_TEAM_MODE_ROUNDROBIN ~NET_TEAM_MODE_ACTIVEBACKUP"
34 ERROR_NET_TEAM="NET_TEAM is not enabled in this kernel!
35 Only >=3.3.0 kernel version support in team mode"
36
37 S="${WORKDIR}/jpirko-${MY_P}"
38
39 DOCS=( HOWTO.BASICS README )
40
41 src_prepare() {
42 # avoid using -Werror in CFLAGS
43 sed -i -e '/^CFLAGS/s/-Werror//' configure.ac || die 'sed on CFLAGS failed'
44
45 autotools-utils_src_prepare
46 }
47
48 src_configure() {
49 local myeconfargs=(
50 $(use_enable debug)
51 $(use_enable syslog logging)
52 )
53 autotools-utils_src_configure
54 }
55
56 src_install() {
57 autotools-utils_src_install
58
59 insinto /etc/dbus-1/system.d/
60 doins teamd/dbus/teamd.conf
61
62 if use examples; then
63 insinto /etc/"${PN}"/example
64 doins teamd/example_configs/*
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20