gunnar: server/make-helper kolab.mk,NONE,1.1
cvs at kolab.org
cvs at kolab.org
Wed Dec 9 22:52:51 CET 2009
Author: gunnar
Update of /kolabrepository/server/make-helper
In directory doto:/tmp/cvs-serv17544/make-helper
Added Files:
kolab.mk
Log Message:
Add the kolab.mk from the kolab_2_2 branch. Added comments and an initial sanity check for the openpkg tool.
--- NEW FILE: kolab.mk ---
# Initial sanity check for the OpenPKG tool
OPENPKG=$(shell which openpkg && echo YES)
ifeq "x$(OPENPKG)" "x"
$(error Did not find the "openpkg" tool. Make sure your environment settings are sane. On a standard kolab system you might need to run "eval `/kolab/etc/rc --eval all env`")
endif
# Set KOLABDIR to the base directory of the OpenPKG/Kolab installation:
KOLABDIR = $(shell openpkg rpm -q --qf '%{INSTALLPREFIX}\n' openpkg)
# Error out if there is no kolab directory
ifeq ($(KOLABDIR),)
$(error Could not determine KOLABDIR!)
endif
# Set the location of the rpm binary
ifeq ($(RPM),)
RPM = $(KOLABDIR)/bin/openpkg rpm
endif
# Set the location for rpm source package installations
ifeq ($(KOLABRPMSRC),)
KOLABRPMSRC = $(KOLABDIR)/RPM/SRC
endif
# Set the location for rpm packages
ifeq ($(KOLABRPMPKG),)
KOLABRPMPKG = $(KOLABDIR)/RPM/PKG
endif
# Set the location for the rpm temporary directory
ifeq ($(KOLABRPMTMP),)
KOLABRPMTMP = $(KOLABDIR)/RPM/TMP
endif
# Set the current working directory
ifeq ($(CURSRCDIR),)
CURSRCDIR = $(CURDIR)
endif
# Set the download location for Kolab source RPMs
ifeq ($(KOLABPKGURI),)
KOLABPKGURI = http://files.kolab.org/server/release/kolab-server-2.2.0/sources/
endif
# Set the download location for OpenPKG source RPMs
ifeq ($(OPENPKGURI),)
OPENPKGURI = http://files.kolab.org/server/development-2.2/openpkg-orig-srpms/
endif
# Determine the suffix for binary packages on this system
ifeq ($(PLATTAG),)
PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(KOLABDIR:/%=%)
endif
More information about the commits
mailing list