File: netstat-nat.spec

package info (click to toggle)
netstat-nat 1.4.10-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 380 kB
  • sloc: sh: 787; ansic: 755; makefile: 14
file content (47 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Summary 	: netstat-nat displays NAT connections
Name		: netstat-nat
Version		: 1.4.9
Release		: 1
License		: GPL
Packager	: Danny Wijsman <danny@tweegy.nl>
URL		: http://www.tweegy.nl/projects/netstat-nat/
Group		: System Environment/firewall
Source		: http://www.tweegy.nl/download/%{name}-%{version}.tar.gz
BuildRoot	: %{_tmppath}/%{name}-%{version}-root
Prefix		: %{_prefix}

%description
Netstat-nat is a small program written in C. It displays NAT connections, 
managed by netfilter/iptables which comes with the > 2.4.x linux kernels. The 
program reads its information from '/proc/net/ip_conntrack' or 
'/proc/net/nf_conntrack', which is the temporary conntrack-storage of 
netfilter. (http://www.netfilter.org/)
Netstat-nat takes several arguments (but not needed).

%prep
%setup

%build
rm -f aclocal.m4
autoreconf --force --install
./configure
make all

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
install -D -s -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m 444 netstat-nat.1 %{buildroot}%{_mandir}/man1/netstat-nat.1

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README AUTHORS INSTALL ChangeLog NEWS
%{_bindir}/%{name}
%{_mandir}/man*/*

%changelog
* Tue Dec 24 2002 Jose Pedro Oliveira <jpo@di.uminho.pt> 1.4.1-2
- removed a couple of rpmlint warnings