name = iproute2
version = 3.14.0
-release = 1
+release = 2
groups = Networking/Tools
url = http://www.linuxfoundation.org/en/Net:Iproute2
libdb-devel
libnl-devel
linux-atm-devel >= 2.5.1
- iptables-devel >= 1.4.19
end
prepare_cmds
ln -svf lnstat %{BUILDROOT}%{sbindir}/rtstat
# Install libs.
- for lib in tc/q_atm.so tc/m_xt.so; do
- install -v -m 755 ${lib} %{BUILDROOT}%{libdir}/tc
- done
- ln -svf m_xt.so %{BUILDROOT}%{libdir}/tc/m_ipt.so
+ install -v -m 755 tc/q_atm.so %{BUILDROOT}%{libdir}/tc
# libnetlink
install -v -m 644 include/libnetlink.h %{BUILDROOT}%{includedir}
+++ /dev/null
-###############################################################################
-# IPFire.org - An Open Source Firewall Solution #
-# Copyright (C) - IPFire Development Team <info@ipfire.org> #
-###############################################################################
-
-name = iptables
-version = 1.4.19.1
-release = 1
-
-groups = Networking/Tools
-url = http://www.netfilter.org/
-license = GPL+
-summary = Tools for managing Linux kernel packet filtering capabilities.
-
-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.
-end
-
-source_dl = http://ftp.netfilter.org/pub/iptables/
-sources = %{thisapp}.tar.bz2
-
-build
- requires
- libnfnetlink-devel
- libselinux-devel
- end
-
- CFLAGS += -fno-strict-aliasing
-
- configure_options += \
- --libexecdir=/%{lib} \
- --sysconfdir=/etc \
- --with-pkgconfigdir=%{libdir}/pkgconfig \
- --mandir=/usr/share/man \
- --with-kernel=/usr \
- --with-kbuild=/usr \
- --with-ksource=/usr \
- --enable-devel \
- --enable-libipq
-
- prepare_cmds
- # Make more space for target name on output.
- sed -e "s/%-9s/%-18s/g" -i iptables/ip{,6}tables.c
-
- sed -i extensions/GNUmakefile* \
- -e "s@ip6t_NETMAP_LIBADD.*@& -L../libiptc/.libs@"
- end
-
- install_cmds
- # install ip*tables.h header files
- mkdir -pv %{BUILDROOT}/usr/include/{iptables,libiptc}
- install -v -m 644 include/ip{,6}tables.h \
- %{BUILDROOT}/usr/include
- install -v -m 644 include/iptables/internal.h \
- %{BUILDROOT}/usr/include/iptables/
- install -v -m 644 include/libiptc/*.h \
- %{BUILDROOT}/usr/include/libiptc
-
- # Remove relative symlinks.
- ln -svf ../sbin/xtables-multi %{BUILDROOT}/usr/bin/iptables-xml
- end
-end
-
-packages
- package %{name}
- groups += Base
- end
-
- package %{name}-devel
- template DEVEL
- end
-
- package %{name}-debuginfo
- template DEBUGINFO
- end
-end