summaryrefslogtreecommitdiff
path: root/postfix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'postfix/Makefile')
-rw-r--r--postfix/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/postfix/Makefile b/postfix/Makefile
new file mode 100644
index 0000000..f4d8d52
--- /dev/null
+++ b/postfix/Makefile
@@ -0,0 +1,37 @@
+ifeq "x$(KOLABPKGURI)" "x"
+ KOLABPKGURI = http://ftp.gwdg.de/pub/linux/kolab/server/development-2.2/openpkg-orig-srpms/
+endif
+ifeq "x$(KOLABRPMSRC)" "x"
+ KOLABRPMSRC = $(HOME)/RPM/SRC
+endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ KOLABRPMPKG = $(HOME)/RPM/PKG
+endif
+ifeq "x$(KOLABCVSDIR)" "x"
+ KOLABCVSDIR = $(CURDIR)
+endif
+ifeq "x$(RPM)" "x"
+ RPM = $(HOME)/bin/openpkg rpm
+endif
+
+PACKAGE=postfix
+VERSION=2.4.6
+RELEASE=20080101
+KOLABRELEASE=20080101_kolab
+
+all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
+
+$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(KOLABCVSDIR)/kolab.patch Makefile
+ $(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+
+ cd $(KOLABRPMSRC)/$(PACKAGE) && patch < $(KOLABCVSDIR)/kolab.patch && $(RPM) -ba $(PACKAGE).spec --define 'with_fsl yes' --define 'with_ssl yes' --define 'with_sasl yes' --define 'with_ldap yes'
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm $(KOLABCVSDIR)
+
+$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm:
+ wget -c $(KOLABPKGURI)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+
+dist: all
+ cp $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
+
+clean:
+ rm $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm