packages: tcpdump/tcpdump.spec - rel 2; switch uid to own tcpdump user

arekm arekm at pld-linux.org
Sat Dec 3 12:45:55 CET 2011


Author: arekm                        Date: Sat Dec  3 11:45:55 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 2; switch uid to own tcpdump user

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

---- Diffs:

================================================================
Index: packages/tcpdump/tcpdump.spec
diff -u packages/tcpdump/tcpdump.spec:1.88 packages/tcpdump/tcpdump.spec:1.89
--- packages/tcpdump/tcpdump.spec:1.88	Mon Nov 28 18:49:22 2011
+++ packages/tcpdump/tcpdump.spec	Sat Dec  3 12:45:50 2011
@@ -14,7 +14,7 @@
 Summary(uk.UTF-8):	Інструмент для моніторингу мережевого трафіку
 Name:		tcpdump
 Version:	4.2.0
-Release:	1
+Release:	2
 Epoch:		1
 License:	BSD
 Group:		Networking/Utilities
@@ -82,6 +82,7 @@
 	CFLAGS="-I. %{rpmcflags} %{rpmcppflags}" \
 	%{?with_smi:--with-smi} \
 	--enable-ipv6 \
+	--with-user=tcpdump \
 	--with-chroot=/usr/share/empty
 %{__make}
 
@@ -93,6 +94,15 @@
 
 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
+
+%postun
+if [ "$1" = "0" ]; then
+	%userremove tcpdump
+fi
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -108,6 +118,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.89  2011/12/03 11:45:50  arekm
+- rel 2; switch uid to own tcpdump user
+
 Revision 1.88  2011/11/28 17:49:22  arekm
 - up to 4.2.0
 
================================================================

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



More information about the pld-cvs-commit mailing list