packages: tcpdump/tcpdump.spec - useradd deps

glen glen at pld-linux.org
Sun Dec 4 21:18:03 CET 2011


Author: glen                         Date: Sun Dec  4 20:18:03 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- useradd deps

---- Files affected:
packages/tcpdump:
   tcpdump.spec (1.89 -> 1.90) 

---- Diffs:

================================================================
Index: packages/tcpdump/tcpdump.spec
diff -u packages/tcpdump/tcpdump.spec:1.89 packages/tcpdump/tcpdump.spec:1.90
--- packages/tcpdump/tcpdump.spec:1.89	Sat Dec  3 12:45:50 2011
+++ packages/tcpdump/tcpdump.spec	Sun Dec  4 21:17:57 2011
@@ -14,7 +14,7 @@
 Summary(uk.UTF-8):	Інструмент для моніторингу мережевого трафіку
 Name:		tcpdump
 Version:	4.2.0
-Release:	2
+Release:	3
 Epoch:		1
 License:	BSD
 Group:		Networking/Utilities
@@ -27,7 +27,12 @@
 BuildRequires:	libpcap-devel >= 2:1.2.0
 %{?with_libsmi:BuildRequires:	libsmi-devel}
 BuildRequires:	openssl-devel >= 0.9.7d
+BuildRequires:	rpmbuild(macros) >= 1.202
 Requires:	libpcap >= 2:1.2.0
+Provides:	user(tcpdump)
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
+Requires(pre):	/usr/sbin/useradd
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -88,11 +93,10 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{_sbindir}/tcpdump.%{version}
+%{__rm} $RPM_BUILD_ROOT%{_sbindir}/tcpdump.%{version}
 
 %pre
 %useradd -u 273 -r -d /usr/share/empty -s /bin/false -c "tcpdump User" -g nobody tcpdump
@@ -102,7 +106,6 @@
 	%userremove tcpdump
 fi
 
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -118,6 +121,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.90  2011/12/04 20:17:57  glen
+- useradd deps
+
 Revision 1.89  2011/12/03 11:45:50  arekm
 - rel 2; switch uid to own tcpdump user
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tcpdump/tcpdump.spec?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list