gunnar: server/horde-framework Makefile, NONE, 1.1 Prefs-Prefs-kolab.php.patch, NONE, 1.1 horde-framework-kolab.spec, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Fri May 25 11:11:14 CEST 2007
Author: gunnar
Update of /kolabrepository/server/horde-framework
In directory doto:/tmp/cvs-serv13956
Added Files:
Makefile Prefs-Prefs-kolab.php.patch
horde-framework-kolab.spec
Log Message:
A first draft version of a snapshot based horde framework package.
--- NEW FILE: Makefile ---
RPM = /kolab/bin/openpkg rpm
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 \([a-z-]*\).*/\1/")
MONTH = $(shell grep "%define.*V_month" *.spec | sed -e "s/.*V_month \([a-z-]*\).*/\1/")
DAY = $(shell grep "%define.*V_day" *.spec | sed -e "s/.*V_day \([a-z-]*\).*/\1/")
DATE = ${YEAR}-${MONTH}-${DAY}
PACKAGE = horde-$(HORDE_NAME)-kolab
VERSION = ${YEAR}${MONTH}${DAY}
RELEASE = $(shell grep "%define.*V_release" *.spec | sed -e "s/.*V_release \([0-9]*\).*/\1/")
TEMPLATES = $(shell find . -name "*.template")
CONFIGS = $(shell find . -name "*.php")
ifeq "x$(KOLABRPMSRC)" "x"
KOLABRPMSRC = /kolab/RPM/SRC
endif
# Remove once moving to kolab cvs
PACKAGE_0=$(HORDE_NAME)-HEAD-$(DATE).tar.gz
SOURCE_0=http://ftp.horde.org/pub/snaps/${DATE}/$(PACKAGE_0)
all:
test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"
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
dist: all
cp $(KOLABRPMSRC)/../PKG/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../stage/
binary:
$(RPM) -bB $(PACKAGE).spec
--- NEW FILE: Prefs-Prefs-kolab.php.patch ---
Index: Prefs/Prefs/kolab.php
===================================================================
RCS file: /repository/framework/Prefs/Prefs/kolab.php,v
retrieving revision 1.13
diff -u -B -r1.13 kolab.php
--- Prefs/Prefs/kolab.php 10 Oct 2006 09:05:19 -0000 1.13
+++ Prefs/Prefs/kolab.php 24 May 2007 16:01:38 -0000
@@ -1,5 +1,6 @@
<?php
+require_once 'Horde/Auth.php';
require_once 'Horde/Prefs/ldap.php';
require_once 'Horde/Kolab.php';
@@ -38,6 +39,8 @@
'version' => '3',
'basedn' => $GLOBALS['conf']['kolab']['ldap']['basedn'],
'fetchdn' => true,
+ 'username' => Auth::getAuth(),
+ 'password' => Auth::getCredential('password'),
'searchdn' => $GLOBALS['conf']['kolab']['ldap']['phpdn'],
'searchpass' => $GLOBALS['conf']['kolab']['ldap']['phppw'],
'uid' => array('mail', 'uid'));
--- NEW FILE: horde-framework-kolab.spec ---
# Versions
%define V_horde_name framework
%define V_package horde-%{V_horde_name}-kolab
%define V_year 2007
%define V_month 05
%define V_day 24
%define V_version %{V_year}%{V_month}%{V_day}
%define V_date %{V_year}-%{V_month}-%{V_day}
%define V_release 1
# Package Information
Name: %{V_package}
Summary: The Horde Framework is the glue that all Horde applications have in common.
URL: http://www.horde.org/
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version: %{V_version}
Release: %{V_release}
License: LGPL
Group: Languages
Distribution: OpenPKG
# List of Sources
Source0: http://ftp.horde.org/pub/snaps/%{V_date}/%{V_horde_name}-HEAD-%{V_date}.tar.gz
##################################################
# PATCH COMMENT
#
# Necessary to allow Ingo store the filters
# based on the preference driver. Ingo needs
# to get fixed to be able to remove this patch.
Patch0: Prefs-Prefs-kolab.php.patch
# Build Info
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: PEAR-PEAR >= 1.4.0
PreReq: apache >= 1.2.29
AutoReq: no
AutoReqProv: no
#BuildArch: noarch
%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.
%prep
%setup -n framework
%patch -p0 -P 0
%build
%install
# Hack to add the necessary horde channel
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" \
%{l_prefix}/bin/pear -d php_dir=%{l_prefix}/lib/php channel-discover pear.horde.org && \
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" \
%{l_prefix}/bin/pear -d php_dir=%{l_prefix}/lib/php channel-update pear.horde.org || \
echo "Channel already exists!" && sleep 1
#BAD, BAD hack
rm -rf %{l_prefix}/.pearrc
for PKG in **/package.xml; do \
if [ "$PKG" != "Rampage/package.xml" -a "$PKG" != "devtools/package.xml" -a "$PKG" != "Lens/package.xml" ]; then \
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/kolab/RPM/TMP/pear/cache" \
%{l_prefix}/bin/pear package $PKG; \
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/kolab/RPM/TMP/tmp/pear/cache" \
%{l_prefix}/bin/pear install --force --loose --nodeps --offline --packagingroot="$RPM_BUILD_ROOT" *.tgz;\
rm *.tgz; \
fi; \
done
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
More information about the commits
mailing list