2018-06-20 23:53:21 +02:00
|
|
|
VERSION="4.17.0"
|
2018-01-15 16:03:14 +01:00
|
|
|
SRCDIR="iproute2-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://www.kernel.org/pub/linux/utils/net/iproute2/"
|
2018-06-20 23:53:21 +02:00
|
|
|
SHA256SUM="6fa991b092315887775b9e47dc6a89af7ae09dd3ad4ccff754d055c566b4be6e"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="bdb libmnl"
|
2018-01-15 16:03:14 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-02-09 18:49:17 +01:00
|
|
|
apply_patches
|
2018-01-15 16:03:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
2018-01-15 16:03:14 +01:00
|
|
|
|
|
|
|
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-01-15 16:03:14 +01:00
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/var/lib/arpd"
|
|
|
|
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-01-15 16:03:14 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L $URL | grep -o "iproute2-[0-9.]*tar.xz" | \
|
|
|
|
sed 's/iproute2-//g' | sed 's/.tar.xz//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|