summaryrefslogtreecommitdiff
path: root/kolab.mk
blob: 3ccfca7bcc3127a95c66850064f64d569905297b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Set KOLABDIR to the base directory of the OpenPKG/Kolab installation:
KOLABDIR = $(shell openpkg rpm -q --qf '%{INSTALLPREFIX}\n' openpkg)

ifeq ($(KOLABDIR),)
  $(error Could not determine KOLABDIR!)
endif

ifeq ($(RPM),)
  RPM = $(KOLABDIR)/bin/openpkg rpm
endif
ifeq ($(KOLABRPMSRC),)
  KOLABRPMSRC = $(KOLABDIR)/RPM/SRC
endif
ifeq ($(KOLABRPMPKG),)
  KOLABRPMPKG = $(KOLABDIR)/RPM/PKG
endif
ifeq ($(KOLABRPMTMP),)
  KOLABRPMTMP = $(KOLABDIR)/RPM/TMP
endif
ifeq ($(CURSRCDIR),)
  CURSRCDIR = $(CURDIR)
endif
ifeq ($(KOLABPKGURI),)
  KOLABPKGURI = http://files.kolab.org/server/release/kolab-server-2.2.0/sources/
endif
ifeq ($(OPENPKGURI),)
  OPENPKGURI = http://files.kolab.org/server/development-2.2/openpkg-orig-srpms/
endif
ifeq ($(PLATTAG),)
  PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(KOLABDIR:/%=%)
endif