[packages/unbound] - rel 2; create unbound user since it uses it by default
arekm
arekm at pld-linux.org
Tue Jan 21 22:11:29 CET 2014
commit 5c77fe31deac87653553ce5c2d64e92feaf8477b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jan 21 22:11:26 2014 +0100
- rel 2; create unbound user since it uses it by default
unbound.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/unbound.spec b/unbound.spec
index 8af81b3..1e235d1 100644
--- a/unbound.spec
+++ b/unbound.spec
@@ -6,7 +6,7 @@ Summary: Recursive, validating DNS resolver
Summary(pl.UTF-8): Rekurencyjny, weryfikujący resolver DNS
Name: unbound
Version: 1.4.21
-Release: 1
+Release: 2
License: BSD
Group: Applications/Network
Source0: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
@@ -131,12 +131,20 @@ rm -rf $RPM_BUILD_ROOT
/sbin/chkconfig --add %{name}
%service %{name} restart
+%pre
+%useradd -u 196 -g 99 -d /tmp -s /bin/false -c "unbound user" unbound
+
%preun
if [ "$1" = "0" ]; then
%service -q %{name} stop
/sbin/chkconfig --del %{name}
fi
+%postun
+if [ "$1" = "0" ]; then
+ %userremove unbound
+fi
+
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/unbound.git/commitdiff/5c77fe31deac87653553ce5c2d64e92feaf8477b
More information about the pld-cvs-commit
mailing list