|
|
|
@ -14,30 +14,7 @@
|
|
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
for x in $( match_source_file -p patch ); do |
|
|
|
|
var_append patchfiles ' ' "$x" |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
# never ever use the kernel source - always use the installed headers |
|
|
|
|
var_append makeopt ' ' "PREFIX=$root/$prefix" |
|
|
|
|
var_append makeopt ' ' "BINDIR=$root/sbin" |
|
|
|
|
var_append makeopt ' ' "KERNEL_DIR=$root/usr" |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_STATIC" == 1 ] ; then |
|
|
|
|
var_append makeopt ' ' "DO_MULTI=1 NO_SHARED_LIBS=1" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
makeinstopt="PREFIX=$root/$prefix install" |
|
|
|
|
|
|
|
|
|
iptables_install_devel() { |
|
|
|
|
# libiptc headers are expected to be installed in /usr/include/libiptc |
|
|
|
|
mkdir -vp "$root$includedir/libiptc" |
|
|
|
|
cp -vf include/libiptc/{libiptc,ipt_kernel_headers}.h "$root$includedir/libiptc/" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_IPTABLES_DEVEL" != 0 ] ; then |
|
|
|
|
var_append confopt ' ' "--enable-devel" |
|
|
|
|
hook_add postmake 5 'iptables_install_devel' |
|
|
|
|
var_append confopt ' ' "--enable-libipq" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
runconf=0 |
|
|
|
|