-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlist.spec
63 lines (48 loc) · 1.96 KB
/
netlist.spec
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $Owl: Owl/packages/netlist/netlist/netlist.spec,v 1.1 2006/03/23 23:20:07 solar Exp $
Summary: A program to list active Internet connections and sockets.
Name: netlist
Version: 2.1
Release: owl1
License: distributable
Group: System Environment/Base
URL: http://www.openwall.com/linux/
Source: ftp://ftp.openwall.com/pub/patches/linux/contrib/netlist-%version.tar.gz
BuildRoot: /override/%name-%version
%description
When run by a non-privileged user, netlist lists active Internet
connections and listening sockets of that user.
When run by root or a user with group access privileges for /proc,
netlist lists all active TCP, UDP, and raw sockets on the system.
netlist was created to oppose restrictive tendencies in security. Your
use of netlist must be in accordance with this intent. Please see the
LICENSE for information on this and other licensing conditions.
%prep
%setup -q
%build
%__make CFLAGS="-Wall %optflags"
%install
rm -rf %buildroot
make install DESTDIR=%buildroot BINDIR=%_bindir MANDIR=%_mandir
%post
grep -q '^proc:[^:]*:110:' /etc/group && \
chgrp proc %_bindir/netlist && chmod 2711 %_bindir/netlist
%files
%defattr(-,root,root)
%doc LICENSE
%verify(not mode group) %_bindir/netlist
%_mandir/man1/netlist.1*
%changelog
* Thu Mar 23 2006 stran9er <stra-at-owl.openwall.com> 2.1-owl1
- Merged upstream release 2.1 of July 5, 2005 into Owl:
Compatibility with 2.6 kernel and minor speed improvements.
* Sun Mar 19 2006 Dmitry V. Levin <ldv-at-owl.openwall.com> 2.0-owl4
- Updated /proc scanner for 2.6.x kernels.
* Mon Jun 02 2003 Solar Designer <solar-at-owl.openwall.com> 2.0-owl3
- Removed verify checks for size and group owner due to %post.
- Cleaned up the spec.
* Mon Jun 02 2003 Solar Designer <solar-at-owl.openwall.com> 2.0-owl2
- Added URL.
* Wed Feb 06 2002 Michail Litvak <mci-at-owl.openwall.com> 2.0-owl1
- Enforce our new spec file conventions
* Wed Nov 07 2001 Solar Designer <solar-at-owl.openwall.com>
- Wrote the man page, Makefile, and this spec file.