summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2006-11-06 13:22:37 (GMT)
committerSteffen Hansen <steffen@kdab.com>2006-11-06 13:22:37 (GMT)
commit8a699e3fc523000e343a02d3c1ac373c38205f2d (patch)
tree36a90176f40453fb370f81eb31faeadfe14150ea /postfix
parent6bf31ffbee075996d9646e43b911dfff8c77f049 (diff)
downloadserver-8a699e3fc523000e343a02d3c1ac373c38205f2d.tar.gz
avoid rebuilding everything every time
Diffstat (limited to 'postfix')
-rw-r--r--postfix/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/postfix/Makefile b/postfix/Makefile
index 3c5b8bc..6a7ea45 100644
--- a/postfix/Makefile
+++ b/postfix/Makefile
@@ -4,6 +4,9 @@ endif
ifeq "x$(KOLABRPMSRC)" "x"
KOLABRPMSRC = /kolab/RPM/SRC
endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ KOLABRPMPKG = /kolab/RPM/PKG
+endif
ifeq "x$(KOLABCVSDIR)" "x"
KOLABCVSDIR = $(CURDIR)
endif
@@ -16,19 +19,24 @@ KOLABRELEASE=2.5.0_kolab
RPM=/kolab/bin/openpkg rpm
KOLABPKGURI:=`/kolab/bin/openpkg register -R $(KOLABPKGURI)`
-all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+PATCHES=$(KOLABCVSDIR)/postfix-ldap-leafonly.patch \
+ $(KOLABCVSDIR)/postfix-pipe-allow-empty-sender.patch
+
+all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
+
+$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(PATCHES) $(KOLABCVSDIR)/kolab.patch Makefile
$(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
- cp $(KOLABCVSDIR)/postfix-ldap-leafonly.patch $(KOLABRPMSRC)/$(PACKAGE)/
- cp $(KOLABCVSDIR)/postfix-pipe-allow-empty-sender.patch $(KOLABRPMSRC)/$(PACKAGE)/
+ cp $(PATCHES) $(KOLABRPMSRC)/$(PACKAGE)/
cp $(KOLABCVSDIR)/kolab.patch $(KOLABRPMSRC)/$(PACKAGE)/ # Patch for postfix.spec
cd $(KOLABRPMSRC)/$(PACKAGE) && patch < $(KOLABCVSDIR)/kolab.patch && $(RPM) -ba $(PACKAGE).spec --define 'with_ldap yes' --define 'with_sasl yes' --define 'with_ssl yes'
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm $(KOLABCVSDIR)
postfix-$(VERSION)-$(RELEASE).src.rpm:
wget -c $(KOLABPKGURI)/postfix-$(VERSION)-$(RELEASE).src.rpm
dist: all
- cp $(KOLABRPMSRC)/../PKG/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
+ cp $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
clean:
- rm -rf /kolab/RPM/TMP/cyrus-imapd* cyrus* imapd* rc.imapd vhosthack.patch fsl.imapd groupfile.patch
+ rm -rf /kolab/RPM/TMP/cyrus-imapd* cyrus* imapd* rc.imapd vhosthack.patch fsl.imapd groupfile.patch $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm