gunnar: server/kolab-webclient ChangeLog, NONE, 1.1 Makefile, NONE, 1.1 horde-kolab-conf.template, NONE, 1.1 horde-kronolith-kolab-conf.template, NONE, 1.1 kolab-webclient.spec, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Mon Aug 11 15:57:07 CEST 2008
Author: gunnar
Update of /kolabrepository/server/kolab-webclient
In directory doto:/tmp/cvs-serv12765
Added Files:
ChangeLog Makefile horde-kolab-conf.template
horde-kronolith-kolab-conf.template kolab-webclient.spec
Log Message:
A first version of the monolithic kolab-webclient package, primarily based on horde-webmail. The package should build but its functionality has not yet been tested.
--- NEW FILE: ChangeLog ---
2008-08-11 Gunnar Wrobel <p at rdus.de>
* kolab-webclient.spec: Added package to Kolab CVS.
--- NEW FILE: Makefile ---
ifeq "x$(RPM)" "x"
RPM = $(HOME)/bin/openpkg rpm
endif
ifeq "x$(KOLABRPMSRC)" "x"
KOLABRPMSRC = $(HOME)/RPM/SRC
endif
ifeq "x$(KOLABRPMPKG)" "x"
KOLABRPMPKG = $(HOME)/RPM/PKG
endif
ifeq "x$(KOLABRPMTMP)" "x"
KOLABRPMTMP = $(HOME)/RPM/TMP
endif
HORDE_NAME = $(shell grep "%define[ ]*V_horde_name" *.spec | sed -e "s/.*V_horde_name \([a-z-]*\).*/\1/")
YEAR = $(shell grep "%define[ ]*V_year" *.spec | sed -e "s/.*V_year\s*\([0-9]*\).*/\1/")
MONTH = $(shell grep "%define[ ]*V_month" *.spec | sed -e "s/.*V_month\s*\([0-9]*\).*/\1/")
DAY = $(shell grep "%define[ ]*V_day" *.spec | sed -e "s/.*V_day\s*\([0-9]*\).*/\1/")
DATE = ${YEAR}-${MONTH}-${DAY}
PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([a-z-]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9._a-z]*\).*/\1/")
PASSWD_VERSION = $(shell grep "%define[ ]*V_passwd_version" *.spec | sed -e "s/.*V_passwd_version\s*\([0-9._a-z]*\).*/\1/")
RELEASE = ${YEAR}${MONTH}${DAY}
PATCHES = http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/horde-webmail/$(VERSION)/horde-webmail-$(VERSION)_kolab_openpkg.patch
TEMPLATES = $(shell find . -name "*.template")
CONFIGS = $(shell find . -name "*.php")
PACKAGE_0=$(HORDE_NAME)-$(VERSION).tar.gz
SOURCE_0=http://ftp.horde.org/pub/$(HORDE_NAME)/$(PACKAGE_0)
PACKAGE_1=passwd-h3-$(PASSWD_VERSION).tar.gz
SOURCE_1=http://ftp.horde.org/pub/passwd/$(PACKAGE_1)
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
.PHONY: dist
dist: all
cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/
.PHONY: clean
clean:
rm -rf /kolab/RPM/TMP/$(PACKAGE)
rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
rm -rf *~
$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(TEMPLATES) $(CONFIGS) ChangeLog
test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)" && wget -c "$(SOURCE_1)"
cd $(KOLABRPMSRC)/$(PACKAGE) && for PATCH in $(PATCHES); do \
wget -c "$$PATCH"; done
cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
if [ -n "$(TEMPLATES)" ]; then \
for TEMPLATE in $(TEMPLATES); \
do \
cp $$TEMPLATE $(KOLABRPMSRC)/$(PACKAGE);\
done; \
fi
if [ -n "$(CONFIGS)" ]; then \
for CONFIG in $(CONFIGS); \
do \
cp $$CONFIG $(KOLABRPMSRC)/$(PACKAGE); \
done; \
fi
cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
--- NEW FILE: horde-kolab-conf.template ---
KOLAB_META_START
TARGET=@@@webserver_document_root@@@/client/config/kolab.php
PERMISSIONS=0600
OWNERSHIP=@@@kolab_usr@@@:@@@kolab_grp@@@
KOLAB_META_END
<?php
$conf['log']['name'] = '@@@webserver_logdir@@@/horde/horde.log';
$conf['cookie']['domain'] = '@@@fqdnhostname@@@';
$conf['problems']['email'] = 'postmaster@@@@postfix-mydomain@@@';
$conf['problems']['maildomain'] = '@@@postfix-mydomain@@@';
$conf['kolab']['ldap']['server'] = '@@@fqdnhostname@@@';
$conf['kolab']['ldap']['basedn'] = '@@@base_dn@@@';
$conf['kolab']['ldap']['phpdn'] = '@@@php_dn@@@';
$conf['kolab']['ldap']['phppw'] = '@@@php_pw@@@';
@@@if cyrus-imap@@@
$conf['kolab']['imap']['server'] = '@@@fqdnhostname@@@';
@@@else@@@
$conf['kolab']['imap']['server'] = '@@@local_addr@@@';
@@@endif@@@
$conf['kolab']['imap']['maildomain'] = '@@@postfix-mydomain@@@';
?>
--- NEW FILE: horde-kronolith-kolab-conf.template ---
KOLAB_META_START
TARGET=@@@webserver_document_root@@@/client/kronolith/config/kolab.php
PERMISSIONS=0600
OWNERSHIP=@@@kolab_usr@@@:@@@kolab_grp@@@
KOLAB_META_END
<?php
$conf['storage']['default_domain'] = '@@@postfix-mydomain@@@';
$conf['reminder']['server_name'] = '@@@fqdnhostname@@@';
$conf['reminder']['from_addr'] = 'postmaster@@@@postfix-mydomain@@@';
?>
--- NEW FILE: kolab-webclient.spec ---
# Versions
%define V_horde_name horde-webmail
%define V_package kolab-webclient
%define V_year 2008
%define V_month 08
%define V_day 11
%define V_version 1.1.1
%define V_passwd_version 3.0.1
%define V_date %{V_year}-%{V_month}-%{V_day}
%define V_release %{V_year}%{V_month}%{V_day}
# Package Information
Name: %{V_package}
Summary: The Kolab Groupware web client (based on horde)
URL: http://www.kolab.org/
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version: %{V_version}
Release: %{V_release}
Class: JUNK
License: GPL
Group: MAIL
Distribution: OpenPKG
# List of Sources
Source0: http://ftp.horde.org/pub/%{V_horde_name}/%{V_horde_name}-%{V_version}.tar.gz
Source1: http://ftp.horde.org/pub/passwd/passwd-h3-%{V_passwd_version}.tar.gz
Source2: horde-kolab-conf.template
Source3: horde-kronolith-kolab-conf.template
# List of Patches
Patch0: http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/horde-webmail/%{V_version}/horde-webmail-%{V_version}_kolab_openpkg.patch
# Build Info
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
#Pre requisites
BuildPreReq: OpenPKG, openpkg >= 20070603
BuildPreReq: php, php::with_pear = yes
PreReq: kolabd::with_horde
AutoReq: no
AutoReqProv: no
#BuildArch: noarch
%description
The Kolab Groupware web client provides a Kolab compatible web
frontend to the Kolab server. The package is based on Horde.
%prep
%setup -q -c %{V_horde_name}-%{V_version}
%setup -T -D -a 1
mv passwd-h3-%{V_passwd_version} %{V_horde_name}-%{V_version}/passwd
cd %{V_horde_name}-%{V_version}
%patch -p1 -P 0
cd ..
%build
%install
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/apache/log/webclient
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/tmp
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/storage
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates
cd %{V_horde_name}-%{V_version}
find . -name 'test.php' | xargs rm
find . -name '*.orig' | xargs rm
cp -r * $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/
cd ..
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/passwd
%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:2} %{S:3} \
$RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/apache/log/webclient \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/tmp \
'%config(noreplace) %{l_prefix}/etc/kolab/templates/horde-kolab-conf.template' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/dimp/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/imp/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/ingo/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/kronolith/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/mimp/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/mnemo/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/nag/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/passwd/config/*.php' \
'%config(noreplace) %{l_prefix}/var/kolab/www/client/turba/config/*.php' \
'%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/client/config/conf.php
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
More information about the commits
mailing list