SPECS: p0f.spec - add p0f user and bind to local socket; rel 3
glen
glen at pld-linux.org
Sun Jan 15 23:31:52 CET 2006
Author: glen Date: Sun Jan 15 22:31:52 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add p0f user and bind to local socket; rel 3
---- Files affected:
SPECS:
p0f.spec (1.36 -> 1.37)
---- Diffs:
================================================================
Index: SPECS/p0f.spec
diff -u SPECS/p0f.spec:1.36 SPECS/p0f.spec:1.37
--- SPECS/p0f.spec:1.36 Mon Dec 5 00:10:18 2005
+++ SPECS/p0f.spec Sun Jan 15 23:31:46 2006
@@ -1,10 +1,9 @@
# $Revision$, $Date$
-# TODO: use ip instead of ifconfig in .init
Summary: Passive OS fingerprinting tool
Summary(pl): Narzędzie do pasywnej daktyloskopii systemów operacyjnych
Name: p0f
Version: 2.0.5
-Release: 2
+Release: 3
License: LGPL v2.1
Vendor: Michal Zalewski <lcamtuf at coredump.cx>
Group: Applications/Networking
@@ -21,9 +20,18 @@
Patch2: %{name}-masq_timestamp.patch
URL: http://lcamtuf.coredump.cx/p0f.shtml
BuildRequires: libpcap-devel
+BuildRequires: rpmbuild(macros) >= 1.202
Requires(post): fileutils
Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
Requires: rc-scripts
+Provides: group(p0f)
+Provides: user(p0f)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -74,6 +82,10 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+%groupadd -g 164 p0f
+%useradd -u 164 -c "p0f user" -g p0f p0f
+
%post
if [ ! -f /var/log/p0f ]; then
touch /var/log/p0f
@@ -95,6 +107,12 @@
/sbin/chkconfig --del p0f
fi
+%postun
+if [ "$1" = "0" ]; then
+ %userremove p0f
+ %groupremove p0f
+fi
+
%files
%defattr(644,root,root,755)
%doc doc/{CREDITS,KNOWN_BUGS,README,TODO,ChangeLog}
@@ -112,6 +130,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.37 2006/01/15 22:31:46 glen
+- add p0f user and bind to local socket; rel 3
+
Revision 1.36 2005/12/04 23:10:18 glen
- adapterized (sorted %verify flags)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/p0f.spec?r1=1.36&r2=1.37&f=u
More information about the pld-cvs-commit
mailing list