[X2Go-Commits] [x2goserver] 02/03: x2goserver.spec: add sudo and logcheck as BuildRequires and Requires. Don't own directories that are owned by sudo and logcheck.

git-admin at x2go.org git-admin at x2go.org
Wed Mar 25 07:49:44 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit 21ce95285e39486cb63607e8840d98f9b5ea7939
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Mar 25 07:01:59 2015 +0100

    x2goserver.spec: add sudo and logcheck as BuildRequires and Requires. Don't own directories that are owned by sudo and logcheck.
    
    Logcheck is not available on *SUSE, FC < 20 and RHEL, so for those
    distros still own the directories.
---
 debian/changelog |    4 ++++
 x2goserver.spec  |   11 +++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 84c304f..6c3812c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -179,6 +179,10 @@ x2goserver (4.0.1.20-0x2go1) UNRELEASED; urgency=low
       Based on a patch submitted by Jason Alavaliant. Fixes: #812.
     - x2goserver/bin/x2gogetapps: do not print spurious newlines.
     - Change string "X2go" to "X2Go" where appropriate.
+    - Add sudo and logcheck as BuildRequires and Requires. Don't own
+      directories that are owned by sudo and logcheck. Logcheck is not
+      available on *SUSE, FC < 20 and RHEL, so for those distros still own the
+      directories.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Tue, 24 Feb 2015 22:11:49 +0100
 
diff --git a/x2goserver.spec b/x2goserver.spec
index 914248c..ca72f52 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -63,6 +63,12 @@ BuildRequires: xinit
 BuildRequires:  xorg-x11-xinit
 %endif
 
+# Packages only needed for file system paths.
+BuildRequires:  sudo
+%if 0%{?fedora} > 19 || 0%{?el5} || 0%{?el6} || 0%{?el7}
+BuildRequires:  logcheck
+%endif
+
 %if 0%{?suse_version}
 Requires:       openssh
 %else
@@ -588,10 +594,11 @@ fi
 %defattr(-,root,root)
 %doc debian/copyright
 %doc debian/changelog
-%if 0%{?suse_version}
+# logcheck is not available on OpenSUSE, SLES/SLED, FC19 and RHEL.
+# Please re-check this periodically.
+%if 0%{?suse_version} || 0%{?fedora} < 20 || 0%{?rhel}
 %dir %{_sysconfdir}/logcheck
 %dir %{_sysconfdir}/logcheck/ignore.d.server
-%dir %{_sysconfdir}/sudoers.d
 %endif
 %config(noreplace) %{_sysconfdir}/logcheck/ignore.d.server/x2goserver
 %config(noreplace) %{_sysconfdir}/sudoers.d/x2goserver

--
Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list