From eb2acb4ebf8b7c153ae33683ad640178dbbca82f Mon Sep 17 00:00:00 2001 From: Paul P Komkoff Jr Date: Oct 29 2007 23:21:47 +0000 Subject: conntrack-tools-0.9.5-3 --- diff --git a/.cvsignore b/.cvsignore index e69de29..26e1b61 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +conntrack-tools-0.9.5.tar.bz2 diff --git a/conntrack-tools-0.9.5-open.patch b/conntrack-tools-0.9.5-open.patch new file mode 100644 index 0000000..3af1838 --- /dev/null +++ b/conntrack-tools-0.9.5-open.patch @@ -0,0 +1,12 @@ +diff -urN conntrack-tools-0.9.5/src/main.c conntrack-tools-0.9.5.p/src/main.c +--- conntrack-tools-0.9.5/src/main.c 2007-07-07 13:10:13.000000000 +0100 ++++ conntrack-tools-0.9.5.p/src/main.c 2007-10-19 14:12:24.000000000 +0100 +@@ -264,7 +264,7 @@ + /* + * lock file + */ +- if ((ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC)) == -1) { ++ if ((ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC, S_IRUSR | S_IWUSR)) == -1) { + fprintf(stderr, "lockfile `%s' exists, perhaps conntrackd " + "already running?\n", CONFIG(lockfile)); + exit(EXIT_FAILURE); diff --git a/conntrack-tools.spec b/conntrack-tools.spec new file mode 100644 index 0000000..d33a475 --- /dev/null +++ b/conntrack-tools.spec @@ -0,0 +1,65 @@ +Name: conntrack-tools +Version: 0.9.5 +Release: 3%{?dist} +Summary: Tools to manipulate netfilter connection tracking table +Group: System Environment/Base +License: GPLv2 +URL: http://netfilter.org +Source0: http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2 +Patch0: conntrack-tools-0.9.5-open.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libnfnetlink-devel libnetfilter_conntrack-devel pkgconfig bison flex +Provides: conntrack = 1.0-1 +Obsoletes: conntrack < 1.0-1 + +%description +The conntrack-tools package contains two programs: +- conntrack: the command line interface to interact with the connection + tracking system. +- conntrackd: the connection tracking userspace daemon that can be used to + deploy highly available GNU/Linux firewalls and collect + statistics of the firewall use. + +conntrack is used to search, list, inspect and maintain the netfilter +connection tracking subsystem of the Linux kernel. +Using conntrack, you can dump a list of all (or a filtered selection of) +currently tracked connections, delete connections from the state table, +and even add new ones. +In addition, you can also monitor connection tracking events, e.g. +show an event message (one line) per newly established connection. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --disable-static +%{__make} %{?_smp_mflags} +find examples -type f | xargs chmod a-x + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING AUTHORS INSTALL TODO examples +%{_sbindir}/conntrack +%{_sbindir}/conntrackd +%{_mandir}/man8/* + +%changelog +* Tue Oct 23 2007 Paul P. Komkoff Jr - 0.9.5-3 +- review fixes + +* Sun Oct 21 2007 Paul P. Komkoff Jr - 0.9.5-2 +- review fixes + +* Fri Oct 19 2007 Paul P. Komkoff Jr - 0.9.5-1 +- new upstream version + +* Sun Jul 22 2007 Paul P. Komkoff Jr - 0.9.4-1 +- replace conntrack with conntrack-tools diff --git a/sources b/sources index e69de29..2495863 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c639e17ba6cbfce52b288a5105724f2d conntrack-tools-0.9.5.tar.bz2