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
|
2024-01-09 00:52:30 +01:00
|
|
|
pkgver=6.7.0
|
|
|
|
pkgrel=01
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='IP Routing Utilities'
|
|
|
|
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')
|
2023-11-05 10:55:59 +01:00
|
|
|
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
|
2023-02-21 10:40:13 +01:00
|
|
|
"sha256sums::https://mirrors.edge.kernel.org/pub/linux/utils/net/$pkgname/sha256sums.asc"
|
2022-12-15 23:23:19 +01:00
|
|
|
'0001-make-iproute2-fhs-compliant.patch'
|
2023-04-30 04:15:37 +02:00
|
|
|
'0002-bdb-5-3.patch')
|
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
|
2022-12-15 23:23:19 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
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() {
|
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
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
}
|
|
|
|
|
2023-04-30 04:15:37 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
license=('GPL2')
|
|
|
|
|
|
|
|
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
|
|
|
|
|
2023-02-21 10:40:13 +01:00
|
|
|
# https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/sha256sums.asc
|
2023-09-07 01:05:56 +02:00
|
|
|
# a70179085fa1b96d3c33b040c809b75e2b57563adc505a4ad05e2609df373463 iproute2-6.5.0.tar.xz
|
|
|
|
# 71a43ebd4bbe023ac7e8dbf23b4d6a84439aac77d41e852c52b713ab675a22e4 iproute2-6.5.0.tar.sign
|
2022-12-15 23:23:19 +01:00
|
|
|
|
2024-01-09 00:52:30 +01:00
|
|
|
sha256sums=(ff942dd9828d7d1f867f61fe72ce433078c31e5d8e4a78e20f02cb5892e8841d # iproute2-6.7.0.tar.xz
|
|
|
|
69dbd4bbcf27265d0fdbabac1068ce22841fbaeae903daa4bc8bbafaa59dd0ed # iproute2-6.7.0.tar.sign
|
|
|
|
7d71be96fc067c0b6fff55e67c26c39b349ac4f7f3203ec730227b1e9b5e4884 # sha256sums
|
2022-12-15 23:23:19 +01:00
|
|
|
758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d # 0001-make-iproute2-fhs-compliant.patch
|
2023-04-30 04:15:37 +02:00
|
|
|
611c1ad7946aab226a5f4059922d9430f51b3377e33911427f8fdf7f7d31f7d6) # 0002-bdb-5-3.patch
|
2022-10-03 00:26:42 +02:00
|
|
|
|
2024-01-09 00:52:30 +01:00
|
|
|
## 5ce5ef8cb16352079441dc452725f0ac5bf0bb74dc8fbfa75254598263ad95a0 iproute2-6.7.0-01-x86_64.pkg.tar.lz
|
|
|
|
|