Author: glen                         Date: Sun Feb 27 20:00:39 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new horde app

---- Files affected:
SPECS:
   ingo.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ingo.spec
diff -u /dev/null SPECS/ingo.spec:1.1
--- /dev/null   Sun Feb 27 21:00:39 2005
+++ SPECS/ingo.spec     Sun Feb 27 21:00:33 2005
@@ -0,0 +1,144 @@
+# $Revision$, $Date$
+%include       /usr/lib/rpm/macros.php
+Summary:       Ingo is an email filter rules manager
+Name:          ingo
+Version:       1.0.1
+Release:       0.6
+License:       GPL v2
+Group:         Networking/Utilities
+Source0:       http://ftp.horde.org/pub/ingo/%{name}-h3-%{version}.tar.gz
+# Source0-md5: 7fce229d752e5b981621e215e4fc56e8
+Source1:       %{name}.conf
+Patch0:                %{name}-path.patch
+URL:           http://www.horde.org/ingo/
+Requires:      apache >= 1.3.33-2
+Requires:      horde >= 3.0
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# horde accesses it directly in help->about
+%define                _noautocompressdoc  CREDITS
+%define                _noautoreq      'pear(Horde.*)'
+
+%define                hordedir        /usr/share/horde
+%define                _appdir         %{hordedir}/%{name}
+%define                _sysconfdir     /etc/horde.org
+%define                _apache1dir     /etc/apache
+%define                _apache2dir     /etc/httpd
+
+%description
+Ingo currently supports the following filtering drivers:
+- Sieve (using timsieved)
+- procmail (using VFS FTP driver)
+- IMAP client-side filtering
+
+Ingo has replaced IMP's internal filtering code and is the default
+filtering agent in IMP H3 (4.0).
+
+The Horde Project writes web applications in PHP and releases them
+under the GNU Public License. For more information (including help
+with Ingo) please visit <http://www.horde.org/>.
+
+%prep
+%setup -q -n %{name}-h3-%{version}
+%patch0 -p1
+
+# considered harmful (horde/docs/SECURITY)
+rm -f test.php
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
+       $RPM_BUILD_ROOT%{_appdir}/{docs,lib,locale,templates,themes}
+
+cp -pR *.php                   $RPM_BUILD_ROOT%{_appdir}
+for i in config/*.dist; do
+       cp -p $i $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$(basename $i .dist)
+done
+cp -pR config/*.xml            $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+
+echo "<?php ?>" >              $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.php
+sed -e '
+       
s,dirname(__FILE__).*/cvsgraph.conf.,%{_sysconfdir}/%{name}/cvsgraph.conf,
+' < config/conf.xml > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.xml
+> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.php.bak
+
+cp -pR  lib/*                   $RPM_BUILD_ROOT%{_appdir}/lib
+cp -pR  locale/*                $RPM_BUILD_ROOT%{_appdir}/locale
+cp -pR  templates/*             $RPM_BUILD_ROOT%{_appdir}/templates
+cp -pR  themes/*                $RPM_BUILD_ROOT%{_appdir}/themes
+
+ln -s %{_sysconfdir}/%{name}   $RPM_BUILD_ROOT%{_appdir}/config
+ln -s %{_defaultdocdir}/%{name}-%{version}/CREDITS 
$RPM_BUILD_ROOT%{_appdir}/docs
+
+install %{SOURCE1}             
$RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ ! -f %{_sysconfdir}/%{name}/conf.php.bak ]; then
+       install /dev/null -o root -g http -m660 
%{_sysconfdir}/%{name}/conf.php.bak
+fi
+
+# apache1
+if [ -d %{_apache1dir}/conf.d ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf 
%{_apache1dir}/conf.d/99_%{name}.conf
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
+       fi
+fi
+# apache2
+if [ -d %{_apache2dir}/httpd.conf ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf 
%{_apache2dir}/httpd.conf/99_%{name}.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       # apache1
+       if [ -d %{_apache1dir}/conf.d ]; then
+               rm -f %{_apache1dir}/conf.d/99_%{name}.conf
+               if [ -f /var/lock/subsys/apache ]; then
+                       /etc/rc.d/init.d/apache restart 1>&2
+               fi
+       fi
+       # apache2
+       if [ -d %{_apache2dir}/httpd.conf ]; then
+               rm -f %{_apache2dir}/httpd.conf/99_%{name}.conf
+               if [ -f /var/lock/subsys/httpd ]; then
+                       /etc/rc.d/init.d/httpd restart 1>&2
+               fi
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README docs/*
+%attr(750,root,http) %dir %{_sysconfdir}/%{name}
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/apache-%{name}.conf
+%attr(660,root,http) %config(noreplace) %{_sysconfdir}/%{name}/conf.php
+%attr(660,root,http) %config(noreplace) %ghost 
%{_sysconfdir}/%{name}/conf.php.bak
+%attr(640,root,http) %config(noreplace) %{_sysconfdir}/%{name}/[!c]*.php
+%attr(640,root,http) %{_sysconfdir}/%{name}/*.xml
+
+%dir %{_appdir}
+%{_appdir}/*.php
+%{_appdir}/config
+%{_appdir}/docs
+%{_appdir}/lib
+%{_appdir}/locale
+%{_appdir}/templates
+%{_appdir}/themes
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/02/27 20:00:33  glen
+- new horde app
+
================================================================

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to