Code

Updated build script
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Oct 2009 08:35:48 +0000 (08:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Oct 2009 08:35:48 +0000 (08:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14589 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/redhat/rpm-make-gosa

index 5d0a865f67782855364a95f7b8a7507f825d4344..35afae34cd3551571ee7626dd54827f5569b0f4f 100755 (executable)
@@ -81,25 +81,31 @@ mkdir -p %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@
 
 echo "%{buildroot} <<---------" 
 
-if [ -d html ]; then
+if [ -e ./html/* ]; then
        mv ./html/* %{buildroot}/usr/share/gosa/html/plugins/@@NAME@@
 fi
 
 # Move contrib if available
 mkdir -p %{buildroot}/usr/share/doc/%{name}
-if [ -d contrib ]; then
+if [ -e ./contrib/* ]; then
        mv ./contrib %{buildroot}/usr/share/doc/%{name}
 fi
 
 # Move help
 mkdir -p %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@
-if [ -d help ]; then
+if [ -e ./help/* ]; then
        mv ./help/* %{buildroot}/usr/share/gosa/doc/plugins/@@NAME@@
 fi
 
+# Copy etc
+mkdir -p %{buildroot}/etc/gosa
+if [ -e ./etc/* ]; then
+       mv ./etc/* %{buildroot}/etc/gosa
+fi
+
 # Move localization
 mkdir -p %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@
-if [ -d locale ]; then
+if [ -e ./locale/* ]; then
        mv ./locale/* %{buildroot}/usr/share/gosa/locale/plugins/@@NAME@@
 fi
 
@@ -123,6 +129,7 @@ rm -rf %{buildroot}
 %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}
+%attr (-,root,root) /etc/gosa/
 EOF
 
 # Create eventually missing directories