From: frank Date: Tue, 1 Mar 2005 18:15:54 +0000 (+0000) Subject: corrected trigger usage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ef8f0148a7dbdffde9210080df31e987451934c;p=sope corrected trigger usage git-svn-id: http://svn.opengroupware.org/SOPE/trunk@605 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/maintenance/mod_ngobjweb_conectiva10.spec b/maintenance/mod_ngobjweb_conectiva10.spec index fb6a4ac7..f007f072 100644 --- a/maintenance/mod_ngobjweb_conectiva10.spec +++ b/maintenance/mod_ngobjweb_conectiva10.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_fedora.spec b/maintenance/mod_ngobjweb_fedora.spec index 8cd56849..04fb8a7e 100644 --- a/maintenance/mod_ngobjweb_fedora.spec +++ b/maintenance/mod_ngobjweb_fedora.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_mdk100.spec b/maintenance/mod_ngobjweb_mdk100.spec index 64c2ceef..0ac91f78 100644 --- a/maintenance/mod_ngobjweb_mdk100.spec +++ b/maintenance/mod_ngobjweb_mdk100.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_mdk101.spec b/maintenance/mod_ngobjweb_mdk101.spec index e4901044..3a7f5e72 100644 --- a/maintenance/mod_ngobjweb_mdk101.spec +++ b/maintenance/mod_ngobjweb_mdk101.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_redhat9.spec b/maintenance/mod_ngobjweb_redhat9.spec index 09830f79..9feb54e0 100644 --- a/maintenance/mod_ngobjweb_redhat9.spec +++ b/maintenance/mod_ngobjweb_redhat9.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_rhel3.spec b/maintenance/mod_ngobjweb_rhel3.spec index bd27b024..123a6ee2 100644 --- a/maintenance/mod_ngobjweb_rhel3.spec +++ b/maintenance/mod_ngobjweb_rhel3.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_sles9.spec b/maintenance/mod_ngobjweb_sles9.spec index f26adc02..a3c51c29 100644 --- a/maintenance/mod_ngobjweb_sles9.spec +++ b/maintenance/mod_ngobjweb_sles9.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_slss8.spec b/maintenance/mod_ngobjweb_slss8.spec index b97fd1bc..5a0cef7a 100644 --- a/maintenance/mod_ngobjweb_slss8.spec +++ b/maintenance/mod_ngobjweb_slss8.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_suse82.spec b/maintenance/mod_ngobjweb_suse82.spec index 04098470..16fc4c47 100644 --- a/maintenance/mod_ngobjweb_suse82.spec +++ b/maintenance/mod_ngobjweb_suse82.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_suse91.spec b/maintenance/mod_ngobjweb_suse91.spec index f26adc02..a3c51c29 100644 --- a/maintenance/mod_ngobjweb_suse91.spec +++ b/maintenance/mod_ngobjweb_suse91.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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 diff --git a/maintenance/mod_ngobjweb_suse92.spec b/maintenance/mod_ngobjweb_suse92.spec index f26adc02..a3c51c29 100644 --- a/maintenance/mod_ngobjweb_suse92.spec +++ b/maintenance/mod_ngobjweb_suse92.spec @@ -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,74 @@ 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 + if [ -f %{apache_conf_dir}/ogo-xmlrpcd.conf ]; then + rm -f %{apache_conf_dir}/ogo-xmlrpcd.conf + if [ -f %{apache_conf_dir}/ogo-zidestore.conf ]; then + rm -f %{apache_conf_dir}/ogo-zidestore.conf +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