jobcore/iproute2/PKGBUILD-arch

60 lines
1.7 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Christian Hesse <mail@eworm.de>
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=iproute2
2024-07-17 09:48:01 +02:00
pkgver=6.10.0
2024-07-25 13:06:08 +02:00
pkgrel=2
2022-03-20 13:19:37 +01:00
pkgdesc='IP Routing Utilities'
arch=('x86_64')
license=('GPL2')
url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
depends=('glibc'
'libxtables.so' # from iptables or iptables-nft
'libcap' 'libcap.so'
'libelf'
'libbpf' 'libbpf.so')
2024-07-25 13:06:08 +02:00
makedepends=('db5.3' 'linux-atm' 'iptables')
optdepends=('db5.3: userspace arp daemon'
'linux-atm: ATM support'
'python: for routel')
2022-03-20 13:19:37 +01:00
provides=('iproute')
options=('staticlibs')
2022-03-20 13:19:37 +01:00
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
2023-11-05 10:55:59 +01:00
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
'0001-make-iproute2-fhs-compliant.patch'
2023-04-30 04:15:37 +02:00
'0002-bdb-5-3.patch')
2024-07-17 09:48:01 +02:00
sha256sums=('91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce'
2022-03-20 13:19:37 +01:00
'SKIP'
'758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d'
2023-04-30 04:15:37 +02:00
'611c1ad7946aab226a5f4059922d9430f51b3377e33911427f8fdf7f7d31f7d6')
2022-03-20 13:19:37 +01:00
prepare() {
2023-11-05 10:55:59 +01:00
cd "${srcdir}/${pkgname}-${pkgver}"
2022-03-20 13:19:37 +01:00
# set correct fhs structure
patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
# use Berkeley DB 5.3
2023-02-21 10:40:13 +01:00
patch -Np1 -i "${srcdir}"/0002-bdb-5-3.patch
2023-02-15 01:35:34 +01:00
2022-03-20 13:19:37 +01:00
# do not treat warnings as errors
sed -i 's/-Werror//' Makefile
}
build() {
2023-11-05 10:55:59 +01:00
cd "${srcdir}/${pkgname}-${pkgver}"
2022-03-20 13:19:37 +01:00
2022-03-23 03:56:45 +01:00
export CFLAGS+=' -ffat-lto-objects'
2022-03-20 13:19:37 +01:00
./configure
make DBM_INCLUDE='/usr/include/db5.3'
2022-03-20 13:19:37 +01:00
}
package() {
2023-11-05 10:55:59 +01:00
cd "${srcdir}/${pkgname}-${pkgver}"
2022-03-20 13:19:37 +01:00
make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
}