]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
unound: Add missing configuration directories unbound
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 3 May 2015 15:09:56 +0000 (15:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 3 May 2015 15:09:56 +0000 (15:09 +0000)
unbound/unbound.nm

index c7f8eaae3c3f43cba6e8061746ead2381cd8565b..0bc050c88af39a47d6856a0e93f88741bcaabe8c 100644 (file)
@@ -30,6 +30,10 @@ build
                openssl-devel >= 1.0.1h-2
        end
 
+       prepare_cmds
+               %{create_user}
+       end
+
        configure_options += \
                --with-conf-file=%{sysconfdir}/%{name}/unbound.conf \
                --with-pidfile=%{localstatedir}/run/%{name}/%{name}.pid \
@@ -47,8 +51,11 @@ build
 
        install_cmds
                # Create directories.
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/unbound/{keys.d,conf.d,local.d}
                mkdir -pv %{BUILDROOT}%{localstatedir}/run/%{name}
+
                mkdir -pv %{BUILDROOT}%{sharedstatedir}/%{name}
+               chown -v unbound:unbound %{BUILDROOT}%{sharedstatedir}/%{name}
 
                # Install unbound config file.
                install -p -m 0664 %{DIR_SOURCE}/%{name}.conf \