• R/O
  • HTTP
  • SSH
  • HTTPS

pam_smtpauth: コミット

PAM for SMTP Authentication


コミットメタ情報

リビジョン0e90c8e5c924f5fec105d3346d04b6d9a7e8265e (tree)
日時2010-04-21 17:36:37
作者Taizo ITO <taizo.ito@hde....>
コミッターTaizo ITO

ログメッセージ

commited.

変更サマリ

差分

--- a/pam_smtpauth.spec.in
+++ b/pam_smtpauth.spec.in
@@ -5,6 +5,7 @@
55
66 %define vendor_openssl %([ "%{?_vendor_openssl}" = "" ] && echo || echo %{_vendor_openssl})
77 %define vendor_libdir %([ "%{?_vendor_libdir}" = "" ] && echo || echo %{_vendor_libdir})
8+%define vendor_includedir %([ "%{?_vendor_includedir}" = "" ] && echo || echo %{_vendor_includedir})
89
910 %define version @VERSION@
1011 %define release 1
@@ -48,6 +49,8 @@ Linux-PAM and SMTP Authentication.
4849
4950 %build
5051 %if "%{vendor_libdir}" != ""
52+LIBS="-I%{vendor_includedir} -L%{vendor_libdir}"
53+export LIBS
5154 LDFLAGS="-Wl,-rpath,%{vendor_libdir} -L%{vendor_libdir}"
5255 export LDFLAGS
5356 %endif
@@ -55,12 +58,20 @@ export LDFLAGS
5558 --prefix=%{_prefix} \
5659 --libdir=%{_libdir} \
5760 --enable-debug=yes \
61+ --includedir=%{vendor_includedir} \
5862 %if %{with_smtps}
5963 --enable-ssl=yes \
6064 --with-krb5-dir=%{_prefix}/kerberos \
6165 %endif
6266
67+%if "%{vendor_libdir}" != ""
68+CFLAGS="-I%{vendor_includedir} -Wl,-rpath,%{vendor_libdir} -L%{vendor_libdir}"
69+export CFLAGS
70+make %{?_smp_mflags} CFLAGS="${CFLAGS}" || make CFLAGS="${CFLAGS}"
71+%else
6372 make %{?_smp_mflags} || make
73+%endif
74+
6475 ## make check
6576
6677 %install
旧リポジトリブラウザで表示