summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-01-17 13:22:55 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-01-17 13:22:55 (GMT)
commit4f2136760b4dde98067ebd27a93729fff7b24b7b (patch)
tree19b33ed1b9c4e4e36363113422ee570dbae10336 /postfix
parent75d2b1ca033e479e849f68238cacac8379520454 (diff)
downloadserver-4f2136760b4dde98067ebd27a93729fff7b24b7b.tar.gz
Add fetch target. Convert perl-ldap and sqlite to new build pattern. Added with_tokenizer to the php packages (useful for PHPUnit).
Diffstat (limited to 'postfix')
-rw-r--r--postfix/Makefile41
1 files changed, 12 insertions, 29 deletions
diff --git a/postfix/Makefile b/postfix/Makefile
index aeb8a7b..61a9c12 100644
--- a/postfix/Makefile
+++ b/postfix/Makefile
@@ -1,37 +1,20 @@
-ifeq "x$(KOLABPKGURI)" "x"
- KOLABPKGURI = http://files.kolab.org/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
+include ../make-helper/kolab.mk
PACKAGE=postfix
+DOWNLOAD_VERSION=2.4.6
+OPENPKG_RELEASE=20080101
VERSION=2.4.6
-RELEASE=20080101
-KOLABRELEASE=20080101_kolab
+RELEASE=20080101_kolab
-all: $(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
+SOURCE_URL=
+SOURCE_0=
-$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm $(KOLABCVSDIR)/kolab.patch Makefile
- $(RPM) -ihv $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+PATCHES=
- 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)
+EXTRA=kolab.patch
-$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm:
- wget -c $(KOLABPKGURI)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+BUILD_OPTIONS=--define 'with_fsl yes' --define 'with_ssl yes' --define 'with_sasl yes' --define 'with_ldap yes'
-dist: all
- cp $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm ../stage/
-
-clean:
- rm -f $(KOLABCVSDIR)/$(PACKAGE)-$(VERSION)-$(KOLABRELEASE).src.rpm
+include ../make-helper/package.mk
+include ../make-helper/openpkg-patched.mk
+include ../make-helper/fetch.mk