mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-13 14:41:37 +01:00
sys-apps/iproute2: Sync with Gentoo
It's from Gentoo commit b4b3b2e23fe5372b723888a738479df92545b0ad.
This commit is contained in:
parent
788439357e
commit
53a4aa339f
@ -10,7 +10,7 @@ if [[ ${PV} == 9999 ]] ; then
|
|||||||
inherit git-r3
|
inherit git-r3
|
||||||
else
|
else
|
||||||
SRC_URI="https://www.kernel.org/pub/linux/utils/net/${PN}/${P}.tar.xz"
|
SRC_URI="https://www.kernel.org/pub/linux/utils/net/${PN}/${P}.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DESCRIPTION="kernel routing and traffic control utilities"
|
DESCRIPTION="kernel routing and traffic control utilities"
|
||||||
@ -61,12 +61,12 @@ src_prepare() {
|
|||||||
local versionfile="include/version.h"
|
local versionfile="include/version.h"
|
||||||
if [[ ${PV} != 9999 ]] && ! grep -Fq "${PV}" ${versionfile} ; then
|
if [[ ${PV} != 9999 ]] && ! grep -Fq "${PV}" ${versionfile} ; then
|
||||||
einfo "Fixing version string"
|
einfo "Fixing version string"
|
||||||
sed "s@\"[[:digit:]\.]\+\"@\"${PV}\"@" \
|
sed -i "s@\"[[:digit:]\.]\+\"@\"${PV}\"@" \
|
||||||
-i ${versionfile} || die
|
${versionfile} || die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# echo -n is not POSIX compliant
|
# echo -n is not POSIX compliant
|
||||||
sed 's@echo -n@printf@' -i configure || die
|
sed -i 's@echo -n@printf@' configure || die
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '/^CC :\?=/d' \
|
-e '/^CC :\?=/d' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user