core/iproute2/PKGBUILD

59 lines
1.6 KiB
Bash
Raw Normal View History

2010-11-07 21:51:29 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-03-13 23:25:19 +08:00
pkgname=iproute2
2014-09-27 12:12:32 +08:00
pkgver=3.16.0
2013-05-26 16:22:24 +08:00
pkgrel=1
2010-03-13 23:25:19 +08:00
pkgdesc="IP Routing Utilities"
2013-05-26 16:22:24 +08:00
arch=('x86_64')
2010-03-13 23:25:19 +08:00
license=('GPL2')
2013-05-26 16:22:24 +08:00
url="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
depends=('glibc' 'db' 'iptables')
makedepends=('linux-atm')
optdepends=('linux-atm: ATM support')
groups=('base')
2010-03-13 23:25:19 +08:00
provides=('iproute')
conflicts=('iproute')
replaces=('iproute')
options=('!makeflags')
backup=('etc/iproute2/ematch_map' 'etc/iproute2/rt_dsfield' 'etc/iproute2/rt_protos' \
'etc/iproute2/rt_realms' 'etc/iproute2/rt_scopes' 'etc/iproute2/rt_tables')
2013-05-26 16:22:24 +08:00
source=(http://www.kernel.org/pub/linux/utils/net/$pkgname/$pkgname-$pkgver.tar.xz
2014-09-27 12:12:32 +08:00
iproute2-fhs.patch
unwanted-link-help.patch)
sha1sums=('25bb97f68d3f474e599bb97367670b31b3e96add'
'35b8cf2dc94b73eccad427235c07596146cd6f6c'
'3b1335f4025f657f388fbf4e5a740871e3129c2a')
2013-05-26 16:22:24 +08:00
2014-09-27 12:12:32 +08:00
prepare() {
cd "$srcdir/$pkgname-$pkgver"
2010-03-13 23:25:19 +08:00
# set correct fhs structure
2013-05-26 16:22:24 +08:00
patch -Np1 -i "$srcdir/iproute2-fhs.patch"
2010-11-07 21:51:29 +08:00
2014-09-27 12:12:32 +08:00
# allow operations on links called "h", "he", "hel", "help"
patch -Np1 -i "$srcdir/unwanted-link-help.patch"
2013-05-26 16:22:24 +08:00
# do not treat warnings as errors
sed -i 's/-Werror//' Makefile
2014-09-27 12:12:32 +08:00
}
build() {
cd "$srcdir/$pkgname-$pkgver"
2010-03-13 23:25:19 +08:00
2013-05-26 16:22:24 +08:00
./configure
2010-11-07 21:51:29 +08:00
make
}
package() {
2014-09-27 12:12:32 +08:00
cd "$pkgname-$pkgver"
2013-05-26 16:22:24 +08:00
make DESTDIR="$pkgdir" install
2010-03-13 23:25:19 +08:00
2010-11-07 21:51:29 +08:00
# libnetlink isn't installed, install it FS#19385
2013-05-26 16:22:24 +08:00
install -Dm644 include/libnetlink.h "$pkgdir/usr/include/libnetlink.h"
install -Dm644 lib/libnetlink.a "$pkgdir/usr/lib/libnetlink.a"
2010-03-13 23:25:19 +08:00
}