summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c37b040)
raw | patch | inline | side by side (parent: c37b040)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 2 Dec 2008 14:06:00 +0000 (14:06 +0000) | ||
committer | cajus <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] | patch | blob |
gosa-core/redhat/rpm-make-gosa | patch | blob | history |
diff --git a/gosa-core/redhat/README.selinux b/gosa-core/redhat/README.selinux
--- /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)
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
-%define confdir /etc/%{name}
-
%if %{suse}
%{echo:Building SuSE rpm}
%define docdir /usr/share/doc/packages/gosa
%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