Skip to content

Commit 6284455

Browse files
authored
Merge pull request #63 from icedieler/iproute2
net/iproute2: recipe to build iproute2 tools
2 parents 1ae2af8 + c506e4d commit 6284455

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

recipes/net/iproute2.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
inherit: [cpackage, make, install]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "6.13.0"
5+
PKG_LICENSE: "GPL-2.0+"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${KERNEL_MIRROR}/linux/utils/net/iproute2/iproute2-${PKG_VERSION}.tar.xz
10+
digestSHA256: "a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819"
11+
stripComponents: 1
12+
13+
buildVars: [CC, AR]
14+
buildTools: [host-toolchain, bison, flex, m4]
15+
buildScript: |
16+
cp -a $1/ build/
17+
18+
pushd build
19+
./configure
20+
21+
makeParallel \
22+
CC="$CC" \
23+
HOSTCC="gcc" \
24+
SHARED_LIBS=$([[ $(cpackageLibraryType) == static ]] && echo n || echo y) \
25+
all
26+
27+
makeParallel \
28+
DESTDIR=$BOB_CWD/install \
29+
install
30+
31+
popd
32+
33+
packageScript: |
34+
installPackageBin "$1/install/"

0 commit comments

Comments
 (0)