[Momonga-devel.ja:01094] new Postfix/TLS - A TLS extension for POSTFIX


米川です

  思うところがあって、Postfix + TLS をやりたくなって、postfix を
	%define TLS_SUPPORT 1
して rebuild したところ失敗しました。

  Postfix/TLS は通常、Postfix や OpenSSL のバージョンが上がると更新す
るようです。現行 postfix.spec は古いです。
  ssl_ver と pfixtls_ver を最新のものに合わせるよう修正したところ、私
の手元では動作しました。

  ついでに TLS_SUPPORT をしやすいように、include_specopt 対応にしたも
の(diff)を添付します。採用していただくと今後rebuild時に楽になるので、
よろしくお願いします。

-- 
米川
Index: postfix/postfix.spec
===================================================================
RCS file: /home/cvs/pkgs/postfix/postfix.spec,v
retrieving revision 1.53
diff -u -r1.53 postfix.spec
--- postfix/postfix.spec	2002/12/03 15:18:59	1.53
+++ postfix/postfix.spec	2002/12/19 13:05:03
@@ -10,31 +10,38 @@
 # IPv6 support (1=yes 0=no)
 # %%define _ipv6 0
 
+### include local configuration
+%{?include_specopt}
+
+### default configurations
+#  If you'd like to change these configurations, please copy them to
+# /etc/rpm/specopt/postfix.specopt and edit it.
+
 # LDAP support (1=yes 0=no)
-%define LDAP_SUPPORT 1
+%{?!LDAP_SUPPORT:%define LDAP_SUPPORT 1}
 
 # MYSQL support (1=yes 0=no)
-%define MYSQL_SUPPORT 0
+%{?!MYSQL_SUPPORT:%define MYSQL_SUPPORT 0}
 
 # TLS support (1=yes 0=no)
-%define TLS_SUPPORT 0
+%{?!TLS_SUPPORT:%define TLS_SUPPORT 0}
 
 # SASL support (1=yes 0=no)
-%define SASL_SUPPORT 1
+%{?!SASL_SUPPORT:%define SASL_SUPPORT 1}
 
 # PCRE support (1=yes 0=no)
-%define PCRE_SUPPORT 1
+%{?!PCRE_SUPPORT:%define PCRE_SUPPORT 1}
 
 # SMTPD_MULTILINE_GREETING (1=yes 0=no)
-%define SMTPD_MULTILINE_GREETING 1
+%{?!SMTPD_MULTILINE_GREETING:%define SMTPD_MULTILINE_GREETING 1}
 
 # against alpha
 %ifarch alpha
 %define SO_SUFFIX .1
 %endif
 
-%define ssl_ver 0.9.6c
-%define pfixtls_ver 0.8.4
+%define ssl_ver 0.9.6h
+%define pfixtls_ver 0.8.12
 %define tls_name pfixtls-%{pfixtls_ver}-%{ver}-%{ssl_ver}
 
 %define copy_cmd copy() { file="`ls --sort=time $1 |head -n 1`"; ln -f "$file" "$2" 2>/dev/null || cp -df "$file" "$2"; }