Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
name = unbound
version = 1.17.0
-release = 4
+release = 5
groups = System/Daemons
url = https://www.nlnetlabs.nl/unbound/
openssl-devel >= 1.0.1h-2
python3-devel >= 3.4
swig
+ systemd-sysusers
end
configure_options += \
--with-pythonmodule \
--with-pyunbound PYTHON=%{python3}
- prepare_cmds
- %{create_user}
- end
-
test
make check
end
end
end
-create_user
- getent group unound >/dev/null || /usr/sbin/groupadd -r unbound
- getent passwd unbound >/dev/null || /usr/sbin/useradd -r -g unbound \
- -d %{sysconfdir}/%{name} -s /sbin/nologin unbound
-end
-
packages
package %{name}
- prerequires
- shadow-utils
- systemd-units
- end
-
requires += \
openssl >= 1.0.1h-2
%{sysconfdir}/%{name}/keys.d/
end
- script prein
- %{create_user}
- end
-
script postin
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
--- /dev/null
+u unbound - "User for the unbound DNS resolver" /etc/unbound /usr/sbin/nologin