Magellan Linux

Contents of /trunk/extras/libteam/libteam-1.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22086 - (show annotations) (download)
Mon Sep 1 11:33:48 2014 UTC (9 years, 9 months ago) by niro
File size: 1057 byte(s)
auto added: ver bump to 1.12-r1
1 # $Id$
2
3 PNAME="libteam"
4 PVER="1.12"
5 PBUILD="r1"
6
7 PCAT="net-libs"
8
9 DESCRIPTION="Library for controlling team network devices."
10 HOMEPAGE="http://libteam.org/"
11
12 DEPEND=">= dev-libs/libnl3-3.2.25
13 >= dev-libs/libdaemon-0.14
14 >= dev-libs/jansson-2.6
15 >= sys-apps/dbus-1.8"
16
17 SDEPEND=">= dev-lang/python-2.7
18 >= dev-lang/swig-2"
19
20 SRCFILE="${PNAME}-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude python multilib systemd dbus
24
25 SRC_URI=(
26 http://libteam.org/files/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 UP2SEPERATOR="v"
31 UP2DATE="updatecmd https://github.com/jpirko/${PNAME}/releases | highesttarball gz"
32
33 src_compile()
34 {
35 mconfigure || die
36 mmake || die
37
38 OLD_SRCDIR="${SRCDIR}"
39 SRCDIR="${SRCDIR}/binding/python"
40 python_src_compile || die
41 SRCDIR="${OLD_SRCDIR}"
42 }
43
44 src_install()
45 {
46 mmake DESTDIR=${BINDIR} install || die
47
48 minstallunit teamd/redhat/systemd/teamd@.service || die
49 minstalldbusconfig teamd/dbus/teamd.conf || die
50
51 OLD_SRCDIR="${SRCDIR}"
52 SRCDIR="${SRCDIR}/binding/python"
53 python_src_install || die
54 SRCDIR="${OLD_SRCDIR}"
55 }