gunnar: server/horde/horde-ingo Makefile, 1.6, 1.7 horde-ingo-kolab.spec, 1.17, 1.18 backends.php, 1.2, NONE conf.php, 1.3, NONE

cvs at kolab.org cvs at kolab.org
Fri Mar 14 18:28:04 CET 2008


Author: gunnar

Update of /kolabrepository/server/horde/horde-ingo
In directory doto:/tmp/cvs-serv23799/horde-ingo

Modified Files:
	Makefile horde-ingo-kolab.spec 
Removed Files:
	backends.php conf.php 
Log Message:
A first commit of the restructured Horde packages. Not finished yet.

Index: Makefile
===================================================================
RCS file: /kolabrepository/server/horde/horde-ingo/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Makefile	1 Oct 2007 15:47:19 -0000	1.6
+++ Makefile	14 Mar 2008 17:28:02 -0000	1.7
@@ -23,7 +23,7 @@
 UVER = $(shell grep "%define[ ]*V_uver" *.spec | sed -e "s/.*V_uver\s*\([0-9.a-z-]*\).*/\1/")
 RELEASE = ${YEAR}${MONTH}${DAY}
 
-PATCHES = $(shell find . -name "*.patch")
+PATCHES = $(shell grep "^Patch[0-9]*:" *.spec | sed -e "s/^Patch[0-9]*:\s*\(.*\).*/\1/")
 TEMPLATES = $(shell find . -name "*.template")
 CONFIGS = $(shell find . -name "*.php")
 
@@ -43,18 +43,14 @@
 	rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
 	rm -rf *~
 
-$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(PATCHES) $(TEMPLATES) $(CONFIGS) ChangeLog
+$(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)"
 
-	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
+	cd $(KOLABRPMSRC)/$(PACKAGE) && for PATCH in $(PATCHES); do \
+	  wget -c "$$PATCH"; done
 
-	if [ -n "$(PATCHES)" ]; then              \
-	  for PATCH in $(PATCHES);             \
-	  do                                        \
-	    cp $$PATCH $(KOLABRPMSRC)/$(PACKAGE);\
-	  done;                                     \
-	fi
+	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
 
 	if [ -n "$(TEMPLATES)" ]; then              \
 	  for TEMPLATE in $(TEMPLATES);             \

Index: horde-ingo-kolab.spec
===================================================================
RCS file: /kolabrepository/server/horde/horde-ingo/horde-ingo-kolab.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- horde-ingo-kolab.spec	29 Nov 2007 15:32:10 -0000	1.17
+++ horde-ingo-kolab.spec	14 Mar 2008 17:28:02 -0000	1.18
@@ -1,11 +1,11 @@
 # Versions
 %define         V_horde_name ingo
 %define         V_package horde-%{V_horde_name}-kolab
-%define         V_year  2007
-%define         V_month 11
-%define         V_day   28
-%define         V_version 1.2_rc1
-%define         V_uver    1.2-rc1
+%define         V_year  2008
+%define         V_month 02
+%define         V_day   26
+%define         V_version 1.2_rc2
+%define         V_uver    1.2-rc2
 %define         V_date %{V_year}-%{V_month}-%{V_day}
 %define         V_release %{V_year}%{V_month}%{V_day}
 
@@ -23,8 +23,9 @@
 
 # List of Sources
 Source0:	http://ftp.horde.org/pub/%{V_horde_name}/%{V_horde_name}-h3-%{V_uver}.tar.gz
-Source1:        conf.php
-Source2:        backends.php
+
+# List of Patches
+Patch0:         http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/horde/ingo-3.2-rc2/HK-GW-Config_ingo-3.2-rc2.patch
 
 # Build Info
 Prefix:		%{l_prefix}
@@ -52,6 +53,10 @@
 %prep
 	%setup -c -q -n %{V_horde_name}-h3-%{V_uver}
 
+	cd %{V_horde_name}-h3-%{V_uver}
+	%patch -p2 -P 0
+	cd ..
+
 %build
 
 %install
@@ -62,19 +67,17 @@
 
 	rm -rf test.php
 
-	cd config && for fl in *.dist;do cp $fl ${fl/.dist/};done; cd ..
+	cd config && for fl in *.dist;do if [ ! -e "${fl/.dist/}" ]; then cp $fl ${fl/.dist/};fi;done; cd ..
+
+	find . -name '*.orig' | xargs rm
 
 	cp -r * $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/%{V_horde_name}/
 
 	cd ..
 
-	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:1} %{S:2} \
-	  $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/horde/%{V_horde_name}/config/
-
 	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}                                           \
-	    '%config(noreplace)'              %{l_prefix}/var/kolab/www/horde/%{V_horde_name}/config/conf.php    \
 	    '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/www/horde/%{V_horde_name}/config/conf.php    \
-	    '%config(noreplace)'              %{l_prefix}/var/kolab/www/horde/%{V_horde_name}/config/backends.php
+	    '%config(noreplace)'              %{l_prefix}/var/kolab/www/horde/%{V_horde_name}/config/*.php
 
 %clean
 	rm -rf $RPM_BUILD_ROOT

--- backends.php DELETED ---

--- conf.php DELETED ---





More information about the commits mailing list