Code

Updated package processor
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:06:00 +0000 (14:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Dec 2008 14:06:00 +0000 (14:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13117 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/README.selinux [new file with mode: 0644]
gosa-core/redhat/rpm-make-gosa

diff --git a/gosa-core/redhat/README.selinux b/gosa-core/redhat/README.selinux
new file mode 100644 (file)
index 0000000..8bfe609
--- /dev/null
@@ -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
+
index 43c6e4fd1f41c51a0c9bb92d14f284a250962882..9bbfc68155edc6bf603938195352c7fc03f19d16 100755 (executable)
@@ -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