From: cajus Date: Tue, 2 Dec 2008 14:06:00 +0000 (+0000) Subject: Updated package processor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=553acedcd5ac9acff7bcaf75d3a6723134fdde1a;p=gosa.git Updated package processor git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13117 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/redhat/README.selinux b/gosa-core/redhat/README.selinux new file mode 100644 index 000000000..8bfe609e3 --- /dev/null +++ b/gosa-core/redhat/README.selinux @@ -0,0 +1,9 @@ +These RPM-Packages do not support selinux. To make use of GOsa, please + +* Create a selinux policy for the RPM package to work correctly. Send + your work to pollmeier@gonicus.de in order to be included in the next + upstream package. + +* Disable selinux by typing + # setenforce 0 + diff --git a/gosa-core/redhat/rpm-make-gosa b/gosa-core/redhat/rpm-make-gosa index 43c6e4fd1..9bbfc6815 100755 --- a/gosa-core/redhat/rpm-make-gosa +++ b/gosa-core/redhat/rpm-make-gosa @@ -46,8 +46,6 @@ Requires: gosa >= 2.6.0, @@DEPENDS@@ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch -%define confdir /etc/%{name} - %if %{suse} %{echo:Building SuSE rpm} %define docdir /usr/share/doc/packages/gosa @@ -66,20 +64,45 @@ BuildArch: noarch %build %install -# Create buildroot -mkdir -p %{buildroot}/usr/share/gosa/plugins/%{name} -mv ./* %{buildroot}/usr/share/gosa/plugins/%{name} -#cp -ua ./@@NAME@@* %{buildroot}/usr/share/gosa/plugins/@@NAME@@ + +# Move extra HTML and images +mkdir -p %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ +mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@ + +# Move contrib if available +mkdir -p %{buildroot}/usr/share/doc/%{name} +if [ -d contrib ]; then + mv ./contrib %{buildroot}/usr/share/doc/%{name} +fi + +# Move help +mkdir -p %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ +mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@ + +# Move localization +mkdir -p %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ +mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@ + +# Move plugin itself +mkdir -p %{buildroot}/usr/share/gosa/plugins/@@NAME@@ +mv ./* %{buildroot}/usr/share/gosa/plugins/@@NAME@@ %post /usr/sbin/update-gosa +%postun +/usr/sbin/update-gosa + %clean rm -rf %{buildroot} %files %defattr(-,root,root) -%attr (-,root,root) /usr/share/gosa/plugins/%{name} +%attr (-,root,root) /usr/share/gosa/plugins/@@NAME@@ +%attr (-,root,root) /usr/share/gosa/doc/plugins/@@NAME@@ +%attr (-,root,root) /usr/share/gosa/locale/plugins/@@NAME@@ +%attr (-,root,root) /usr/share/gosa/html/plugins/@@NAME@@ +%attr (-,root,root) /usr/share/doc/%{name} EOF # Create eventually missing directories