blob: 23ecf5f5c93341b8d71a6a0d41a0737b2dbaf1aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Christian Hesse <mail@eworm.de>
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# SELinux Maintainer: Nicolas Iooss (nicolas <dot> iooss <at> m4x <dot> org)
#
# This PKGBUILD is maintained on https://github.com/archlinuxhardened/selinux.
# If you want to help keep it up to date, please open a Pull Request there.
pkgname=iproute2-selinux
pkgver=6.19.0
pkgrel=2
pkgdesc='IP Routing Utilities with SELinux support'
arch=('x86_64' 'aarch64')
license=('GPL-2.0-or-later')
groups=('selinux')
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'
'libselinux')
makedepends=('git' 'db' 'linux-atm' 'iptables')
optdepends=('db: userspace arp daemon'
'linux-atm: ATM support'
'python: for routel')
provides=('iproute' "${pkgname/-selinux}=${pkgver}-${pkgrel}")
conflicts=("${pkgname/-selinux}")
options=('!emptydirs')
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
source=("git+https://git.kernel.org/pub/scm/network/${pkgname/-selinux}/${pkgname/-selinux}.git#tag=v${pkgver}"
'0001-make-iproute2-fhs-compliant.patch')
sha256sums=('bdd732f05d497fd26c1cbefa9db8da974d2cf199fbb10affea984b862ab334d7'
'758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d')
prepare() {
cd "${srcdir}/${pkgname/-selinux}"
# set correct fhs structure
patch -Np1 -i "${srcdir}"/0001-make-iproute2-fhs-compliant.patch
}
build() {
cd "${srcdir}/${pkgname/-selinux}"
# ./configure auto-detects SELinux as a build dependency for "ss":
# https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/configure?h=v5.14.0#n373
./configure \
--color auto
make
}
package() {
cd "${srcdir}/${pkgname/-selinux}"
make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
}
|