gunnar: server/kolab-filter DEVELOPMENT, NONE, 1.1 Makefile, NONE, 1.1 kolab-filter.spec, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Thu Aug 9 17:51:22 CEST 2007
Author: gunnar
Update of /kolabrepository/server/kolab-filter
In directory doto:/tmp/cvs-serv1219
Added Files:
DEVELOPMENT Makefile kolab-filter.spec
Log Message:
kolab-resource-handlers splitted completely into kolab-freebusy and kolab-filter. Basic package installation of kolab-filter works.
--- NEW FILE: DEVELOPMENT ---
Development notes
=================
The kolab-filter package provides two PHP based scripts for the
postfix MTA. Since no compilation is necessary it is sufficient to
package the "filter" directory for a release.
The Kolab Server packages were usually not released as source
packages. This should be changed with this new package layout. The
"dist" target will produce a kolab-filter-*.tar.gz package that can
be distributed as source package. The same run will produce a
kolab-filter-*.src.rpm package that is suited for installation on an
OpenPKG system.
Version numbering
=================
kolab-filter is a Kolab Server core package. It should have the same
version as the Server release. As a part of Kolab Server 2.1 the
version number should be 2.1.
Once development picks up after a release, the version number should
be switched to $(OLD_VERSION).99 e.g. 2.1.99. There'll be no changes
of the version during development as there are no source packages
being released.
For the next release the version number will be increased to the new
Kolab Server version e.g. 2.2 and a new source packge will be
provided.
A NEW VERSION HAS TO BE SET IN
kolab-filter.spec
For testing purposes the "dist" target will produce source RPM
packages that have the release number from kolab-filter.spec
attached. You will have to update this release number manually in the
spec file.
Change log
==========
The change log for the package is provided in
"filter/docs/ChangeLog". Please keep this file up-to-date if you
change the source code of this package.
Contributors
============
The developers of this package are listed in
"filter/docs/AUTHORS". Please keep this file up-to-date if you
change the source code of this package.
--- NEW FILE: Makefile ---
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.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
TAR=$(PACKAGE)-$(VERSION).tar.bz2
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
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
.PHONY: dist
dist: all
cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../stage/
.PHONY: clean
clean:
rm -rf $(HOME)/RPM/TMP/$(PACKAGE)*
find . -name "*~" | xargs rm -rf
rm -rf *.src.rpm
rm -rf *.tar.bz2
$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec $(TAR)
test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
cp $(TAR) $(KOLABRPMSRC)/$(PACKAGE)/
cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
$(TAR): filter/*.php
tar cjf $@ filter --exclude="CVS" --exclude="*~"
--- NEW FILE: kolab-filter.spec ---
## COPYRIGHT
## ---------
##
## See freebusy/docs/AUTHORS file
##
##
## LICENSE
## -------
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Revision: 1.1 $
# versions of individual parts
%define V_package kolab-filter
%define V_version 2.1.99
%define V_release 20070809
# package information
Name: %{V_package}
Summary: Kolab2 Groupware Server mail filters
URL: http://www.kolab.org/
Vendor: Kolab Consortium
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Distribution: OpenPKG Community
Class: PLUS
Group: Mail
License: GPL
Version: %{V_version}
Release: %{V_release}
# list of sources
Source0: %{V_package}-%{V_version}.tar.bz2
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20070603
PreReq: php-kolab
AutoReq: no
AutoReqProv: no
%description
kolab-freebusy provides two filtering scripts for the postfix MTA
service. The scripts identify iCal mails and process these.
%prep
%setup -q -c
%build
%install
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/log
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/scripts
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/tmp
%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/share/doc/%{V_package}
cp -r filter/docs/* $RPM_BUILD_ROOT%{l_prefix}/share/doc/%{V_package}
rm -rf filter/docs
sed -i -e "s#@PHP@#%{l_prefix}/bin/php#" filter/*.php
cp -r filter/* $RPM_BUILD_ROOT%{l_prefix}/var/kolab-filter/scripts
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/tmp \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/log \
%dir '%defattr(755,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/scripts/kolabfilter.php \
%dir '%defattr(755,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab-filter/scripts/kolabmailboxfilter.php \
'%config(noreplace) %{l_prefix}/var/kolab-filter/scripts/config.php'
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
More information about the commits
mailing list