X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fmod_ngobjweb_suse92.spec;h=be8a72a87aa0bf9207ff9cb4dba30ae8b6d41e22;hb=4790fa3e19396c5970c9af0227d8f7987a692d4b;hp=f26adc0202f6d4704e1a3e0e257a5866a8ede3af;hpb=0118e724a4af6fb7f26ebd96ec8e30e05c301e3c;p=sope
diff --git a/maintenance/mod_ngobjweb_suse92.spec b/maintenance/mod_ngobjweb_suse92.spec
index f26adc02..be8a72a8 100644
--- a/maintenance/mod_ngobjweb_suse92.spec
+++ b/maintenance/mod_ngobjweb_suse92.spec
@@ -23,7 +23,7 @@ OpenGroupware.org application server.
%prep
rm -fr ${RPM_BUILD_ROOT}
-%setup -n sope-mod_ngobjweb
+%setup -q -n sope-mod_ngobjweb
# ****************************** build ********************************
%build
@@ -62,7 +62,7 @@ if [ $1 = 0 ]; then
fi
# ****************************** trigger ******************************
-%triggerin -- ogo-webui-app, ogoall
+%triggerin -- ogo-webui-app
if [ $2 = 1 ]; then
echo "# configuration needed to access the OGo webui
#
@@ -85,7 +85,7 @@ Alias /ArticleImages %{_var}/lib/opengroupware.org/news
" >%{apache_conf_dir}/ogo-webui.conf
fi
-%triggerin -- ogo-xmlrpcd, ogoall
+%triggerin -- ogo-xmlrpcd
if [ $2 = 1 ]; then
echo "# configuration needed to access the OGo XMLRPCd via http
#
@@ -99,7 +99,7 @@ echo "# configuration needed to access the OGo XMLRPCd via http
" >%{apache_conf_dir}/ogo-xmlrpcd.conf
fi
-%triggerin -- ogo-zidestore, ogoall
+%triggerin -- ogo-zidestore
if [ $2 = 1 ]; then
echo "# configuration needed to access the OGo ZideStore via http
#
@@ -113,21 +113,77 @@ echo "# configuration needed to access the OGo ZideStore via http
" >%{apache_conf_dir}/ogo-zidestore.conf
fi
-%triggerun -- ogo-webui-app, ogoall
+%triggerin -- ogoall
+if [ $2 = 1 ]; then
+echo "# configuration needed to access the OGo webui
+#
+# explicitly allow access
+
+ Order allow,deny
+ Allow from all
+
+# required aliases
+Alias /OpenGroupware10a.woa/WebServerResources/ %{prefix}/share/opengroupware.org-1.0a/www/
+Alias /ArticleImages %{_var}/lib/opengroupware.org/news
+#
+# hook up
+
+
+ SetAppPort 20000
+ SetHandler ngobjweb-adaptor
+
+
+" >%{apache_conf_dir}/ogo-webui.conf
+echo "# configuration needed to access the OGo XMLRPCd via http
+#
+# hook up
+
+
+ SetAppPort 22000
+ SetHandler ngobjweb-adaptor
+
+
+" >%{apache_conf_dir}/ogo-xmlrpcd.conf
+echo "# configuration needed to access the OGo ZideStore via http
+#
+# hook up
+
+
+ SetAppPort 21000
+ SetHandler ngobjweb-adaptor
+
+
+" >%{apache_conf_dir}/ogo-zidestore.conf
+fi
+
+%triggerun -- ogoall
+if [ $2 = 0 ]; then
+ if [ -f %{apache_conf_dir}/ogo-webui.conf ]; then
+ rm -f %{apache_conf_dir}/ogo-webui.conf
+ fi
+ if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then
+ rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf
+ fi
+ if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then
+ rm -f %{apache_conf_dir}/ogo-zidestore.conf
+ fi
+fi
+
+%triggerun -- ogo-webui-app
if [ $2 = 0 ]; then
if [ -f %{apache_conf_dir}/ogo-webui.conf ]; then
rm -f %{apache_conf_dir}/ogo-webui.conf
fi
fi
-%triggerun -- ogo-xmlrpcd, ogoall
+%triggerun -- ogo-xmlrpcd
if [ $2 = 0 ]; then
if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then
rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf
fi
fi
-%triggerun -- ogo-zidestore, ogoall
+%triggerun -- ogo-zidestore
if [ $2 = 0 ]; then
if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then
rm -f %{apache_conf_dir}/ogo-zidestore.conf