Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37760133
en ru br
Репозитории ALT
S:1.8.7-alt1
5.1: 1.4.7-alt1
4.1: 1.4.0-alt0.M41.1
4.0: 1.3.7-alt1
3.0: 1.3.1-alt2
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: iptables

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: iptables
Version: 1.4.7
Release: alt1

Summary: Tools for managing Linux kernel packet filtering capabilities
License: GPLv2+
Group: System/Kernel and hardware
Url: http://www.netfilter.org/projects/iptables/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# git://git.netfilter.org/iptables

# http://git.altlinux.org/people/ldv/packages/?p=iptables.git
Source: %name-%version-%release.tar

# Backwards compatibility for libipq.

%define lib_suffix %nil
%{expand:%%define lib_suffix %(test %_lib != lib64 && echo %%nil || echo '()(64bit)')}
Provides: libipq.so.0.0%lib_suffix

%def_disable static

%description
Iptables is used to set up, maintain, and inspect the tables of IP
packet filter rules in the Linux kernel.  Several different tables may
be defined.  Each table contains a number of built-in chains and may
also contain user-defined chains.

Each chain is a list of rules which can match a set of packets.
Each rule specifies what to do with a packet that matches.  This is
called a `target', which may be a jump to a user-defined chain in
the same table.

%package ipv6
Summary: IPv6 support for iptables
Group: System/Kernel and hardware
Requires: %name = %version-%release

%description ipv6
Ip6tables is used to set up, maintain, and inspect the tables of IPv6
packet filter rules in the Linux kernel.  Several different tables may
be defined.  Each table contains a number of built-in chains and may
also contain user-defined chains.

Each chain is a list of rules which can match a set of packets.
Each rule specifies what to do with a packet that matches.  This is
called a `target', which may be a jump to a user-defined chain in
the same table.

%package devel
Summary: iptables development files
Group: Development/C
Requires: %name = %version-%release
Requires: %name-ipv6 = %version-%release

%description devel
Iptables is used to set up, maintain, and inspect the tables of IP packet
filter rules in the Linux kernel.

This package contains development files required to build software that
operates with netfilter.

%package devel-static
Summary: iptables static development files
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Iptables is used to set up, maintain, and inspect the tables of IP packet
filter rules in the Linux kernel.

This package contains static library required to build software that
operates with netfilter.

%prep
%setup -q -n %name-%version-%release

%build
%add_optflags -fno-strict-aliasing
%autoreconf
%configure \
%{subst_enable static} \
--enable-libipq \
--sbindir=/sbin \
--with-xtlibdir=/%_lib/iptables \
#

# Build libraries first

printf '\n%%s\n' 'build-libLTLIBRARIES: $(lib_LTLIBRARIES)' >>Makefile
%make_build V=1 build-libLTLIBRARIES
%make_build V=1

%install
%makeinstall_std
mkdir -p %buildroot/%_lib
# Relocate some shared libraries from %_libdir/ to /%_lib/.
for f in %buildroot%_libdir/lib{ip?tc,xtables}*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/lib{ip?tc,xtables}*.so.* %buildroot/%_lib/
ln -s libipq.so.0.0.0 %buildroot%_libdir/libipq.so.0.0

install -pDm644 iptables.xslt %buildroot%_datadir/%name/iptables.xslt

# Install ip*tables.h header files.

mkdir -p %buildroot%_includedir/iptables
install -pm644 include/ip*tables.h %buildroot%_includedir/
install -pm644 include/iptables/internal.h %buildroot%_includedir/iptables/

# Install startup scripts and associated config files.

install -pDm755 iptables.init %buildroot%_initdir/iptables
cp -p %buildroot%_initdir/ip{,6}tables
sed -i s/iptables/ip6tables/g %buildroot%_initdir/ip6tables

install -pDm600 iptables_params %buildroot%_sysconfdir/sysconfig/iptables_params
cp -p %buildroot%_sysconfdir/sysconfig/ip{,6}tables_params
sed -i s/iptables/ip6tables/g %buildroot%_sysconfdir/sysconfig/ip6tables_params

install -pDm600 iptables_data %buildroot%_sysconfdir/sysconfig/iptables
cp -p %buildroot%_sysconfdir/sysconfig/ip{,6}tables
sed -i s/iptables/ip6tables/g %buildroot%_sysconfdir/sysconfig/ip6tables

install -pDm600 iptables_modules %buildroot%_sysconfdir/sysconfig/iptables_modules
cp -p %buildroot%_sysconfdir/sysconfig/ip{,6}tables_modules
sed -i s/iptables/ip6tables/g %buildroot%_sysconfdir/sysconfig/ip6tables_modules

%set_verify_elf_method strict

%post
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add iptables
fi

%preun
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del iptables
fi

%post ipv6
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add ip6tables
fi

%preun ipv6
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del ip6tables
fi

%files
%config(noreplace) %_sysconfdir/sysconfig/iptables*
%doc INCOMPATIBILITIES
%config %_initdir/iptables
%_bindir/iptables*
/sbin/iptables*
%_man8dir/iptables*
%dir /%_lib/iptables
/%_lib/iptables/libipt*
/%_lib/iptables/libxt*
/%_lib/lib*.so.*
%_libdir/lib*.so.*
%_datadir/%name

%files ipv6
%config(noreplace) %_sysconfdir/sysconfig/ip6tables*
%config %_initdir/ip6tables
/sbin/ip6tables*
%_man8dir/ip6tables*
%dir /%_lib/iptables
/%_lib/iptables/libip6t*

%files devel
%_includedir/*
%_libdir/lib*.so
%_pkgconfigdir/*.pc
%_man3dir/*

%if_enabled static
%files devel-static
%_libdir/lib*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin