summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arendsen Hein <thomas@intevation.de>2008-05-02 10:26:39 (GMT)
committerThomas Arendsen Hein <thomas@intevation.de>2008-05-02 10:26:39 (GMT)
commit30c87d1aed680c4c1a3301bf00c91edd79abf720 (patch)
tree4168e11b2f8103755184c10027604bf096ce06af
parent6882eff8caa4cea49db751592d279f5d6fa1cfb4 (diff)
downloadserver-30c87d1aed680c4c1a3301bf00c91edd79abf720.tar.gz
Fix kolab/issue2346 (Compilation of postfix fails on CentOS 5.1 64Bit)
The /lib64 patch for the OpenPKG spec file is needed for packages before postfix-2.5.1-20080217 and distributions which don't have /lib and /lib64 pointing to the same directory.
-rw-r--r--postfix/Makefile37
-rw-r--r--postfix/README5
-rw-r--r--postfix/kolab.patch21
3 files changed, 63 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
diff --git a/postfix/README b/postfix/README
new file mode 100644
index 0000000..ecabd46
--- /dev/null
+++ b/postfix/README
@@ -0,0 +1,5 @@
+Fix kolab/issue2346 (Compilation of postfix fails on CentOS 5.1 64Bit)
+
+The /lib64 patch for the OpenPKG spec file is needed for packages before
+postfix-2.5.1-20080217 and distributions which don't have /lib and /lib64
+pointing to the same directory.
diff --git a/postfix/kolab.patch b/postfix/kolab.patch
new file mode 100644
index 0000000..eba0170
--- /dev/null
+++ b/postfix/kolab.patch
@@ -0,0 +1,21 @@
+--- postfix.spec.orig 2008-01-01 15:32:38.000000000 +0100
++++ postfix.spec 2008-05-02 12:08:43.724783000 +0200
+@@ -37,7 +37,7 @@
+ Group: Mail
+ License: IPL
+ Version: %{V_postfix}
+-Release: 20080101
++Release: 20080101_kolab
+
+ # package options
+ %option with_fsl yes
+@@ -186,6 +186,9 @@
+ if [ -f /usr/lib/libdl.so -o -f /usr/lib/libdl.a ]; then
+ AUXLIBS="$AUXLIBS -ldl"
+ fi
++ if [ -f /usr/lib64/libdl.so -o -f /usr/lib64/libdl.a ]; then
++ AUXLIBS="$AUXLIBS -ldl"
++ fi
+ %endif
+ %if "%{with_ssl}" == "yes"
+ CCARGS="$CCARGS -DUSE_TLS"