Update to 1.6.1 70/132670/1 upstream/1.6.1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 7 Jun 2017 05:54:35 +0000 (14:54 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 7 Jun 2017 06:16:04 +0000 (15:16 +0900)
Change-Id: Iccec62c7650f8a67de2b5cecdaa4e6c4652e1f95
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
1  2 
aclocal.m4
configure
extensions/libxt_hashlimit.c
extensions/libxt_limit.c
extensions/libxt_pkttype.c
iptables/Makefile.in
packaging/iptables.spec

diff --cc aclocal.m4
@@@ -180,8 -180,62 +180,7 @@@ els
  fi[]dnl
  ])# PKG_CHECK_MODULES
  
- # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
- # Foundation, Inc.
 -
 -# PKG_INSTALLDIR(DIRECTORY)
 -# -------------------------
 -# Substitutes the variable pkgconfigdir as the location where a module
 -# should install pkg-config .pc files. By default the directory is
 -# $libdir/pkgconfig, but the default can be changed by passing
 -# DIRECTORY. The user can override through the --with-pkgconfigdir
 -# parameter.
 -AC_DEFUN([PKG_INSTALLDIR],
 -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 -m4_pushdef([pkg_description],
 -    [pkg-config installation directory @<:@]pkg_default[@:>@])
 -AC_ARG_WITH([pkgconfigdir],
 -    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 -    [with_pkgconfigdir=]pkg_default)
 -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 -m4_popdef([pkg_default])
 -m4_popdef([pkg_description])
 -]) dnl PKG_INSTALLDIR
 -
 -
 -# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 -# -------------------------
 -# Substitutes the variable noarch_pkgconfigdir as the location where a
 -# module should install arch-independent pkg-config .pc files. By
 -# default the directory is $datadir/pkgconfig, but the default can be
 -# changed by passing DIRECTORY. The user can override through the
 -# --with-noarch-pkgconfigdir parameter.
 -AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 -m4_pushdef([pkg_description],
 -    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 -AC_ARG_WITH([noarch-pkgconfigdir],
 -    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 -    [with_noarch_pkgconfigdir=]pkg_default)
 -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 -m4_popdef([pkg_default])
 -m4_popdef([pkg_description])
 -]) dnl PKG_NOARCH_INSTALLDIR
 -
 -
 -# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 -# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 -# -------------------------------------------
 -# Retrieves the value of the pkg-config variable for the given module.
 -AC_DEFUN([PKG_CHECK_VAR],
 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 -
 -_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 -AS_VAR_COPY([$1], [pkg_cv_][$1])
 -
 -AS_VAR_IF([$1], [""], [$5], [$4])dnl
 -])# PKG_CHECK_VAR
 -
+ # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  #
  # This file is free software; the Free Software Foundation
  # gives unlimited permission to copy and/or distribute it,
@@@ -746,9 -806,51 +752,50 @@@ dnl macro is hooked onto _AC_COMPILER_E
  AC_CONFIG_COMMANDS_PRE(dnl
  [m4_provide_if([_AM_COMPILER_EXEEXT],
    [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
- ])
  
- dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
+ # POSIX will say in a future version that running "rm -f" with no argument
+ # is OK; and we want to be able to make that assumption in our Makefile
+ # recipes.  So use an aggressive probe to check that the usage we want is
+ # actually supported "in the wild" to an acceptable degree.
+ # See automake bug#10828.
+ # To make any issue more visible, cause the running configure to be aborted
+ # by default if the 'rm' program in use doesn't match our expectations; the
+ # user can still override this though.
+ if rm -f && rm -fr && rm -rf; then : OK; else
+   cat >&2 <<'END'
+ Oops!
+ Your 'rm' program seems unable to run without file operands specified
+ on the command line, even when the '-f' option is present.  This is contrary
+ to the behaviour of most rm programs out there, and not conforming with
+ the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+ Please tell bug-automake@gnu.org about your system, including the value
+ of your $PATH and any error possibly output before this message.  This
+ can help us improve future automake versions.
+ END
+   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+     echo 'Configuration will proceed anyway, since you have set the' >&2
+     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+     echo >&2
+   else
+     cat >&2 <<'END'
+ Aborting the configuration process, to ensure you take notice of the issue.
+ You can download and install GNU coreutils to get an 'rm' implementation
+ that behaves properly: <http://www.gnu.org/software/coreutils/>.
+ If you want to complete the configuration process using your problematic
+ 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+ to "yes", and re-run configure.
+ END
+     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
+   fi
 -fi
 -])
++fi])
+ dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
  dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  dnl mangled by Autoconf and run in a shell conditional statement.
  m4_define([_AC_COMPILER_EXEEXT],
diff --cc configure
+++ b/configure
@@@ -2975,6 -3087,49 +3087,48 @@@ am__tar='$${TAR-tar} chof - "$$tardir"
  
  
  
 -
+ # POSIX will say in a future version that running "rm -f" with no argument
+ # is OK; and we want to be able to make that assumption in our Makefile
+ # recipes.  So use an aggressive probe to check that the usage we want is
+ # actually supported "in the wild" to an acceptable degree.
+ # See automake bug#10828.
+ # To make any issue more visible, cause the running configure to be aborted
+ # by default if the 'rm' program in use doesn't match our expectations; the
+ # user can still override this though.
+ if rm -f && rm -fr && rm -rf; then : OK; else
+   cat >&2 <<'END'
+ Oops!
+ Your 'rm' program seems unable to run without file operands specified
+ on the command line, even when the '-f' option is present.  This is contrary
+ to the behaviour of most rm programs out there, and not conforming with
+ the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+ Please tell bug-automake@gnu.org about your system, including the value
+ of your $PATH and any error possibly output before this message.  This
+ can help us improve future automake versions.
+ END
+   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+     echo 'Configuration will proceed anyway, since you have set the' >&2
+     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+     echo >&2
+   else
+     cat >&2 <<'END'
+ Aborting the configuration process, to ensure you take notice of the issue.
+ You can download and install GNU coreutils to get an 'rm' implementation
+ that behaves properly: <http://www.gnu.org/software/coreutils/>.
+ If you want to complete the configuration process using your problematic
+ 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+ to "yes", and re-run configure.
+ END
+     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
+   fi
+ fi
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Simple merge
Simple merge
Simple merge
Simple merge
index bc8b6a0,0000000..312f7cc
mode 100755,000000..100755
--- /dev/null
@@@ -1,98 -1,0 +1,98 @@@
- Version:      1.4.21
 +Name:         iptables
 +Summary:      Tools for managing Linux kernel packet filtering capabilities
- %configure --enable-devel --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr
++Version:      1.6.1
 +Release:      1
 +Group:                System/Network
 +Source:               %{name}-%{version}.tar.gz
 +URL:          http://www.netfilter.org
 +License:      GPL-2.0+
 +BuildRequires:        kernel-headers
 +Requires(post):       /sbin/ldconfig
 +Requires(postun):     /sbin/ldconfig
 +
 +%description
 +The iptables utility controls the network packet filtering code in the
 +Linux kernel. If you need to set up firewalls and/or IP masquerading,
 +you should install this package.
 +
 +%package devel
 +Summary:      Development package for iptables
 +Group:                System/Network
 +License:        GPL-2.0+
 +Requires:     %{name} = %{version}
 +Requires:     pkgconfig
 +
 +%description devel
 +iptables development headers and libraries.
 +
 +The iptc interface is upstream marked as not public. The interface is not
 +stable and may change with every new version. It is therefore unsupported.
 +
 +%prep
 +%setup -q
 +
 +
 +%build
 +export CFLAGS+=" $RPM_OPT_FLAGS -Wall -Werror -O2 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -Wno-unused-value"
 +export LDFLAGS+=" -Wl,--as-needed"
 +
++%configure --enable-devel --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr --disable-nftables
 +
 +# do not use rpath
 +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 +
 +make %{?_smp_mflags}
 +
 +
 +%install
 +make install DESTDIR=%{buildroot}
 +
 +# remove la file(s)
 +rm -f %{buildroot}/%{_libdir}/*.la
 +
 +# install ip*tables.h header files
 +install -m 644 include/ip*tables.h %{buildroot}%{_includedir}/
 +install -d -m 755 %{buildroot}%{_includedir}/iptables
 +install -m 644 include/iptables/internal.h %{buildroot}%{_includedir}/iptables/
 +
 +# install ipulog header file
 +install -d -m 755 %{buildroot}%{_includedir}/libipulog/
 +install -m 644 include/libipulog/*.h %{buildroot}%{_includedir}/libipulog/
 +
 +# remove man pages
 +rm -rf %{buildroot}%{_mandir}
 +
 +%post -p /sbin/ldconfig
 +%postun -p /sbin/ldconfig
 +
 +%docs_package
 +
 +%files
 +%manifest iptables.manifest
 +%{_sbindir}/iptables*
 +%{_sbindir}/ip6tables*
 +%{_sbindir}/xtables-multi
 +%{_bindir}/iptables-xml
 +%dir %{_libdir}/xtables
 +%{_libdir}/xtables/libipt*
 +%{_libdir}/xtables/libip6t*
 +%{_libdir}/xtables/libxt*
 +%{_libdir}/libip*tc.so.*
 +%{_libdir}/libxtables.so.*
 +%license COPYING
 +
 +%files devel
 +%dir %{_includedir}/iptables
 +%{_includedir}/iptables/*.h
 +%{_includedir}/*.h
 +%dir %{_includedir}/libiptc
 +%{_includedir}/libiptc/*.h
 +%dir %{_includedir}/libipulog
 +%{_includedir}/libipulog/*.h
 +%{_libdir}/libip*tc.so
 +%{_libdir}/libxtables.so
 +%{_libdir}/pkgconfig/libiptc.pc
 +%{_libdir}/pkgconfig/libip4tc.pc
 +%{_libdir}/pkgconfig/libip6tc.pc
 +%{_libdir}/pkgconfig/xtables.pc