diff --git a/.cvsignore b/.cvsignore index e69de29..929622e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +iptstate-1.3.tar.gz diff --git a/iptstate.spec b/iptstate.spec new file mode 100644 index 0000000..122f7cd --- /dev/null +++ b/iptstate.spec @@ -0,0 +1,66 @@ +Name: iptstate +Summary: A top-like display of IP Tables state table entries +Version: 1.3 +Release: 2 +Source: iptstate-%{version}.tar.gz +Patch0: iptstate-1.3-cpp_hdr.patch +Patch1: iptstate-1.3-destdir.patch +Patch2: iptstate-1.3-man8.patch +Group: System Environment/Base +URL: http://www.phildev.net/iptstate/ +BuildRoot: %{_tmppath}/%{name}-buildroot +License: distributable +Requires: iptables +BuildRequires: ncurses-devel +Prefix: %{_prefix} + +%description +IP Tables State (iptstate) was originally written to implement +the "state top" feature of IP Filter (see "The Idea" below) in +IP Tables. "State top" displays the states held by your stateful +firewall in a top-like manner. + +Since IP Tables doesn't have a built in way to easily display +this information even once, an option was added to just have it +display the state table once. + +Features include: + - Top-like realtime state table information + - Sorting by any field + - Reversible sorting + - Single display of state table + - Customizable refresh rate + - Open Source (specifically I'm using the zlib license) + + +%prep +rm -rf %{buildroot} + +%setup -q +%patch0 -p1 -b .cpp_hdr +%patch1 -p1 -b .destdir +mv man/man1 man/man8 +mv man/man8/iptstate.1 man/man8/iptstate.8 +%patch2 -p1 -b .man8 + +%build +make CXXFLAGS="$RPM_OPT_FLAGS" + +%install +make install DESTDIR=$RPM_BUILD_ROOT SBIN=$RPM_BUILD_ROOT%{_sbindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +%doc CONTRIB LICENSE README +%{_sbindir}/iptstate +%{_mandir}/man8/iptstate.* + +%changelog +* Mon Feb 2 2004 Thomas Woerner 1.3-2 +- added BuildRequires for ncurses-devel + +* Mon Jan 26 2004 Thomas Woerner 1.3-1 +- initial package diff --git a/sources b/sources index e69de29..bb631ce 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0fc7ce5e6803b18c73dcaadb4be2edd0 iptstate-1.3.tar.gz