2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-04-11 23:23:01 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
2022-04-11 23:23:01 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
2022-10-03 08:38:02 +02:00
|
|
|
## rebuild after any libbpf upgrade ##
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgname=iproute2
|
2022-12-15 23:23:19 +01:00
|
|
|
pkgver=6.1.0
|
2023-02-15 01:35:34 +01:00
|
|
|
pkgrel=05
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='IP Routing Utilities'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
|
2023-01-31 21:17:45 +01:00
|
|
|
depends=('glibc' 'iptables' 'libcap' 'libelf' 'libbpf')
|
2022-12-15 23:23:19 +01:00
|
|
|
makedepends=('db5.3')
|
|
|
|
optdepends=('db5.3: userspace arp daemon'
|
2022-03-20 13:19:37 +01:00
|
|
|
'libcap: tipc'
|
2023-01-31 21:17:45 +01:00
|
|
|
'linux-atm: ATM support'
|
|
|
|
'python: for routel')
|
2022-03-20 13:19:37 +01:00
|
|
|
provides=('iproute')
|
2022-04-29 21:55:53 +02:00
|
|
|
backup=('etc/iproute2/bpf_pinning'
|
|
|
|
'etc/iproute2/ematch_map'
|
|
|
|
'etc/iproute2/group'
|
|
|
|
'etc/iproute2/nl_protos'
|
|
|
|
'etc/iproute2/rt_dsfield'
|
|
|
|
'etc/iproute2/rt_protos'
|
|
|
|
'etc/iproute2/rt_realms'
|
|
|
|
'etc/iproute2/rt_scopes'
|
|
|
|
'etc/iproute2/rt_tables')
|
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
makedepends=('linux-atm' 'bison' 'gettext')
|
2022-04-29 21:55:53 +02:00
|
|
|
#options=('staticlibs' 'debug') ## uncomment this and comment the following to have the debug pkg produced
|
2022-03-20 13:19:37 +01:00
|
|
|
options=('staticlibs')
|
|
|
|
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
|
2022-12-15 23:23:19 +01:00
|
|
|
"sha256sums::https://www.kernel.org/pub/linux/utils/net/${pkgname}/sha256sums.asc"
|
|
|
|
'0001-make-iproute2-fhs-compliant.patch'
|
2023-02-15 01:35:34 +01:00
|
|
|
'bdb5.3.patch'
|
|
|
|
'fix_overlapping_buffers.patch')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
# set correct fhs structure
|
|
|
|
patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
|
2022-12-15 23:23:19 +01:00
|
|
|
|
|
|
|
# use Berkeley DB 5.3
|
|
|
|
patch -Np1 -i "${srcdir}"/bdb5.3.patch
|
|
|
|
|
2023-02-15 01:35:34 +01:00
|
|
|
# fix overlapping buffers leading to cut off IPv6 adresses since glibc 2.37
|
|
|
|
# See FS#77451 and
|
|
|
|
# https://lore.kernel.org/netdev/0011AC38-4823-4D0A-8580-B108D08959C2@gentoo.org/T/#u
|
|
|
|
patch -Np1 -i "${srcdir}"/fix_overlapping_buffers.patch
|
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
# do not treat warnings as errors
|
|
|
|
sed -i 's/-Werror//' Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
export CFLAGS+=' -ffat-lto-objects'
|
|
|
|
|
|
|
|
./configure
|
2022-12-15 23:23:19 +01:00
|
|
|
make DBM_INCLUDE='/usr/include/db5.3'
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
|
|
|
|
|
|
|
|
# libnetlink isn't installed, install it FS#19385
|
|
|
|
install -Dm0644 include/libnetlink.h "${pkgdir}/usr/include/libnetlink.h"
|
|
|
|
install -Dm0644 lib/libnetlink.a "${pkgdir}/usr/lib/libnetlink.a"
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=('GPL2')
|
|
|
|
|
|
|
|
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
|
|
|
|
|
2022-12-15 23:23:19 +01:00
|
|
|
# https://www.kernel.org/pub/linux/utils/net/${pkgname}/sha256sums.asc
|
|
|
|
# 5ce12a0fec6b212725ef218735941b2dab76244db7e72646a76021b0537b43ab iproute2-6.1.0.tar.xz
|
|
|
|
|
|
|
|
sha256sums=(5ce12a0fec6b212725ef218735941b2dab76244db7e72646a76021b0537b43ab # iproute2-6.1.0.tar.xz
|
|
|
|
50342cdfe2be83559d7446287b9056d9591c76d4c7ba64c293ed7b24e0761134 # iproute2-6.1.0.tar.sign
|
|
|
|
d33d639556757092f7d03f0d7ca92786341c68d25dd74f7f0a572abe636f7076 # sha256sums.asc
|
|
|
|
758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d # 0001-make-iproute2-fhs-compliant.patch
|
2023-02-15 01:35:34 +01:00
|
|
|
908de44ee99bf78669e7c513298fc2a22ca9d7e816a8f99788b1e9b091035cf4 # bdb5.3.patch
|
|
|
|
7d2fb8ba06f3b73a8fa3ab673b8f1ad41c0e4fd85e3c31a8d4002a1b074ec1ae) # fix_overlapping_buffers.patch
|
|
|
|
|
|
|
|
## 8fe730e2f151ed2e87a644fef50406a49472fdcefd65572817ce738dc617b65c iproute2-6.1.0-05-x86_64.pkg.tar.lz
|
2022-10-03 00:26:42 +02:00
|
|
|
|
|
|
|
|