]> git.pld-linux.org Git - packages/unbound.git/commitdiff
- rel 2; create unbound user since it uses it by default
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Jan 2014 21:11:26 +0000 (22:11 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 21 Jan 2014 21:11:26 +0000 (22:11 +0100)
unbound.spec

index 8af81b38285af6563b79cfa35f844a17b017913d..1e235d1ab8114c9a259050dd62ade31f5ee9ebac 100644 (file)
@@ -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
 
This page took 0.166322 seconds and 4 git commands to generate.