OBS User unknown 2008-04-20 23:56:58 +00:00 committed by Git OBS Bridge
parent 0191daa12a
commit 4758741527
3 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,29 @@
Index: pam_mount-0.35/configure.ac
===================================================================
--- pam_mount-0.35.orig/configure.ac
+++ pam_mount-0.35/configure.ac
@@ -45,15 +45,17 @@ AC_ARG_WITH([selinux], AS_HELP_STRING([-
AM_CONDITIONAL(SELINUX, $with_selinux)
m4_sinclude(m4lib/gcc4_visibility.m4)
-# RH 8.0's OpenSSL does not have?
-AC_CHECK_LIB(crypto, EVP_DecryptInit_ex, [pmt_LIBS="$pmt_LIBS -lcrypto"])
-AC_CHECK_LIB(ssl, SSL_load_error_strings, [pmt_LIBS="$pmt_LIBS -lssl"])
regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
- -D_FILE_OFFSET_BITS=64 \
- -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
- -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
- -Winline -Wformat=2 -pipe"
+ -D_FILE_OFFSET_BITS=64 \
+ -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
+ -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
+ -Winline -Wformat=2 -pipe"
+
+# RH 8.0's OpenSSL does not have?
+AC_CHECK_LIB(crypto, EVP_DecryptInit_ex, [LIBS="$LIBS -lcrypto"; regular_CFLAGS="$regular_CFLAGS -DHAVE_LIBCRYPTO=1"])
+AC_CHECK_LIB(ssl, SSL_load_error_strings, [LIBS="$LIBS -lssl"; regular_CFLAGS="$regular_CFLAGS -DHAVE_LIBSSL=1"])
+
AC_SUBST(regular_CFLAGS)
AC_CHECK_MEMBERS([struct loop_info64.lo_file_name], [], [],

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 18 14:35:59 CEST 2008 - mc@suse.de
- fix configure (bnc#381292)
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de

View File

@ -16,7 +16,7 @@ BuildRequires: libHX10-devel libxml2-devel openssl-devel pam-devel perl-XML-Wri
BuildRequires: linux-kernel-headers
Summary: A PAM Module that can Mount Volumes for a User Session
Version: 0.35
Release: 2
Release: 4
# psmisc: /bin/fuser
Recommends: cifs-mount psmisc
Recommends: cryptsetup
@ -27,6 +27,7 @@ Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Patch1: pam_mount-0.18-umount-home-dir.dif
Patch2: pam_mount-0.18-bump-max-par.diff
Patch3: pam_mount-0.35-fix-configure.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pam-mount.sourceforge.net/
PreReq: coreutils, perl-XML-Writer
@ -64,8 +65,11 @@ include it and send me patches.
%setup -q
%patch1
%patch2
%patch3 -p1
%build
%{suse_update_config -f}
autoreconf --verbose --force --install
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \
--prefix=%{_prefix} --with-slibdir=/%{_lib} --mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir}
@ -117,6 +121,8 @@ rm -rf $RPM_BUILD_ROOT
%doc %{_mandir}/man8/umount.crypt.8.gz
%changelog
* Fri Apr 18 2008 mc@suse.de
- fix configure (bnc#381292)
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support