Name: mod-globule-local Version: 1.3.2 Release: 1 Requires: httpd-local >= 2.0.48 Copyright: GPL Group: System Environment/Daemons Source: ftp://globule.revolutionware.net/pub/globule/mod-globule-%{version}.tar.gz URL: http://www.globule.org/ Distribution: Vrije Universiteit Software Packaging Vendor: Vrije Universiteit, the Netherlands Packager: Berry van Halderen Summary: An Apache2 module providing transparent replication of web pages. Icon: apache.xpm Prefix: /usr/local/globule %description Globule is a platform which allows a Web server to automatically replicate its documents to other Web servers, to maintain replicas consistent using adaptive replication policies, and to transparently redirect users to the best replica. It does so by negociating resource allocation with remote servers in a peer-to-peer fashion. %prep %setup -n mod-globule-%{version} %build ./configure --with-apache=/usr/local/globule --enable-globuleadm make %install rm -f /usr/lib/httpd/modules/mod_globule make install if [ -f /usr/lib/httpd/modules/mod_globule ] ; then mv /usr/lib/httpd/modules/mod_globule /usr/lib/httpd/modules/mod_globule.so mv /usr/lib/httpd/modules/mod_globule-%{version} /usr/lib/httpd/modules/mod_globule-%{version}.so fi if [ -f /etc/httpd/conf/httpd-globule.conf ] ; then sed < /etc/httpd/conf/httpd-globule.conf \ > /etc/httpd/conf/httpd-globule.conf~ \ -e '/^LoadModule globule_module/p' \ -e '/^LoadModule/d' \ -e '/^LogFormat.*%I/d' mv /etc/httpd/conf/httpd-globule.conf~ /etc/httpd/conf/httpd-globule.conf fi %post #ipaddr=`ifconfig eth0 | sed -e 's/.*inet addr:\([0-9\.]*\).*/\1/p' -e d` #echo >&2 "Registering $ipaddr.." #wget -o /dev/null "http://globule.revolutionware.net/htbin/globule-register-test.cgi?$ipaddr:8080" cat <> /usr/local/globule/conf/httpd-std.conf LoadModule globule_module modules/mod_globule.so ImportFrom http://globule.revolutionware.net:8080/export/ geheim MaxDiskSpace 64 MaxMetaDocsInMemory 10000 END if [ -z "$RPM_INSTALL_PREFIX" -o "$RPM_INSTALL_PREFIX" = "/" ] ; then RPM_INSTALL_PREFIX=/usr/local/globule fi path=`echo $RPM_INSTALL_PREFIX | sed -e 's/\//\\\\\//g'` %files # %doc README # %config /usr/local/globule/conf/httpd.conf /usr/local/globule/modules/mod_globule.so /usr/local/globule/modules/mod_globule-%{version}.so /usr/local/globule/bin/globuleutil /usr/local/globule/conf/httpd-globule.conf /usr/local/globule/htdocs/globuleadm