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