summaryrefslogtreecommitdiff
path: root/extra/libteam
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-05 03:56:09 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-05 03:56:09 +0000
commit4cd3fcfccda5c0375669bd300834ac77a0a617fb (patch)
tree45654211fb7434273df8b8fdc98c761fe1eef5e8 /extra/libteam
parent32fb2c222ff8558d8abdfa411e8487dc9a3c0696 (diff)
Sat Jul 5 03:51:53 UTC 2014
Diffstat (limited to 'extra/libteam')
-rw-r--r--extra/libteam/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/extra/libteam/PKGBUILD b/extra/libteam/PKGBUILD
new file mode 100644
index 000000000..fc4aedfa0
--- /dev/null
+++ b/extra/libteam/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 216517 2014-07-04 21:12:04Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+pkgname=libteam
+pkgver=1.11
+pkgrel=1
+pkgdesc="Library for controlling team network device"
+arch=(i686 x86_64)
+url="http://libteam.org/"
+license=(LGPL2.1)
+depends=(libnl libdaemon jansson libdbus bash)
+makedepends=(python python2 swig)
+source=($url/files/$pkgname-$pkgver.tar.gz)
+sha256sums=('b89e81258f8a8f4abd718ec1c91f85cb66d4d29e4d50095a3d2a4ffd8ce4bf7a')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static --libexecdir=/usr/lib
+ make
+
+ cp -aT binding/python binding/python2
+
+ cd binding/python
+ python ./setup.py build
+ cd ../python2
+ python2 ./setup.py build
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 teamd/redhat/systemd/teamd@.service \
+ "$pkgdir/usr/lib/systemd/system/teamd@.service"
+ install -Dm644 teamd/dbus/teamd.conf \
+ "$pkgdir/etc/dbus-1/system.d/teamd.conf"
+
+ cd binding/python
+ python ./setup.py install --root "$pkgdir" -O1
+ cd ../python2
+ python2 ./setup.py install --root "$pkgdir" -O1
+}