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

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


Author: steffen

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

Added Files:
	kronolith.README kronolith.conf kronolith.spec mcal.README 
	mcal.spec 
Log Message:
Fbview in separate package

--- NEW FILE: kronolith.README ---
Kronolith RPMs                                              kronolith.README
=--------------------------------------------------------------------------=

$Horde: kronolith/packaging/redhat/kronolith.README,v 1.1 2001/12/15 12:47:29 bjn Exp $


Please consult the Horde RPMs README file:

    horde/packaging/redhat/horde.README

--- NEW FILE: kronolith.conf ---
#
#  File: kronolith.conf
#  $Horde: kronolith/packaging/redhat/kronolith.conf,v 1.2 2002/01/03 14:21:00 bjn Exp $
#
#  This is the Kronolith 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/kronolith/config">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/kronolith/lib">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/kronolith/locale">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/kronolith/po">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/kronolith/scripts">
    order deny,allow
    deny from all
</Directory>
<Directory "/var/www/html/horde/kronolith/templates">
    order deny,allow
    deny from all
</Directory>

--- NEW FILE: kronolith.spec ---
#
# $Horde: kronolith/packaging/redhat/kronolith.spec,v 1.8 2004/01/01 15:15:47 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 Kronolith 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 calendar application.
Name: kronolith
Version: 1.1
Release: 1
License: GPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/kronolith/kronolith-%{version}.tar.gz
Source1: kronolith.conf
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
BuildArch: noarch
BuildRoot: %{_tmppath}/kronolith-root
Requires: php >= 4.2.1
Requires: apache >= 1.3.22
Requires: horde >= 2.1
Prereq: /usr/bin/perl

%description
Kronolith is the Horde calendar application.  It provides repeating
events, all-day events, custom fields, keywords, and managing multiple
users through Horde Authentication.  The calendar API that Kronolith
uses is abstracted; MCAL and SQL drivers are currently provided.

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with Kronolith)
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/kronolith
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/kronolith
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/kronolith/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.*kronolith.conf$' %{apachedir}/conf/httpd.conf >/dev/null 2>&1
if [ $? -eq 0 ]; then
	perl -pi -e 's/^#+// if (/Include.*kronolith.conf$/i);' %{apachedir}/conf/httpd.conf
else
	echo "Include %{apachedir}/conf/kronolith.conf" >>%{apachedir}/conf/httpd.conf
fi
# post-install instructions:
cat <<_EOF_
You must manually configure Kronolith and create any required database tables!
See "CONFIGURING Kronolith" in %{contentdir}/html/horde/kronolith/docs/INSTALL
You must also restart Apache with "service httpd restart"!
_EOF_

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

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

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

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

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

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


--- NEW FILE: mcal.README ---
MCAL RPMs                                                        mcal.README
=--------------------------------------------------------------------------=

$Horde: kronolith/packaging/redhat/mcal.README,v 1.1 2001/12/16 14:36:37 bjn Exp $


Please consult the Horde RPMs README file:

    horde/packaging/redhat/horde.README

--- NEW FILE: mcal.spec ---
#
# $Horde: kronolith/packaging/redhat/mcal.spec,v 1.7 2004/01/01 15:15:47 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 MCAL Red Hat RPMs/SRPM.
#

Name: mcal
Version: 0.7
Summary: A Calendaring library, and drivers
Epoch: 1
Release: 0horde2
Group: System Environment/Libraries
Vendor: The Horde Project
URL: http://www.horde.org/
Packager: Brent J. Nordquist <bjn at horde.org>
Source0: libmcal-%{version}.tar.gz
Source1: mcaldrivers-0.9.tar.gz
License: GPL and partial BSD-Like with an advertising clause for mstore driver (driver is included)
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
The mcal library and the mcal drivers implement a simple calendaring server
and (currently) two calendaring storage adapators, one each for the icap
protocol and local files system.

%package devel
Summary: Files needed for developing applications which use the mcal
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
The mcal library and the mcal drivers implement a simple calendaring
server and (currently) two calendaring storage adapators, one each for
the icap protocol and local files system. The mcal-devel package contains
header files necessary to compile other packages to use the mcal library
and its drivers.


%prep

# The libmcal package and drivers are packaged separately but integrated,
# you have to integrate by hand
rm -rf $RPM_BUILD_DIR/libmcal
tar -zxvf $RPM_SOURCE_DIR/libmcal-%{version}.tar.gz
tar -zxvf $RPM_SOURCE_DIR/mcaldrivers-0.9.tar.gz
mv $RPM_BUILD_DIR/mcal-drivers/icap $RPM_BUILD_DIR/libmcal
mv $RPM_BUILD_DIR/mcal-drivers/mstore $RPM_BUILD_DIR/libmcal


%build
CFLAGS="$RPM_OPT_FLAGS -fPIC" ; export CFLAGS

# We have to build the mstore and icap drivers by hand since they're
# not automated
cd $RPM_BUILD_DIR/libmcal/mstore
make
cd ../icap
make
cd ..

# libmcal's configure script isn't executable out of the box
chmod 755 ./configure

# The prefix here is because libmcal's installation is a bit weird
%configure --prefix=$RPM_BUILD_ROOT/usr --with-mstore --with-icap
make

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

# This is an artifict of libmcal not being "standard" and exploding
# into libmcal-%{version}
cd $RPM_BUILD_DIR/libmcal
%makeinstall
mv -f mstore/Changelog mstore/Changelog.mstore
mv -f mstore/README mstore/README.mstore
mv -f icap/Changelog icap/Changelog.icap
install -d -m 1777 $RPM_BUILD_ROOT%{_var}/calendar

# This is because libmcal doesn't version its libraries in its default
# build
pushd $RPM_BUILD_ROOT/usr/lib
ln -s libmcal.so libmcal.so.0.7
ln -s libmcal.so libmcal.so.0
popd

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
if (test ! -f /etc/mpasswd); then
  touch /etc/mpasswd;
  chown root:apache /etc/mpasswd;
  chmod 640 /etc/mpasswd
fi
grep "^mcaluser:" /etc/mpasswd >/dev/null
if (test $? -eq 1); then
  mcalpass=`openssl rand 8 -base64 | cut -c1-8`
  if (test -z "$mcalpass"); then
    mcalpass=mcalpass
  fi
  htpasswd -bc /etc/mpasswd mcaluser "$mcalpass"
  echo mcaluser password is $mcalpass
fi

%postun -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc libmcal/LICENSE libmcal/CHANGELOG libmcal/FEATURE-IMPLEMENTATION 
%doc libmcal/FUNCTION-REF.html libmcal/*-MCAL libmcal/README
%doc libmcal/icap/Changelog.icap
%doc libmcal/mstore/README.mstore libmcal/mstore/Changelog.mstore
%attr(0755,root,root) %{_libdir}/*.so*
%attr(1777,root,root) %{_var}/calendar

%files devel
%defattr(644,root,root,755)
%{_includedir}/*
%{_libdir}/*.a

%changelog
* Sat Feb 15 2003 Brent J. Nordquist <bjn at horde.org> 0.7-0horde2
- better way of packaging /var/calendar (idea from the Arvin RPM)
- cleanup of %doc files (idea from the Arvin RPM)

* Thu Feb 13 2003 Brent J. Nordquist <bjn at horde.org> 0.7-0horde1
- libmcal-0.7 and mcaldrivers-0.9 final

* Fri Dec 14 2001 Brent J. Nordquist <bjn at horde.org>
- randomize password during installation (avoid default password)

* Mon Dec 03 2001 Mike Hardy <mike at h3c.org>
- adding in calendar directory and password creation to post install screen

* Sun Dec 02 2001 Mike Hardy <mike at h3c.org>
- initial package





More information about the commits mailing list