代码拉取完成,页面将自动刷新
#!/bin/sh -e
include ()
{
# If we keep a copy of the kernel header in the SVN tree, we'll have
# to worry about synchronization issues forever. Instead, we just copy
# the headers that we need from the lastest kernel version at autogen
# stage.
INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
if [ -f $INCLUDEDIR/netfilter/nfnetlink.h ]
then
TARGET=include/libnfnetlink/linux_nfnetlink.h
echo "Copying nfnetlink.h to linux_nfnetlink.h"
cp $INCLUDEDIR/netfilter/nfnetlink.h $TARGET
TMP=`mktemp`
sed 's/__be16/u_int16_t/g' $TARGET > $TMP
cp $TMP $TARGET
sed 's/#include <linux\/netfilter\/nfnetlink_compat\.h>/#include <libnfnetlink\/linux_nfnetlink_compat\.h>/g' $TARGET > $TMP
cp $TMP $TARGET
else
echo "can't find nfnetlink.h kernel file in $INCLUDEDIR"
exit 1
fi
if [ -f $INCLUDEDIR/netfilter/nfnetlink_compat.h ]
then
TARGET=include/libnfnetlink/linux_nfnetlink_compat.h
echo "Copying nfnetlink_compat.h to linux_nfnetlink_compat.h"
cp $INCLUDEDIR/netfilter/nfnetlink_compat.h $TARGET
else
echo "can't find nfnetlink.h kernel file in $INCLUDEDIR, ignoring"
fi
}
[ "x$1" = "xdistrib" ] && include
autoreconf -fi
rm -Rf autom4te.cache
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。