PATCH_LIST=" iproute2-4.19.0-no-tipc-devlink-rdma.patch iproute2-4.19.0-disable-wrong-configure-tests.patch iproute2-4.19.0-with-libmnl.patch " FILE_LIST= SRC_FETCH_METHOD="http" SRC_FETCH_PATH="https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-${PKGVER}.tar.xz" MAKEDEPENDS=( "libmnl-*:::*.h *.a" "iptables-*:::*.h *.so *.so.*" ) function do_config_only { rm -f config.mk ${FLXPMAKE} CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB \ PKG_CONFIG=: \ config.mk # for i in HAVE_ELF HAVE_SELINUX HAVE_MNL HAVE_LIBMNL HAVE_CAP HAVE_LIBCAP ; do # sed -i -e "/$i/d" config.mk # done # for i in HAVE_ELF HAVE_SELINUX HAVE_MNL HAVE_LIBMNL HAVE_CAP HAVE_LIBCAP \ # TC_CONFIG_IPSET ; do # sed -i -e "/$i/d" config.mk # done } function do_compile_only { ${FLXPMAKE} CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB \ PKG_CONFIG=: VERBOSE=1 \ TC_CONFIG_XT=y TC_CONFIG_IPSET=n TC_CONFIG_ATM=n TC_CONFIG_ELF=n \ IPT_LIB_DIR="${FLXROOTDIR}/lib" \ KERNEL_INCLUDE="${FLXROOTDIR}/usr/include" \ DBM_INCLUDE="${FLXROOTDIR}/usr/include" \ IP_CONFIG_SETNS=y \ HAVE_SELINUX=n \ HAVE_MNL=n \ HAVE_LATEX=n \ HAVE_PDFLATEX=n \ HAVE_SGML2LATEX=n \ HAVE_SGML2HTML=n } function do_prepack { ${FLXMAKE} install DESTDIR=$ROOTDIR CC=$CC LD=$LD AR=$AR RANLIB=$RANLIB mkdir -p $ROOTDIR/usr/share/examples/iproute2/etc/ mv $ROOTDIR/etc/iproute2 $ROOTDIR/usr/share/examples/iproute2/etc/ && rmdir $ROOTDIR/etc chgrp adm $ROOTDIR/sbin/* $ROOTDIR/usr/share/examples/iproute2/etc/iproute2/* chmod o-r $ROOTDIR/sbin/* ; chmod o+r $ROOTDIR/sbin/route[lf] }