]> err.no Git - sope/commitdiff
added support for Conectiva 10
authorfrank <frank@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 12 Jan 2005 15:50:25 +0000 (15:50 +0000)
committerfrank <frank@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 12 Jan 2005 15:50:25 +0000 (15:50 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@507 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

maintenance/mod_ngobjweb_conectiva10.spec [new file with mode: 0644]

diff --git a/maintenance/mod_ngobjweb_conectiva10.spec b/maintenance/mod_ngobjweb_conectiva10.spec
new file mode 100644 (file)
index 0000000..8fa7999
--- /dev/null
@@ -0,0 +1,78 @@
+Summary:      mod_ngobjweb apache module
+Name:         mod_ngobjweb
+Version:      %{mod_ngobjweb_version}
+Release:      %{mod_ngobjweb_release}.%{mod_ngobjweb_buildcount}%{dist_suffix}
+Vendor:       OpenGroupware.org
+Packager:     Frank Reppin <frank@opengroupware.org>  
+License:      LGPL
+URL:          http://sope.opengroupware.org/
+Group:        Development/Libraries
+AutoReqProv:  off
+Requires:     apache ogo-environment
+Source:       %{mod_ngobjweb_source}
+Prefix:       %{mod_ngobjweb_prefix}
+BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+Enables apache to handle HTTP requests for the
+OpenGroupware.org application server
+
+%prep
+rm -fr ${RPM_BUILD_ROOT}
+%setup -n sope-mod_ngobjweb
+
+# ****************************** build ********************************
+%build
+export PATH=$PATH:/usr/sbin
+make %{mod_ngobjweb_makeflags} APXS_INCLUDE_DIRS="-I/usr/include/apache"
+
+# ****************************** install ******************************
+%install
+export PATH=$PATH:/usr/sbin
+mkdir -p ${RPM_BUILD_ROOT}/usr/lib/apache/modules
+cp mod_ngobjweb.so ${RPM_BUILD_ROOT}/usr/lib/apache/modules/
+
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/apache/conf/conf.d/
+echo "#this file contains the apache/httpd configuration for OpenGroupware.org
+#it should be included from within your default httpd.conf ala:
+#\`include OGo.conf\`
+#(or copy it into the dir where additonal configs end up - usually conf.d/)
+#
+LoadModule ngobjweb_module %{_usr}/lib/apache/modules/mod_ngobjweb.so
+#
+Alias /OpenGroupware10a.woa/WebServerResources/ %{prefix}/share/opengroupware.org-1.0a/www/
+Alias /ArticleImages %{_var}/lib/opengroupware.org/news
+#
+<LocationMatch "^/OpenGroupware*">
+  SetAppPort 20000
+  SetHandler ngobjweb-adaptor
+</LocationMatch>
+#
+<LocationMatch "^/zidestore/*">
+  SetHandler ngobjweb-adaptor
+  SetAppPort 21000
+</LocationMatch>
+#
+<LocationMatch "^/RPC2*">
+  SetHandler ngobjweb-adaptor
+  SetAppPort 22000
+</LocationMatch>
+" > ${RPM_BUILD_ROOT}%{_sysconfdir}/apache/conf/conf.d/OGo.conf
+
+# ****************************** post *********************************
+%post
+
+# ****************************** clean ********************************
+%clean
+rm -fr ${RPM_BUILD_ROOT}
+
+# ****************************** files ********************************
+%files
+%defattr(-,root,root,-)
+%{_usr}/lib/apache/modules/mod_ngobjweb.so
+%config %{_sysconfdir}/apache/conf/conf.d/OGo.conf
+
+# ********************************* changelog *************************
+%changelog
+* Wed Jan 12 2005 Frank Reppin <frank@opengroupware.org>
+- initial build