From 28a78f644001eaae070426cd95aba7461e59e675 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 28 Jun 2007 23:34:03 +0000 Subject: [PATCH] * improved iptables providing the capability to enable support for installing the development libs and headers (libiptc) git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21518 10447126-35f2-4685-b0cf-6dd780d3921f --- network/iptables/config.in | 23 +++++++++++++++++++++++ network/iptables/iptables.conf | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 network/iptables/config.in diff --git a/network/iptables/config.in b/network/iptables/config.in new file mode 100644 index 000000000..2e8f74f8f --- /dev/null +++ b/network/iptables/config.in @@ -0,0 +1,23 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../iptables/config.in +# Copyright (C) 2007 The OpenSDE Project +# +# 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 as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +if pkgcheck iptables X +then + menu_begin MENU_PKG_IPTABLES 'IPtables Package Options' + + bool "Enable development support (libiptc)" \ + SDECFG_PKG_IPTABLES_DEVEL 0 + + menu_end +fi diff --git a/network/iptables/iptables.conf b/network/iptables/iptables.conf index 90de9dd66..51da93587 100644 --- a/network/iptables/iptables.conf +++ b/network/iptables/iptables.conf @@ -27,7 +27,6 @@ var_append makeopt ' ' "KERNEL_DIR=$root/usr" makeinstopt="$makeopt install" -#hook_add postmake 5 'iptables_install_devel' iptables_install_devel() { $MAKE $makeopt install-devel @@ -38,4 +37,6 @@ iptables_install_devel() { cp -vf include/libiptc/{libiptc,ipt_kernel_headers}.h "$root$includedir/libiptc/" } +[ "$SDECFG_PKG_IPTABLES_DEVEL" != 0 ] && hook_add postmake 5 'iptables_install_devel' + runconf=0