iproute2 6.10.0-1
This commit is contained in:
parent
91f1759e69
commit
2d236c53a2
39
iproute2/PKGBUILD
Normal file
39
iproute2/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||
# then please put 'unknown'.
|
||||
|
||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||
pkgname=iproute2
|
||||
pkgver=6.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="IP Routing Utilities"
|
||||
arch=('x86_64')
|
||||
url="https://www.kernel.org/pub/linux/utils/net/iproute2/"
|
||||
license=('GPL2')
|
||||
groups=('base')
|
||||
depends=('glibc' 'libcap' 'libelf')
|
||||
source=(https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar.xz)
|
||||
sha256sums=(91a62f82737b44905a00fa803369c447d549e914e9a2a4018fdd75b1d54e8dce)
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
sed -i /ARPD/d Makefile
|
||||
rm -fv man/man8/arpd.8
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make BUILD_CC=${CHOST}-gcc CC=${CHOST}-gcc NETNS_RUN_DIR=/run/netns
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} SBINDIR=/usr/sbin LIBDIR=/usr/lib64 install
|
||||
|
||||
install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
||||
cp -v COPYING README* ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
|
||||
}
|
Loading…
Reference in New Issue
Block a user