[X2Go-Commits] [x2gobroker] 01/02: x2gobroker.spec: On SUSE, we have /etc/apache2, not /etc/httpd.

git-admin at x2go.org git-admin at x2go.org
Wed Oct 15 07:02:45 CEST 2014


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

x2go pushed a commit to branch master
in repository x2gobroker.

commit 84ab4c749e804fd9f4651e8ec9c92e7b8286935b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Oct 15 07:02:15 2014 +0200

    x2gobroker.spec: On SUSE, we have /etc/apache2, not /etc/httpd.
---
 debian/changelog |    1 +
 x2gobroker.spec  |   16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5266d2b..256d1ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -199,6 +199,7 @@ x2gobroker (0.0.3.0-0x2go1) UNRELEASED; urgency=low
     + Add x2gobroker-rpmlintrc file.
     + Don't package x2gobroker-daemon.1 nor x2gobroker-ssh.1 man pages
       twice.
+    + On SUSE, we have /etc/apache2, not /etc/httpd.
 
   [ Josh Lukens ]
   * New upstream version (0.0.3.0):
diff --git a/x2gobroker.spec b/x2gobroker.spec
index eacd6fb..fc0d92c 100644
--- a/x2gobroker.spec
+++ b/x2gobroker.spec
@@ -202,7 +202,11 @@ Group:          Productivity/Networking/Remote Desktop
 Group:          Applications/Communications
 %endif
 Requires:       x2gobroker = %{version}-%{release}
+%if 0%{?suse_version}
+Requires:       apache2, apache2-mod_wsgi
+%else
 Requires:       httpd, mod_wsgi
+%endif
 %if 0%{?suse_version}
 Requires:       python
 %else
@@ -321,11 +325,19 @@ make install PREFIX="%_prefix" LIBDIR="%_libexecdir/x2go" DESTDIR="$b"
 # Somewhat distro specific (especially the paths), thus this was not
 # done in the shipped tarball's Makefile
 #
+%if 0%{?suse_version}
+mkdir -p "$b/%_sysconfdir/apache2"/{conf.d,vhosts.d}
+ln -s "%_sysconfdir/x2go/x2gobroker-wsgi.apache.conf" \
+	"$b/%_sysconfdir/apache2/conf.d/x2gobroker-wsgi.conf"
+ln -s "%_sysconfdir/x2go/x2gobroker-wsgi.apache.vhost" \
+	"$b/%_sysconfdir/apache2/vhosts.d/x2gobroker-wsgi.sample"
+%else
 mkdir -p "$b/%_sysconfdir/httpd"/{conf.d,vhosts.d}
 ln -s "%_sysconfdir/x2go/x2gobroker-wsgi.apache.conf" \
 	"$b/%_sysconfdir/httpd/conf.d/x2gobroker-wsgi.conf"
 ln -s "%_sysconfdir/x2go/x2gobroker-wsgi.apache.vhost" \
 	"$b/%_sysconfdir/httpd/vhosts.d/x2gobroker-wsgi.sample"
+%endif
 
 %if 0%{?fedora} || 0%{?el7} || 0%{?suse_version} >= 1230
 # System.d session cleanup script
@@ -571,7 +583,11 @@ fi
 
 %files wsgi
 %defattr(-,root,root)
+%if 0%{suse_version}
+%_sysconfdir/apache2
+%else
 %_sysconfdir/httpd
+%endif
 %config %_sysconfdir/x2go/x2gobroker-wsgi.apache.conf
 %config %_sysconfdir/x2go/x2gobroker-wsgi.apache.vhost
 %config %_sysconfdir/logrotate.d/x2gobroker-wsgi

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


More information about the x2go-commits mailing list