summaryrefslogtreecommitdiff
path: root/imapd/Makefile
blob: 56e51cb63e75a399cb0413be43f9125589fa66ed (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
ifeq "x$(KOLABPKGURI)" "x"
  KOLABPKGURI = ftp://ftp.openpkg.org/release/2.1/SRC
endif
ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = /kolab/RPM/SRC
endif
ifeq "x$(KOLABCVSDIR)" "x"
  KOLABCVSDIR = $(CURDIR)
endif

VERSION=2.2.6
RELEASE=2.1.0

RPM=/kolab/bin/openpkg rpm
 
all: imapd-$(VERSION)-$(RELEASE).src.rpm
	$(RPM) -ihv imapd-$(VERSION)-$(RELEASE).src.rpm

	cp $(KOLABCVSDIR)/imapd.annotate.patch $(KOLABRPMSRC)/imapd/
	cp $(KOLABCVSDIR)/kolab.patch $(KOLABRPMSRC)/imapd/           # Patch for imapd.spec
	cp $(KOLABCVSDIR)/kolab-ldap.patch $(KOLABRPMSRC)/imapd/      

	cd $(KOLABRPMSRC)/imapd && patch < $(KOLABCVSDIR)/kolab.patch && $(RPM) -ba imapd.spec --define 'with_group yes' --define 'with_atvdom yes' --define 'with_annotate yes' --define 'with_ldap yes'

imapd-$(VERSION)-$(RELEASE).src.rpm:
	wget -c $(KOLABPKGURI)/imapd-$(VERSION)-$(RELEASE).src.rpm

clean:
	rm -rf /kolab/RPM/TMP/cyrus-imapd* cyrus* imapd* rc.imapd vhosthack.patch fsl.imapd groupfile.patch