[X2Go-Commits] [x2goserver] 04/05: x2goserver.spec: add new conffile /etc/tmpfiles.d/x2goserver.conf on systems that actually use/have systemd.
git-admin at x2go.org
git-admin at x2go.org
Wed Jan 24 11:55:58 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.
commit c58ac3dfee38c5e1dc397b6844a814ba11745c63
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Jan 24 10:57:08 2018 +0100
x2goserver.spec: add new conffile /etc/tmpfiles.d/x2goserver.conf on systems that actually use/have systemd.
---
debian/changelog | 2 ++
x2goserver.spec | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d38cc2f..4513312 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -94,6 +94,8 @@ x2goserver (4.0.1.23-0x2go1) UNRELEASED; urgency=medium
- Install new files x2go{checkport,get{free,random}port,queryconfig} into
the lib dir.
- Fix logic when checking for "distro version lower than X".
+ - Add new conffile /etc/tmpfiles.d/x2goserver.conf on systems that actually
+ use/have systemd.
-- X2Go Release Manager <git-admin at x2go.org> Sat, 11 Nov 2017 13:01:29 +0100
diff --git a/x2goserver.spec b/x2goserver.spec
index d551fd8..47c3345 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -476,6 +476,12 @@ EOF
rm -f "%{buildroot}/etc/sudoers.d/x2goserver"
%endif
+# Delete tmpfiles.d configuration file on systems
+# not using systemd.
+%if ( ! 0%{?fedora} ) && ( ( 0%{?rhel} && 0%{?rhel} < 7 ) || ( 0%{?suse_version} && 0%{?suse_version} < 1210 ) )
+rm -f "%{buildroot}/etc/tmpfiles.d/x2goserver.conf"
+%endif
+
%pre
if ! getent group x2gouser 1>/dev/null; then
groupadd -r x2gouser
@@ -645,6 +651,9 @@ fi
%endif
%dir %{_sysconfdir}/x2go/
%config(noreplace) %{_sysconfdir}/x2go/x2go*
+%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/x2goserver.conf
+%endif
%{_bindir}/x2go*
%exclude %{_bindir}/x2goserver-run-extensions
%exclude %{_bindir}/x2gofm
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list