diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be66613 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libnetfilter_cttimeout-1.0.0.tar.bz2 diff --git a/.libnetfilter_cttimeout.metadata b/.libnetfilter_cttimeout.metadata new file mode 100644 index 0000000..b3df028 --- /dev/null +++ b/.libnetfilter_cttimeout.metadata @@ -0,0 +1 @@ +24cba24b0371e80007be4ea0fa9d872df63b8a7a SOURCES/libnetfilter_cttimeout-1.0.0.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/libnetfilter_cttimeout.spec b/SPECS/libnetfilter_cttimeout.spec new file mode 100644 index 0000000..6da5775 --- /dev/null +++ b/SPECS/libnetfilter_cttimeout.spec @@ -0,0 +1,63 @@ +Name: libnetfilter_cttimeout +Version: 1.0.0 +Release: 6%{?dist} +Summary: Timeout policy tuning for Netfilter/conntrack +Group: System Environment/Libraries +License: GPLv2+ +URL: http://netfilter.org +Source0: http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2 + +BuildRequires: libmnl-devel >= 1.0.0, pkgconfig, kernel-headers + +%description +This infrastructure allows you to define fine-grain timeout +policies per flow. Basically, from user-space, you can create +timeout policy objects via nfct_timeout_alloc(), set the +policy attributes, via nfct_timeout_*_attr_set(), and then +build the ctnetlink message to communicate this new timeout +policy to the kernel. + +%package devel +Summary: Timeout policy tuning for Netfilter/conntrack +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libmnl-devel >= 1.0.0 +Requires: kernel-headers + +%description devel +This infrastructure allows you to define fine-grain timeout +policies per flow. Basically, from user-space, you can create +timeout policy objects via nfct_timeout_alloc(), set the +policy attributes, via nfct_timeout_*_attr_set(), and then +build the ctnetlink message to communicate this new timeout +policy to the kernel. + +%prep +%setup -q + +%build +%configure --disable-static + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING README +%{_libdir}/*.so.* + +%files devel +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%dir %{_includedir}/libnetfilter_cttimeout +%{_includedir}/libnetfilter_cttimeout/*.h + +%changelog +* Fri Jun 19 2015 Paul Wouters - 1.0.0-6 +- Resolves: rhbz#1233221 Add libnetfilter_cttimeout package to RHEL-7