steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/turba/packaging/redhat rh9-turba.spec, NONE, 1.1 turba.README, NONE, 1.1 turba.conf, NONE, 1.1 turba.spec, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Mon Oct 31 12:43:42 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-fbview/kolab-horde-fbview/fbview/turba/packaging/redhat
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/turba/packaging/redhat

Added Files:
	rh9-turba.spec turba.README turba.conf turba.spec 
Log Message:
Fbview in separate package

--- NEW FILE: rh9-turba.spec ---
#
#  File: rh9-turba.spec
#  $Horde: turba/packaging/redhat/rh9-turba.spec,v 1.1 2003/04/29 00:28:48 bjn Exp $
#
#  This is the SPEC file for the Turba Red Hat 9 RPMs/SRPM.
#

%define apachedir /etc/httpd
%define apacheuser apache
%define apachegroup apache
%define contentdir /var/www

Summary: The Horde contact management application.
Name: turba
Version: 1.2
Release: 1
Copyright: GPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/turba/turba-%{version}.tar.gz
Source1: turba.conf
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
BuildArchitectures: noarch
BuildRoot: /tmp/turba-root
Requires: php >= 4.2.1
Requires: httpd >= 2.0.40
Requires: horde >= 2.0
Prereq: /usr/bin/perl

%description
Turba is the Horde contact management application, which allows access
to and storage of personal contacts (including name, email address,
phone number, and other easily customizable fields).  Turba integrates
with IMP (Horde's webmail application) as its address book.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Turba)
please visit http://www.horde.org/.

%prep
%setup -q -n %{name}-%{version}

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf.d
cp -p $RPM_SOURCE_DIR/turba.conf $RPM_BUILD_ROOT%{apachedir}/conf.d
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/turba
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/turba
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/turba/config
for d in *.dist; do
	d0=`basename $d .dist`
	if [ ! -f "$d0" ]; then
		cp -p $d $d0
	fi
done

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%pre

%post
# post-install instructions:
cat <<_EOF_
You must manually configure Turba and create any required database tables!
See "CONFIGURING TURBA" in %{contentdir}/html/horde/turba/docs/INSTALL
You must also restart Apache with "service httpd restart"!
_EOF_

%postun
if [ $1 -eq 0 ]; then
	cat <<_EOF2_
You must restart Apache with "service httpd restart"!
_EOF2_
fi

%files
%defattr(-,root,root)
# Apache turba.conf file
%config %{apachedir}/conf.d/turba.conf
# Include top level with %dir so not all files are sucked in
%dir %{contentdir}/html/horde/turba
# Include top-level files by hand
%{contentdir}/html/horde/turba/*.php
# Include these dirs so that all files _will_ get sucked in
%{contentdir}/html/horde/turba/graphics
%{contentdir}/html/horde/turba/lib
%{contentdir}/html/horde/turba/locale
%{contentdir}/html/horde/turba/po
%{contentdir}/html/horde/turba/scripts
%{contentdir}/html/horde/turba/templates
# Mark documentation files with %doc and %docdir
%doc %{contentdir}/html/horde/turba/COPYING
%doc %{contentdir}/html/horde/turba/README
%docdir %{contentdir}/html/horde/turba/docs
%{contentdir}/html/horde/turba/docs
# Mark configuration files with %config and use secure permissions
# (note that .dist files are considered software; don't mark %config)
%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/turba/config
%defattr(640,root,%{apachegroup})
%{contentdir}/html/horde/turba/config/.htaccess
%{contentdir}/html/horde/turba/config/*.dist
%config %{contentdir}/html/horde/turba/config/*.php

%changelog
* Mon Apr 28 2003 Brent J. Nordquist <bjn at horde.org> 1.2-1
- First release, 1.2-1


--- NEW FILE: turba.README ---
Turba RPMs                                                      turba.README
=--------------------------------------------------------------------------=

$Horde: turba/packaging/redhat/turba.README,v 1.1 2001/12/15 12:45:11 bjn Exp $


Please consult the Horde RPMs README file:

    horde/packaging/redhat/horde.README

--- NEW FILE: turba.conf ---
#
#  File: turba.conf
#  $Horde: turba/packaging/redhat/turba.conf,v 1.2 2002/01/03 14:20:13 bjn Exp $
#
#  This is the Turba Apache configuration file; it is included from the
#  Apache httpd.conf file.  This version is for Red Hat 7.x systems.
#

<Directory "/var/www/html/horde/turba/config">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/turba/lib">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/turba/locale">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/turba/po">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/turba/scripts">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/turba/templates">
    order deny,allow
    deny from all
</Directory>

--- NEW FILE: turba.spec ---
#
# $Horde: turba/packaging/redhat/turba.spec,v 1.10 2004/01/01 16:17:51 jan Exp $
#
# Copyright 2003-2004 Brent J. Nordquist <bjn at horde.org>
#
# See the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
#
# This is the SPEC file for the Turba Red Hat 7.x (RPM v4) RPMs/SRPM.
#

%define apachedir /etc/httpd
%define apacheuser apache
%define apachegroup apache
%define contentdir /var/www

Summary: The Horde contact management application.
Name: turba
Version: 1.2
Release: 1
License: GPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/turba/turba-%{version}.tar.gz
Source1: turba.conf
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
BuildArch: noarch
BuildRoot: %{_tmppath}/turba-root
Requires: php >= 4.2.1
Requires: apache >= 1.3.22
Requires: horde >= 2.0
Prereq: /usr/bin/perl

%description
Turba is the Horde contact management application, which allows access
to and storage of personal contacts (including name, email address,
phone number, and other easily customizable fields).  Turba integrates
with IMP (Horde's webmail application) as its address book.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Turba)
please visit http://www.horde.org/.

%prep
%setup -q -n %{name}-%{version}

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{apachedir}/conf
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/turba
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/turba
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/turba/config
for d in *.dist; do
	d0=`basename $d .dist`
	if [ ! -f "$d0" ]; then
		cp -p $d $d0
	fi
done

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%pre

%post
perl -pi -e 's/$/ index.php/ if (/DirectoryIndex\s.*index\.html/ && !/index\.php/);' %{apachedir}/conf/httpd.conf
grep -i 'Include.*turba.conf$' %{apachedir}/conf/httpd.conf >/dev/null 2>&1
if [ $? -eq 0 ]; then
	perl -pi -e 's/^#+// if (/Include.*turba.conf$/i);' %{apachedir}/conf/httpd.conf
else
	echo "Include %{apachedir}/conf/turba.conf" >>%{apachedir}/conf/httpd.conf
fi
# post-install instructions:
cat <<_EOF_
You must manually configure Turba and create any required database tables!
See "CONFIGURING TURBA" in %{contentdir}/html/horde/turba/docs/INSTALL
You must also restart Apache with "service httpd restart"!
_EOF_

%postun
if [ $1 -eq 0 ]; then
	perl -pi -e 's/^/#/ if (/^Include.*turba.conf$/i);' %{apachedir}/conf/httpd.conf
	cat <<_EOF2_
You must restart Apache with "service httpd restart"!
_EOF2_
fi

%files
%defattr(-,root,root)
# Apache turba.conf file
%config %{apachedir}/conf/turba.conf
# Include top level with %dir so not all files are sucked in
%dir %{contentdir}/html/horde/turba
# Include top-level files by hand
%{contentdir}/html/horde/turba/*.php
# Include these dirs so that all files _will_ get sucked in
%{contentdir}/html/horde/turba/graphics
%{contentdir}/html/horde/turba/lib
%{contentdir}/html/horde/turba/locale
%{contentdir}/html/horde/turba/po
%{contentdir}/html/horde/turba/scripts
%{contentdir}/html/horde/turba/templates
# Mark documentation files with %doc and %docdir
%doc %{contentdir}/html/horde/turba/COPYING
%doc %{contentdir}/html/horde/turba/README
%docdir %{contentdir}/html/horde/turba/docs
%{contentdir}/html/horde/turba/docs
# Mark configuration files with %config and use secure permissions
# (note that .dist files are considered software; don't mark %config)
%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/turba/config
%defattr(640,root,%{apachegroup})
%{contentdir}/html/horde/turba/config/.htaccess
%{contentdir}/html/horde/turba/config/*.dist
%config %{contentdir}/html/horde/turba/config/*.php

%changelog
* Sun Apr 27 2003 Brent J. Nordquist <bjn at horde.org> 1.2-1
- Updated for 1.2

* Mon Jun 24 2002 Brent J. Nordquist <bjn at horde.org>
- 1.1 release 2

* Thu Jun 13 2002 Brent J. Nordquist <bjn at horde.org>
- 1.1 release 1 (private beta)

* Wed Jan 02 2002 Brent J. Nordquist <bjn at horde.org>
- 1.0 release 1

* Mon Dec 24 2001 Brent J. Nordquist <bjn at horde.org>
- 1.0-RC4 release 1

* Sun Dec 16 2001 Brent J. Nordquist <bjn at horde.org>
- initial RPM for Turba 1.0






More information about the commits mailing list