gunnar: server/horde/fbview-kronolith ChangeLog, NONE, 1.1 Makefile, NONE, 1.1 conf.php, NONE, 1.1 fbview-kronolith-conf.template, NONE, 1.1 fbview-kronolith.spec, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Thu Aug 2 10:25:20 CEST 2007


Author: gunnar

Update of /kolabrepository/server/horde/fbview-kronolith
In directory doto:/tmp/cvs-serv24268/horde/fbview-kronolith

Added Files:
	ChangeLog Makefile conf.php fbview-kronolith-conf.template 
	fbview-kronolith.spec 
Log Message:
Add the second component for the new fbview in CVS.

--- NEW FILE: ChangeLog ---
2007-08-02  Gunnar Wrobel  <p at rdus.de>

	* fbview-kronolith.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 = fbview-$(HORDE_NAME)
VERSION = ${YEAR}${MONTH}${DAY}
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")

PATCHES = $(shell find . -name "*.patch")
TEMPLATES = $(shell find . -name "*.template")
CONFIGS = $(shell find . -name "*.php")

PACKAGE_0=$(HORDE_NAME)-HEAD-$(DATE).tar.gz
SOURCE_0=http://ftp.horde.org/pub/snaps/${DATE}/$(PACKAGE_0)

.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 $(PATCHES) $(TEMPLATES) $(CONFIGS) ChangeLog
	test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
	cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"

	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)

	if [ -n "$(PATCHES)" ]; then              \
	  for PATCH in $(PATCHES);             \
	  do                                        \
	    cp $$PATCH $(KOLABRPMSRC)/$(PACKAGE);\
	  done;                                     \
	fi

	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: conf.php ---
<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: kronolith/config/conf.xml,v 1.19 2006/11/25 00:13:41 jan Exp $
$conf['calendar']['driver'] = 'kolab';
$conf['storage']['default_domain'] = '';
$conf['storage']['freebusy']['protocol'] = 'https';
$conf['storage']['freebusy']['port'] = 443;
$conf['storage']['driver'] = 'kolab';
$conf['metadata']['keywords'] = false;
$conf['reminder']['server_name'] = '';
$conf['reminder']['from_addr'] = '';
$conf['autoshare']['shareperms'] = 'none';
$conf['holidays']['enable'] = true;
$conf['menu']['print'] = true;
$conf['menu']['import_export'] = true;
$conf['menu']['apps'] = array();
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
if (file_exists(dirname(__FILE__) . '/kolab.php')) {
  require_once(dirname(__FILE__) . '/kolab.php');
}

--- NEW FILE: fbview-kronolith-conf.template ---
KOLAB_META_START
TARGET=/kolab/var/kolab/www/fbview/kronolith/config/kolab.php
PERMISSIONS=0600
OWNERSHIP=kolab-n:kolab-n
KOLAB_META_END
<?php
$conf['storage']['default_domain'] = '@@@postfix-mydomain@@@';
$conf['reminder']['server_name'] = '@@@fqdnhostname@@@';
$conf['reminder']['from_addr'] = 'postmaster@@@@postfix-mydomain@@@';
?>

--- NEW FILE: fbview-kronolith.spec ---
# Versions
%define         V_horde_name kronolith
%define         V_package fbview-%{V_horde_name}
%define         V_year  2007
%define         V_month 08
%define         V_day   01
%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:	Kronolith is the Horde calendar application.
URL:		http://www.horde.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/snaps/%{V_date}/%{V_horde_name}-HEAD-%{V_date}.tar.gz
Source1:        fbview-kronolith-conf.template
Source2:        conf.php

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

#Pre requisites
BuildPreReq:  OpenPKG, openpkg >= 20070603
BuildPreReq:  php, php::with_pear = yes
PreReq:       php, php::with_pear = yes
PreReq:	      horde-framework-kolab >= %{V_version}

AutoReq:      no
AutoReqProv:  no
#BuildArch:    noarch

%description 
Kronolith is the Horde calendar application. It provides a stable and
featureful individual calendar system for every Horde user, with
integrated collaboration/scheduling features. It makes extensive use
of the Horde Framework to provide integration with other applications.

%prep
	%setup -c -q

%build

%install
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/fbview/%{V_horde_name}
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates	

	cd %{V_horde_name}/config && for fl in *.dist;do cp $fl ${fl/.dist/};done; cd ../..

	cp -r %{V_horde_name} $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/fbview/

	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:1} \
	  $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates	

	%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:2}           \
	  $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/fbview/%{V_horde_name}/config/

	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}                               \
	    '%config(noreplace) %{l_prefix}/etc/kolab/templates/fbview-kronolith-conf.template' \
	    '%config(noreplace) %{l_prefix}/var/kolab/www/fbview/%{V_horde_name}/config/conf.php'

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files





More information about the commits mailing list