steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/packaging/redhat TODO, NONE, 1.1 horde.PREREQ, NONE, 1.1 horde.README, NONE, 1.1 horde.conf, NONE, 1.1 horde.spec, NONE, 1.1 libmcrypt.spec, NONE, 1.1 rh7-horde.README, NONE, 1.1 rh7-php.spec, NONE, 1.1 rh9-horde.spec, NONE, 1.1 rh9-php.spec, NONE, 1.1

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


Author: steffen

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

Added Files:
	TODO horde.PREREQ horde.README horde.conf horde.spec 
	libmcrypt.spec rh7-horde.README rh7-php.spec rh9-horde.spec 
	rh9-php.spec 
Log Message:
Fbview in separate package

--- NEW FILE: TODO ---
RPM To-Do List                                                          TODO
=--------------------------------------------------------------------------=

$Horde: horde/packaging/redhat/TODO,v 1.8 2003/02/28 21:20:16 bjn Exp $

To Do:

 [ ] PHP 4.3.1: http://nixil.net/curl.patches.tar.gz
 [ ] %{initdir} example from Matt Wilson
 [ ] i18n SPEC files
 [ ] Icon: directives pointing to file in graphics


--- NEW FILE: horde.PREREQ ---
Horde RPM Prerequisites                                         horde.PREREQ
=--------------------------------------------------------------------------=

$Horde: horde/packaging/redhat/horde.PREREQ,v 1.6 2002/06/25 13:56:23 bjn Exp $


NOTE:  This file is for development use and is not intended to be user
documentation.  See horde.README.

I got tired of having to look these up every time a question came up, so
here it is.  This is a list of what version-rev's originally shipped with
which versions of Red Hat.  Anything that's in "base" as of Red Hat 7.0 is
not included here (since I assume it will be on virtually every system).


GENERIC LIST

apache
db3
db31
expat
freetype
imap
libtool-libs13
libxml2
mcal
mm
mod_bandwidth
mod_put
mod_ssl
mod_throttle
mysql
mysqlclient9
openldap
openldap12
openssl
openssl095a
openssl096
php
postgresql
pspell


RED HAT 7.0

apache-1.3.12-25
db3 [none]
db31 [none]
expat [none]
freetype-1.3.1-7
imap-4.7c2-12
libtool-libs13 [none]
libxml2 [none]
mcal [none]
mm [none]
mod_bandwidth [none]
mod_put [none]
mod_ssl-2.6.6-25
mod_throttle [none]
mysql-3.23.22-6
mysqlclient9 [none]
openldap-1.2.11-15
openldap12 [none]
openssl-0.9.5a-14
openssl095a [none]
openssl096 [none]
php-4.0.1pl2-9 [NOTE: including mod_php]
postgresql-7.0.2-17
pspell-0.11.2-1


RED HAT 7.1

apache-1.3.19-5
db3 [none]
db31 [none]
expat-1.95.1-1
freetype-2.0.1-4
imap-2000-9
libtool-libs13 [none]
libxml2 [none]
mcal [none]
mm [none]
mod_bandwidth [none]
mod_put [none]
mod_ssl-2.8.1-5
mod_throttle [none]
mysql-3.23.36-1
mysqlclient9-3.23.22-4
openldap-2.0.7-14
openldap12-1.2.11-4
openssl-0.9.6-3
openssl095a-0.9.5a-1
openssl096 [none]
php-4.0.4pl1-9
postgresql-7.0.3-8
pspell-0.11.2-2


RED HAT 7.2

apache-1.3.20-16
db3 [none]
db31-3.1.17-1
expat-1.95.1-7
freetype-2.0.3-7
imap-2000c-15
libtool-libs13-1.3.5-2
libxml2-2.4.2-1
mcal [none]
mm-1.1.3-1
mod_bandwidth-2.0.2-2
mod_put-1.3-1
mod_ssl-2.8.4-9
mod_throttle-3.1.2-1
mysql-3.23.41-1
mysqlclient9-3.23.22-6
openldap-2.0.11-13
openldap12-1.2.12-4
openssl-0.9.6b-8
openssl095a-0.9.5a-11
openssl096-0.9.6-6
php-4.0.6-7
postgresql-7.1.3-2
pspell-0.12.2-3


RED HAT 7.3

apache-1.3.23-11
db3-3.3.11-6
db31 [none]
expat-1.95.2-2
freetype-2.0.9-2
imap-2001a-10
libtool-libs13-1.3.5-2
libxml2-2.4.19-4
mcal [none]
mm-1.1.3-4
mod_bandwidth-2.0.3-3
mod_put-1.3-4
mod_ssl-2.8.7-4
mod_throttle-3.1.2-5
mysql-3.23.49-3
mysqlclient9-3.23.22-6
openldap-2.0.23-4
openldap12-1.2.13-3
openssl-0.9.6b-18
openssl095a-0.9.5a-11
openssl096-0.9.6-6
php-4.1.2-7
postgresql-7.2.1-5
pspell-0.12.2-8

--- NEW FILE: horde.README ---
Horde RPMs                                                      horde.README
=--------------------------------------------------------------------------=

$Horde: horde/packaging/redhat/horde.README,v 1.17 2002/06/25 13:56:23 bjn Exp $


NOTE:  This file describes the process of installing Horde and its
components on Red Hat 7.x using RPM v4 packages.

- Red Hat 6.x is not supported.

- If you are using tarballs to compile and install Horde manually, you
should read the README file included in each tarball.  The docs/INSTALL
file in each tarball describes the complete installation process when
using tarballs.


INSTALLING

The versions of the RPMs listed below (for Red Hat 7.x) are tested
together and known to work; if you choose to use different versions,
your mileage may vary.  Except for PHP (and mcal/js/sablotron which most
sites don't need), they are all official RPMs from Red Hat.

The Horde RPMs require several other (prerequisite) RPMs.  These RPMs
can be downloaded from Red Hat (or a mirror such as ibiblio).  For the
original RPMs, append "7.x/en/os/i386/RedHat/RPMS/"; for updated RPMs,
append "updates/7.x/en/os/i386/":

    ftp://ftp.redhat.com/pub/redhat/linux/
    ftp://distro.ibiblio.org/pub/linux/distributions/redhat/

PLEASE NOTE the following bug in RPM 4.0.4, which *may* result in lost
configuration files during an upgrade (rpm -U).  Some sites experience
the bug and some don't... so to be safe, back up all your configuration
files before upgrading!

    http://groups.google.com/groups?hl=en&lr=&selm=20020418100752.S6539%40devserv.devel.redhat.com

YOU WILL NEED TO RESTART Apache after you install/upgrade/remove the
PHP, Horde, IMP, etc. RPMs.

The following are the steps for getting these prerequisites installed.

1)  Security Advisories

    Before you do anything else, make sure you've installed the RPMs
    described in the Red Hat Security Advisories for your version of
    Red Hat.  You should update Apache, Cyrus SASL, OpenLDAP, OpenSSL,
    and any others that relate to the RPMs listed in this document.
    Some of those packages, in turn, have prerequisites that are NOT
    covered in this document, so consult the following:

    http://www.redhat.com/support/errata/
        rh7-errata-security.html (7.0)
        rh71-errata-security.html (7.1)
        rh72-errata-security.html (7.2)
        rh73-errata-security.html (7.3)

2)  Required RPMs

    Since Red Hat has not yet released a suitable set of PHP 4.1.2 RPMs
    for Red Hat <= 7.2, nor any MCAL RPMs, Horde has created custom ones,
    which can be downloaded at the Horde FTP site:

        ftp://ftp.horde.org/pub/RPMS/i386/rh7/

    a)  All sites will need the following RPMs.  Note especially the
        updated versions of freetype and libxml2 for 7.0 and 7.1;
        earlier versions won't work:

        Red Hat 7.0 and 7.1
        ===================
        apache-1.3.22-5.7.1
        expat-1.95.1-1 (++)
        freetype-2.0.1-4 (++)
        libxml2-2.4.10-0.7x.2 (**)
        openssl-0.9.6-9
        openssl095a-0.9.5a-9
        php-4.1.2-0horde1
        php-imap-4.1.2-0horde1

        (++) comes from Red Hat 7.1
        (**) comes from Red Hat 7.2

        Red Hat 7.2
        ===========
        apache-1.3.22-6
        db31-3.1.17-1
        expat-1.95.1-7
        freetype-2.0.3-7
        libtool-libs13-1.3.5-2
        libxml2-2.4.10-0.7x.2
        openssl-0.9.6b-8
        openssl095a-0.9.5a-11
        openssl096-0.9.6-6
        php-4.1.2-0horde1
        php-imap-4.1.2-0horde1

        Red Hat 7.3
        ===========
        apache-1.3.23-14
        db3-3.3.11-6
        expat-1.95.2-2
        freetype-2.0.9-2
        libtool-libs13-1.3.5-2
        libxml2-2.4.19-4
        openssl-0.9.6b-18
        openssl095a-0.9.5a-11
        openssl096-0.9.6-6
        php-4.1.2-7
        php-imap-4.1.2-7

    (NOTE:  Red Hat went back and forth several times about whether
    the PHP Apache shared module (.so file) should be in its own RPM
    (mod_php) or not.  If you were using PHP RPMs earlier than 4.0.6
    check carefully to see whether there is a mod_php RPM whose version
    doesn't match the others.  If so, uninstall it, or Apache+PHP may
    fail to work properly.)

    b)  If your Horde server will also be an IMAP server:

        Red Hat 7.0
        ===========
        imap-2001a-1.70.0

        Red Hat 7.1
        ===========
        imap-2001a-1.71.0

        Red Hat 7.2
        ===========
        imap-2001a-1.72.0

        Red Hat 7.3
        ===========
        imap-2001a-10

3)  OpenLDAP RPMs

    a)  If you are using OpenLDAP with Horde:

        Red Hat 7.0 and 7.1
        ===================
        openldap-2.0.21-0.7.1
        openldap12-1.2.12-3
        php-ldap-4.1.2-0horde1

        Red Hat 7.2
        ===========
        openldap-2.0.21-1
        openldap12-1.2.12-4
        php-ldap-4.1.2-0horde1

        Red Hat 7.3
        ===========
        openldap-2.0.23-4
        openldap12-1.2.13-3
        php-ldap-4.1.2-7

    b)  If your Horde server is also an OpenLDAP server:

        Red Hat 7.0 and 7.1
        ===================
        openldap-servers-2.0.21-0.7.1

        Red Hat 7.2
        ===========
        openldap-servers-2.0.21-1

        Red Hat 7.3
        ===========
        openldap-servers-2.0.23-4

4)  MySQL RPMs

    a)  If you are using MySQL with Horde:

        Red Hat 7.0
        ===========
        mysql-3.23.32-1.7
        mysqlclient9-3.23.22-3
        php-mysql-4.1.2-0horde1

        Red Hat 7.1
        ===========
        mysql-3.23.36-1
        mysqlclient9-3.23.22-4
        php-mysql-4.1.2-0horde1

        Red Hat 7.2
        ===========
        mysql-3.23.41-1
        mysqlclient9-3.23.22-6
        php-mysql-4.1.2-0horde1

        Red Hat 7.3
        ===========
        mysql-3.23.49-3
        mysqlclient9-3.23.22-6
        php-mysql-4.1.2-7

    b)  If your Horde server is also a MySQL server:

        Red Hat 7.0
        ===========
        mysql-server-3.23.32-1.7

        Red Hat 7.1
        ===========
        mysql-server-3.23.36-1

        Red Hat 7.2
        ===========
        mysql-server-3.23.41-1

        Red Hat 7.3
        ===========
        mysql-server-3.23.49-3

5)  PostgreSQL RPMs

    a)  If you are using PostgreSQL with Horde:

        Red Hat 7.0
        ===========
        php-pgsql-4.1.2-0horde1
        postgresql-7.0.2-17

        Red Hat 7.1
        ===========
        php-pgsql-4.1.2-0horde1
        postgresql-7.0.3-8

        Red Hat 7.2
        ===========
        php-pgsql-4.1.2-0horde1
        postgresql-7.1.3-2
        postgresql-libs-7.1.3-2

        Red Hat 7.3
        ===========
        php-pgsql-4.1.2-7
        postgresql-7.2.1-5
        postgresql-libs-7.2.1-5

    b)  If your Horde server is also a PostgreSQL server:

        Red Hat 7.0
        ===========
        postgresql-server-7.0.2-17

        Red Hat 7.1
        ===========
        postgresql-server-7.0.3-8

        Red Hat 7.2
        ===========
        postgresql-server-7.1.3-2

        Red Hat 7.3
        ===========
        postgresql-server-7.2.1-5

6)  MCAL RPMs

    If you are using MCAL with Horde (Kronolith):

    Red Hat 7.x
    ===========
    mcal-0.7cvs-0horde0
    php-mcal-4.1.2-0horde1

    (Note that this will only work if you're using the Horde-customized
    php-4.1.2-0horde1 PHP RPMs; you can't mix php-mcal with the Red Hat
    7.3 PHP 4.1.2 RPMs.)

7)  XSLT RPMs

    These aren't required for Horde and its applications, but if you need
    XSLT support for your other PHP applications, install the following.
    The js and sablotron RPMs are from Mozilla; you can also find them
    on the Horde FTP site.

    Red Hat 7.x
    ===========
    js-1.5rc4-2
    php-xslt-4.1.2-0horde1
    sablotron-0.82-1

    (Note that this will only work if you're using the Horde-customized
    php-4.1.2-0horde1 PHP RPMs; you can't mix php-xslt with the Red Hat
    7.3 PHP 4.1.2 RPMs.)

8)  Horde RPMs

    The Horde RPMs have been tested with Red Hat 7.1, 7.2, and 7.3 (they
    should work fine with Red Hat 7.0) and with MySQL and PostgreSQL;
    additional testing and comments always welcome.  These RPMs can be
    downloaded from the Horde FTP site:

        ftp://ftp.horde.org/pub/RPMS/noarch/rh7/

    Red Hat 7.x
    ===========
    horde-2.1-2
    imp-3.1-2
    kronolith-1.0-2
    turba-1.1-2

    YOU WILL NEED TO RESTART Apache after you install/upgrade/remove the
    above RPMs.

    After installing these RPMs, you will need to configure Horde and
    the applications (config directories), create MySQL or PostgreSQL
    database tables if needed, etc.  Please see the docs/INSTALL file
    for each application (/var/www/html/horde/docs/INSTALL etc.).


UPGRADING

PLEASE NOTE the following bug in RPM 4.0.4, which *may* result in lost
configuration files during an upgrade (rpm -U).  Back up all your
configuration files before upgrading!

    http://groups.google.com/groups?hl=en&lr=&selm=20020418100752.S6539%40devserv.devel.redhat.com

The Horde RPMs are designed to be upgradable (rpm -U option).  As with
all RPM upgrades, you should scan for .rpmorig, .rpmnew, and .rpmsave
files left after the upgrade, and merge in your old configuration with
the new files.  A command such as the following can be used for this:

    # find /etc /usr /var -name \*.rpm\* -print


TESTING

If you want to test the Horde installation, you'll need to add read
permission to /var/www/html/horde/test.php, and use a web browser to
access the page at:

    http://example.com/horde/test.php

Anything that shows up in red is a potential problem.  Reload the page and
make sure that the counter increments (this tests PHP session handling).


ISSUES/KNOWN BUGS/MISSING FEATURES

- Need Chora, Nag, and Mnemo RPMs.

- When I get time I will be adding support for viewers (wvHtml, xlHtml,
  etc.) in IMP.

- Other minor issues are listed in horde/packaging/redhat/TODO (in CVS).


CREDITS

Thanks to Mike Hardy <mhardy at h3c.com>, Chuck Moss <mossc at mossc.com>, and
Mike Barsalou <mbarsalou at aidea.org> who have provided helpful suggestions,
testing, and feedback for the Horde RPMs.

Thanks to Dale Lovelace (formerly at Red Hat) who wrote the initial
Horde and IMP RPMs, and to Dan Brown <danb35 at earthlink.net> who has
contributed some configurability and other good ideas from his setup.


CONTACT

We'd love to have feedback on these RPMs; please contact us on the Horde
mailing lists:

    http://www.horde.org/mail/


PACKAGER

Brent J. Nordquist <bjn at horde.org>

--- NEW FILE: horde.conf ---
#
#  File: horde.conf
#  $Horde: horde/packaging/redhat/horde.conf,v 1.4 2002/06/24 19:16:53 bjn Exp $
#
#  This is the Horde 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>
    Options Indexes FollowSymLinks
    AllowOverride None
    order allow,deny
    allow from all
    <IfModule mod_php4.c>
        php_value include_path "/usr/share/php:/usr/share/pear:."
    </IfModule>
</Directory>
<Directory "/var/www/html/horde/config">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/lib">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/locale">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/po">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/scripts">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/templates">
    order deny,allow
    deny from all
</Directory>

--- NEW FILE: horde.spec ---
#
# $Horde: horde/packaging/redhat/horde.spec,v 1.13 2004/01/01 15:16:43 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 Horde Red Hat 7.x (RPM v4) RPMs/SRPM.
#

%define apachedir /etc/httpd
%define apacheuser apache
%define apachegroup apache
%define contentdir /var/www
%define phpini /etc/php.ini

Summary: The common Horde Framework for all Horde modules.
Name: horde
Version: 2.2.3
Release: 1
License: LGPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/horde/horde-%{version}.tar.gz
Source1: horde.conf
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
BuildArch: noarch
BuildRoot: %{_tmppath}/horde-root
Requires: php >= 4.2.1
Requires: apache >= 1.3.22
Prereq: /usr/bin/perl

%description
The Horde Framework provides a common structure and interface for Horde
applications (such as IMP, a web-based mail program).  This RPM is
required for all other Horde module RPMs.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Horde
and its modules) 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
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde
chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/test.php
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/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

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

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

%files
%defattr(-,root,root)
# Apache horde.conf file
%config %{apachedir}/conf/horde.conf
# Include top level with %dir so not all files are sucked in
%dir %{contentdir}/html/horde
# Include top-level files by hand
%{contentdir}/html/horde/*.php
# Include these dirs so that all files _will_ get sucked in
%{contentdir}/html/horde/graphics
%{contentdir}/html/horde/lib
%{contentdir}/html/horde/locale
%{contentdir}/html/horde/po
%{contentdir}/html/horde/scripts
%{contentdir}/html/horde/templates
%{contentdir}/html/horde/util
# Mark documentation files with %doc and %docdir
%doc %{contentdir}/html/horde/COPYING
%doc %{contentdir}/html/horde/README
%docdir %{contentdir}/html/horde/docs
%{contentdir}/html/horde/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/config
%defattr(640,root,%{apachegroup})
%{contentdir}/html/horde/config/.htaccess
%{contentdir}/html/horde/config/*.dist
%config %{contentdir}/html/horde/config/*.php

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

* Tue Jun 25 2002 Brent J. Nordquist <bjn at horde.org>
- 2.1 release 3

* Mon Jun 24 2002 Brent J. Nordquist <bjn at horde.org>
- 2.1 release 2 (private beta)

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

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

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

* Sat Dec 15 2001 Brent J. Nordquist <bjn at horde.org>
- rewritten for Horde 2.0

* Wed Nov 14 2001 Brent J. Nordquist <bjn at horde.org>
- 1.2.7 release 1rh7

* Sat Jul 21 2001 Brent J. Nordquist <bjn at horde.org>
- 1.2.6 release 1rh7

* Tue Feb 06 2001 Brent J. Nordquist <bjn at horde.org>
- 1.2.4 release 1rh7


--- NEW FILE: libmcrypt.spec ---
#
# $Horde: horde/packaging/redhat/libmcrypt.spec,v 1.3 2004/01/01 15:16:43 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.
#
# Based on libmcrypt.spec by Troels Arvin (http://rpms.arvin.dk/)
# but updated to libmcrypt 2.5.6
#

%define LIBTOOL_REQS %(rpm -q --quiet libtool-libs && echo ", libtool-libs" || echo ", libtool")

Summary:	encryption/decryption library
Summary(pl):	biblioteka z funkcjami szyfruj±cymi oraz deszyfruj±cymi
Name:		libmcrypt
Version:	2.5.6
Release:	0horde2
License:	LGPL
Vendor:		Nikos Mavroyanopoulos <nmav at hellug.gr>
Packager:	Troels Arvin <troels at arvin.dk>
Group:		Libraries
Group(de):	Libraries
Group(es):	Bibliotecas
Group(fr):	Librairies
Group(pl):	Biblioteki
Group(pt_BR):	Bibliotecas
Group(ru):	âÉÂÌÉÏÔÅËÉ
Group(uk):	â¦Â̦ÏÔÅËÉ
Source0:	ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/%{name}-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	make
BuildRequires:	rpm >= 3.0.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
Requires:       rpm >= 3.0.5%{LIBTOOL_REQS}

%description
A replacement for the old unix crypt(1) command. Mcrypt uses the
following encryption (block) algorithms: BLOWFISH, DES, TripleDES,
3-WAY, SAFER-SK64, SAFER-SK128, CAST-128, RC2 TEA (extended), TWOFISH,
RC6, IDEA and GOST. The unix crypt algorithm is also included, to
allow compability with the crypt(1) command.

CBC, ECB, OFB and CFB modes of encryption are supported. A library
which allows access to the above algorithms and modes is included.

%description -l pl
Zamiennik dla starej unixowej funkcji crypt(). Mcrypt u¿ywa
nastêpuj±cych algorytmów: BLOWFISH, DES, TripleDES, 3-WAY, SAFER-SK64,
SAFER-SK128, CAST-128, RC2 TEA (rozszerzona), TWOFISH, RC6, IDEA i
GOST. Unixowy algorytm crypt tak¿e jest obs³ugiwany by zachowaæ
kompatybilno¶æ z crypt(1).

%package devel
Summary:	Header files and development documentation for libmcrypt
Summary(pl):	Pliki nag³ówkowe i dokumentacja do libmcrypt
Group:		Development/Libraries
Group(de):	Entwicklung/Libraries
Group(es):	Desarrollo/Bibliotecas
Group(fr):	Development/Librairies
Group(pl):	Programowanie/Biblioteki
Group(pt_BR):	Desenvolvimento/Bibliotecas
Group(ru):	òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
Group(uk):	òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
Requires:	%{name} = %{version}

%description devel
Header files and development documentation for libmcrypt.

%description -l pl devel
Pliki nag³ówkowe i dokumentacja do libmcrypt.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
 	--prefix=%{_prefix} \
	--exec-prefix=%{_exec_prefix} \
	--bindir=%{_bindir} \
	--sbindir=%{_sbindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--includedir=%{_includedir} \
	--libdir=%{_libdir} \
	--libexecdir=%{_libexecdir} \
	--localstatedir=%{_localstatedir} \
	--sharedstatedir=%{_sharedstatedir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--enable-dynamic-loading \
	--enable-static \
	--enable-shared \
	--disable-libltdl
make

%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR="$RPM_BUILD_ROOT" install

%post	-p /sbin/ldconfig
%postun -p /sbin/ldconfig

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

%files
%defattr(644,root,root,755)
%dir %{_libdir}/libmcrypt
%attr(755,root,root) %{_libdir}/lib*.so*
%attr(755,root,root) %{_libdir}/libmcrypt/*.so
%doc AUTHORS ChangeLog COPYING.LIB INSTALL KNOWN-BUGS NEWS README THANKS TODO

%files devel
%defattr(644,root,root,755)
%doc doc/*
%attr(755,root,root) %{_bindir}/libmcrypt-config
%{_libdir}/lib*.a
%{_libdir}/libmcrypt/*.a
%attr(755,root,root) %{_libdir}/lib*.la
%attr(755,root,root) %{_libdir}/libmcrypt/*.la
%{_mandir}/man3/*
%{_includedir}/*.h
%{_datadir}/aclocal/*

%changelog
* Sun Feb 16 2003 Brent J. Nordquist <bjn at horde.org> 2.5.6-0horde2
- Reenable dynamic loading
- Move man page back to -devel RPM

* Sat Feb 15 2003 Brent J. Nordquist <bjn at horde.org> 2.5.6-0horde1
- Updated for 2.5.6 (need enable-static now)
- Disable dynamic loading (since 2.5.4, see README)
- Put man page in base RPM

* Wed Jun 19 2002 Troels Arvin <troels at arvin.dk>
  [2.5.2-1.arvin]
- New sources.
- *.la files not in -devel package, but in the main package.

* Wed Jun 19 2002 Troels Arvin <troels at arvin.dk>
  [2.5.1-3.arvin]
- Fixed spec-file's "clean"-section.
- At some point before that: Created libmcrypt 2.5.1 package
  with new sources.

* Tue Mar 5 2002 Troels Arvin <troels at arvin.dk>
  [2.4.22-2.arvin]
- Modified slightly from PLD's corresponding package.
- Added distribution tags, etc. to release-number.
- Fused -devel and -static packages to -devel package.

--- NEW FILE: rh7-horde.README ---
Horde RPMs                                                      horde.README
=--------------------------------------------------------------------------=

$Horde: horde/packaging/redhat/rh7-horde.README,v 1.4 2003/04/28 01:09:01 bjn Exp $


NOTE:  This file describes the process of installing Horde and its
components on Red Hat Linux 7.2 and 7.3 using RPM v4 packages.

- Red Hat Linux 7.1 and earlier are no longer supported.

- If you are using tarballs to compile and install Horde manually, you
should read the README file included in each tarball.  The docs/INSTALL
file in each tarball describes the complete installation process when
using tarballs.


INSTALLING

IMPORTANT: If you're going to upgrade (rpm -U), see UPGRADING below for
an important note.

YOU WILL NEED TO RESTART Apache after you install/upgrade/remove the
PHP, Horde, IMP, etc. RPMs.

The following are the steps for getting these prerequisites installed.

1)  Security Advisories

    Before you do anything else, make sure you've installed the RPMs
    described in the Red Hat Security Advisories for your version of Red
    Hat Linux.  You should update any RPMs listed below in this document.
    Some of those packages, in turn, have prerequisites that are NOT
    covered in this document, so consult the following:

    http://www.redhat.com/support/errata/
        rh72-errata-security.html (7.2)
        rh73-errata-security.html (7.3)

2)  Required RPMs

    Since Red Hat has not yet released a suitable set of PHP 4.2.3 RPMs,
    nor any mcrypt/mcal RPMs, Horde has created custom ones, which can
    be downloaded at the Horde FTP site:

        ftp://ftp.horde.org/pub/RPMS/i386/rh7/

    All the other RPMs listed below are official from Red Hat, and can
    be found on any Red Hat Linux mirror.

    a)  All sites will need the following RPMs.  If you are using Red
        Hat Linux 7.2, note the version requirements for curl and libxml2;
        the easiest solution is to install the 7.3 RPMs onto your 7.2
        machine.

        apache
        curl >= 7.9.0
        db3
        db3x (needed on RHL 7.3 only)
        expat
        freetype
        libtool-libs13
        libxml2 >= 2.4.14
        openssl
        openssl095a
        openssl096
        php-4.2.3-0horde2
        php-imap-4.2.3-0horde2
        pspell

    b)  If your Horde server will also be an IMAP server:

        imap

3)  OpenLDAP RPMs

    a)  If you are using OpenLDAP with Horde:

        openldap
        openldap12
        php-ldap-4.2.3-0horde2

    b)  If your Horde server is also an OpenLDAP server:

        openldap-servers

4)  MySQL RPMs

    a)  If you are using MySQL with Horde:

        mysql
        mysqlclient9
        php-mysql-4.2.3-0horde2

    b)  If your Horde server is also a MySQL server:

        mysql-server

5)  PostgreSQL RPMs

    a)  If you are using PostgreSQL with Horde:

        php-pgsql-4.2.3-0horde2
        postgresql
        postgresql-libs

    b)  If your Horde server is also a PostgreSQL server:

        postgresql-server

6)  mcal RPMs

    If you are using mcal with Horde (Kronolith):

    mcal-0.7-0horde2
    php-mcal-4.2.3-0horde2

    (Note that this will only work if you're using the Horde-customized
    php-4.2.3-0horde2 PHP RPMs; you can't mix php-mcal with the Red Hat
    Linux stock PHP 4.1.2 RPMs.)

7)  mcrypt RPMs

    Horde can take advantage of the mcrypt encryption libraries, if they
    are installed, to improve the performance of encryption operations.

    libmcrypt-2.5.6-0horde2
    php-mcrypt-4.2.3-0horde2

    (Note that this will only work if you're using the Horde-customized
    php-4.2.3-0horde2 PHP RPMs; you can't mix php-mcrypt with the Red Hat
    Linux stock PHP 4.1.2 RPMs.)

8)  XSLT RPMs

    These aren't required for Horde and its applications, but if you need
    XSLT support for your other PHP applications, install the following.
    The js and sablotron RPMs are from Mozilla; you can also find them
    on the Horde FTP site.

    js
    php-xslt-4.2.3-0horde2
    sablotron

    (Note that this will only work if you're using the Horde-customized
    php-4.2.3-0horde2 PHP RPMs; you can't mix php-xslt with the Red Hat
    Linux stock PHP 4.1.2 RPMs.)

9)  Horde RPMs

    The Horde RPMs have been tested with Red Hat Linux 7.2/7.3 and MySQL;
    additional testing and comments always welcome.  These RPMs can be
    downloaded from the Horde FTP site:

        ftp://ftp.horde.org/pub/RPMS/noarch/rh7/

    Red Hat 7.x
    ===========
    horde-2.2.3-1
    imp-3.2.1-1
    kronolith-1.0-2
    mnemo-1.1-1
    nag-1.1-1
    turba-1.2-1

    YOU WILL NEED TO RESTART Apache after you install/upgrade/remove the
    above RPMs.

    After installing these RPMs, you will need to configure Horde and
    the applications (config directories), create MySQL or PostgreSQL
    database tables if needed, etc.  Please see the docs/INSTALL file
    for each application (/var/www/html/horde/docs/INSTALL etc.).


UPGRADING

PLEASE NOTE the following bug in RPM 4.0.4, which *may* result in lost
configuration files during an upgrade (rpm -U).  Back up all your
configuration files before upgrading!

    http://groups.google.com/groups?hl=en&lr=&selm=20020418100752.S6539%40devserv.devel.redhat.com

The Horde RPMs are designed to be upgradable (rpm -U option).  As with
all RPM upgrades, you should scan for .rpmorig, .rpmnew, and .rpmsave
files left after the upgrade, and merge in your old configuration with
the new files.  A command such as the following can be used for this:

    # find /etc /usr /var -name \*.rpm\* -print


TESTING

If you want to test the Horde installation, you'll need to add read
permission to /var/www/html/horde/test.php, and use a web browser to
access the page at:

    http://example.com/horde/test.php

Anything that shows up in red is a potential problem.  Reload the page and
make sure that the counter increments (this tests PHP session handling).


CREDITS

Thanks to Mike Hardy <mhardy at h3c.com>, Chuck Moss <mossc at mossc.com>, and
Mike Barsalou <mbarsalou at aidea.org> who have provided helpful suggestions,
testing, and feedback for the Horde RPMs.

Thanks to Dale Lovelace (formerly at Red Hat) who wrote the initial
Horde and IMP RPMs, and to Dan Brown <danb35 at earthlink.net> who has
contributed some configurability and other good ideas from his setup.


CONTACT

We'd love to have feedback on these RPMs; please contact us on the Horde
mailing lists:

    http://www.horde.org/mail/


PACKAGER

Brent J. Nordquist <bjn at horde.org>

--- NEW FILE: rh7-php.spec ---
#
# $Horde: horde/packaging/redhat/rh7-php.spec,v 1.7 2004/01/01 15:16:43 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.
#
# Based on php-4.2.2-8.0.7.spec by Red Hat (for 8.0),
# and back-ported to Red Hat Linux 7.2 (to support 7.2 and 7.3),
# and added additional modules and options (mbstring, mcrypt)
# and a PEAR suitable for Horde (1.0.1).
#


# HTML cgi-bin directory exists under
#
%define contentdir /var/www

[...1421 lines suppressed...]
* Wed Feb 24 1999 Preston Brown <pbrown at redhat.com>
- Injected new description and group.

* Sun Feb 07 1999 Preston Brown <pbrown at redhat.com>
- upgrade to php 3.0.6, built against apache 1.3.4

* Mon Oct 12 1998 Cristian Gafton <gafton at redhat.com>
- rebuild for apache 1.3.3

* Thu Oct 08 1998 Preston Brown <pbrown at redhat.com>
- updated to 3.0.5, fixes nasty bugs in 3.0.4.

* Sun Sep 27 1998 Cristian Gafton <gafton at redhat.com>
- updated to 3.0.4 and recompiled for apache 1.3.2

* Thu Sep 03 1998 Preston Brown <pbrown at redhat.com>
- improvements; builds with apache-devel package installed.

* Tue Sep 01 1998 Preston Brown <pbrown at redhat.com>
- Made initial cut for PHP3.

--- NEW FILE: rh9-horde.spec ---
#
# $Horde: horde/packaging/redhat/rh9-horde.spec,v 1.4 2004/01/01 15:16:43 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 Horde Red Hat 9 RPMs/SRPM.
#

%define apachedir /etc/httpd
%define apacheuser apache
%define apachegroup apache
%define contentdir /var/www
%define phpini /etc/php.ini

Summary: The common Horde Framework for all Horde modules.
Name: horde
Version: 2.2.3
Release: 1
License: LGPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/horde/horde-%{version}.tar.gz
Source1: horde.conf
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
BuildArch: noarch
BuildRoot: %{_tmppath}/horde-root
Requires: php >= 4.2.1
Requires: httpd >= 2.0.40
Prereq: /usr/bin/perl

%description
The Horde Framework provides a common structure and interface for Horde
applications (such as IMP, a web-based mail program).  This RPM is
required for all other Horde module RPMs.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Horde
and its modules) 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 %{SOURCE1} $RPM_BUILD_ROOT%{apachedir}/conf.d
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde
chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/test.php
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/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

%post
perl -pi -e 's/=\s*Off/= On/i if (/file_uploads\s*=\s*Off/i);' %{phpini}
# post-install instructions:
cat <<_EOF_
You must manually configure Horde and create any required database tables!
See "CONFIGURING HORDE" in %{contentdir}/html/horde/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 horde.conf file
%config %{apachedir}/conf.d/horde.conf
# Include top level with %dir so not all files are sucked in
%dir %{contentdir}/html/horde
# Include top-level files by hand
%{contentdir}/html/horde/*.php
# Include these dirs so that all files _will_ get sucked in
%{contentdir}/html/horde/graphics
%{contentdir}/html/horde/lib
%{contentdir}/html/horde/locale
%{contentdir}/html/horde/po
%{contentdir}/html/horde/scripts
%{contentdir}/html/horde/templates
%{contentdir}/html/horde/util
# Mark documentation files with %doc and %docdir
%doc %{contentdir}/html/horde/COPYING
%doc %{contentdir}/html/horde/README
%docdir %{contentdir}/html/horde/docs
%{contentdir}/html/horde/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/config
%defattr(640,root,%{apachegroup})
%{contentdir}/html/horde/config/.htaccess
%{contentdir}/html/horde/config/*.dist
%config %{contentdir}/html/horde/config/*.php

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


--- NEW FILE: rh9-php.spec ---
#
# $Horde: horde/packaging/redhat/rh9-php.spec,v 1.5 2004/01/01 15:16:43 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.
#
# Based on php-4.2.2-17.spec by Red Hat (for 9),
# and added additional modules and options (mbstring, mcrypt)
# and a PEAR suitable for Horde (1.0.1).
#

%define contentdir /var/www
%define manual_langs de en es fr it ja ko pt_BR

# For those wanting to recompile with Oracle libraries
# rpm --rebuild --define 'oracle 1' php4.2.1-x.src.rpm
#
[...1080 lines suppressed...]
* Wed Feb 24 1999 Preston Brown <pbrown at redhat.com>
- Injected new description and group.

* Sun Feb 07 1999 Preston Brown <pbrown at redhat.com>
- upgrade to php 3.0.6, built against apache 1.3.4

* Mon Oct 12 1998 Cristian Gafton <gafton at redhat.com>
- rebuild for apache 1.3.3

* Thu Oct 08 1998 Preston Brown <pbrown at redhat.com>
- updated to 3.0.5, fixes nasty bugs in 3.0.4.

* Sun Sep 27 1998 Cristian Gafton <gafton at redhat.com>
- updated to 3.0.4 and recompiled for apache 1.3.2

* Thu Sep 03 1998 Preston Brown <pbrown at redhat.com>
- improvements; builds with apache-devel package installed.

* Tue Sep 01 1998 Preston Brown <pbrown at redhat.com>
- Made initial cut for PHP3.





More information about the commits mailing list