gunnar: server/kolab-webclient-h4/horde-h4 .cvsignore, NONE, 1.1 Makefile, NONE, 1.1 horde-h4.spec, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Tue Feb 9 11:25:31 CET 2010


Author: gunnar

Update of /kolabrepository/server/kolab-webclient-h4/horde-h4
In directory doto:/tmp/cvs-serv32725

Added Files:
	.cvsignore Makefile horde-h4.spec 
Log Message:
Add the basic horde H4 application.

--- NEW FILE: .cvsignore ---
*.src.rpm
*.tar.gz
package.patch
tmp

--- NEW FILE: Makefile ---
STAGING = ../../stage

include ../../make-helper/kolab.mk

GIT_PACKAGE = horde
SAFE_COMMIT = $(shell grep "%define[ ]*V_commit" *.spec | sed -e "s/.*V_commit\s*\([0-9a-z-]*\).*/\1/")
SOURCE_NAME = $(shell grep "%define[ ]*V_source_name" *.spec | sed -e "s/.*V_source_name\s*\([0-9a-z-]*\).*/\1/")
SOURCE_PACKAGE = $(SOURCE_NAME)-$(SAFE_COMMIT)

SOURCE_URL = http://files.kolab.org/incoming/wrobel/
SOURCE_0 = $(SOURCE_NAME)-$(VERSION)-$(SAFE_COMMIT).tar.bz2

include ../../make-helper/package.mk
include ../../make-helper/patch-series.mk

# Get the list of templates if there are any in the template directory
TEMPLATES = $(shell ls templates/$(PACKAGE)-$(SAFE_COMMIT)/*.template 2> /dev/null)

# Get the list of configuration files if there are any in the configuration directory
CONFIGURATION = $(shell ls configuration/$(PACKAGE)-$(SAFE_COMMIT)/*.php 2> /dev/null)

EXTRA = package.patch $(TEMPLATES) $(CONFIGURATION)

include ../../make-helper/package-new.mk
include ../../make-helper/horde-snapshot.mk

--- NEW FILE: horde-h4.spec ---
# Macros
%define         V_package horde-h4
%define         V_commit  c3570961b45053e55147c5a77b32caff87edef8f
%define         V_version 3.999
%define         V_release 20100119
%define         V_source_name horde

# Package Information
Name:		%{V_package}
Summary:	The Horde base application.
URL:		http://www.horde.org/
Packager:	Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version:	%{V_version}
Release:	%{V_release}
License:	GPL
Group:		MAIL
Distribution:	OpenPKG

# List of Sources
Source0:	http://ftp.horde.org/pub/%{V_package}/%{V_source_name}-%{V_version}-%{V_commit}.tar.bz2
Source1:        webclient4-conf.php.template
Source2:        webclient4-hooks.php.template
Source3:        webclient4-mime_drivers.php.template
Source4:        webclient4-motd.php.template
Source5:        webclient4-nls.php.template
Source6:        webclient4-prefs.php.template
Source7:        webclient4-registry.php.template
Source8:        10-kolab_hooks_base.php
Source9:        10-kolab_prefs_base.php
Source10:       10-kolab_conf_base.php

# List of Patches
Patch0:         package.patch

# Build Info
Prefix:		%{l_prefix}
BuildRoot:	%{l_buildroot}

#Pre requisites
BuildPreReq:  OpenPKG, openpkg >= 20070603
BuildPreReq:  php, php::with_pear = yes
PreReq:       kolabd
PreReq:       Horde_Autoloader-H4
PreReq:       Horde_Browser-H4
PreReq:       Horde_Core-H4
PreReq:       Horde_Log-H4

AutoReq:      no
AutoReqProv:  no

%description 
The Horde Application Framework is a general-purpose web application
framework in PHP, providing classes for dealing with preferences,
compression, browser detection, connection tracking, MIME handling,
and more.

This specific package does however remove all components of the actual
Horde framework and solely installs the base Horde application that
needs to be installed as a basis for the other Horde applications. The
Horde framework is installed using PEAR based packages.


%prep
	%setup -q -c %{V_source_name}-%{V_version}-%{V_commit}

	cd %{V_source_name}-%{V_commit}
	%patch -p1 -P 0
	cd ..

%build

%install

	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/storage
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/log
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/tmp
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/sessions
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates	

	cd %{V_source_name}-%{V_commit}

	cd config
	for CONFIG in *.dist;                          \
	    do                                         \
	      cp $CONFIG `basename $CONFIG .dist`;     \
	      mkdir -p `basename $CONFIG .php.dist`.d; \
	done
	cd ..

#	rm test.php

	#find . -type f | grep '\.orig$' | xargs rm -f

	cp -r * $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/

        sqlite $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/storage/horde.db < scripts/sql/horde_alarms.sql
        sqlite $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/storage/horde.db < scripts/sql/horde_perms.sql
        sqlite $RPM_BUILD_ROOT%{l_prefix}/var/kolab/webclient4_data/storage/horde.db < scripts/sql/horde_syncml.sql

	cd ..

	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/conf.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/hooks.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/mime.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/motd.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/nls.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/prefs.d
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/registry.d

	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} \
	  $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates

	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:8} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/hooks.d/
	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:9} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/prefs.d/
	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:10} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client4/config/conf.d/

	sed -i -e 's#@@@webserver_document_root@@@#%{l_prefix}/var/kolab/www#' $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates/*.php.template

	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
	    '%config %{l_prefix}/etc/kolab/templates/webclient4-conf.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-hooks.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-mime_drivers.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-motd.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-nls.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-prefs.php.template' \
            '%config %{l_prefix}/etc/kolab/templates/webclient4-registry.php.template' \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient4_data/log \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient4_data/storage \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient4_data/storage/horde.db \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient4_data/tmp \
            %dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/webclient4_data/sessions \
	    '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/client4/config/conf.php

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files





More information about the commits mailing list