1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/iproute2/iproute2.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
17 hook_add preconf 5 "sed -i s/gcc/$CC/ configure"
18 atstage cross && hook_add preconf 5 "sed -i 's/libelf --exists/libelfX --exists/' configure"
19 var_remove_regex makeinstopt ' ' 'PREFIX=.*'
22 $CC $base/package/*/iproute2/ipnm2nwbc.c -o $root$sbindir/ipnm2nwbc
23 cp $base/package/*/iproute2/dumpnetcfg.sh $root$sbindir/dumpnetcfg
24 chmod +x $root$sbindir/dumpnetcfg
26 hook_add postmake 5 "ipr2_pm"
28 var_append makeopt " " "KERNEL_INCLUDE=$root/usr/include"
29 var_append makeopt " " "LIBC_INCLUDE=$root/usr/include"
30 var_append makeinstopt " " "DESTDIR=$root/$prefix SBINDIR=$sbindir MANDIR=$mandir DOCDIR=$infodir"