+# TODO
+# - man -l pam_mount.8 | perl -pe 's/.\cH//g' >pam_mount.txt;
+# man: invalid option -- 'l'
+# man, version 1.6f
%define modulename pam_mount
Summary: A PAM module that can mount remote volumes for a user session
Summary(pl.UTF-8): Moduł PAM, pozwalający montować zdalne zasoby na czas sesji użytkownika
Name: pam-%{modulename}
-Version: 0.33
+Version: 1.18
Release: 2
Epoch: 0
License: LGPL
Group: Base
Source0: http://dl.sourceforge.net/pam-mount/%{modulename}-%{version}.tar.bz2
-# Source0-md5: 08beec698dd95fc88e119848002a4e2e
+# Source0-md5: 209a0e73d1b71e4fc724f2f3be695119
URL: http://pam-mount.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel
+BuildRequires: libHX-devel
BuildRequires: libtool
+BuildRequires: libxml2-devel
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
-BuildRequires: libHX-devel
Obsoletes: pam_mount
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
DESTDIR=$RPM_BUILD_ROOT
install config/pam_mount.conf.xml $RPM_BUILD_ROOT/etc/security
-ln -sf /sbin/mount.crypt $RPM_BUILD_ROOT/%{_bindir}/mount.crypt
+ln -sf /sbin/mount.crypt $RPM_BUILD_ROOT%{_bindir}/mount.crypt
rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_mount.la
# void code on non-OpenBSD, besides broken
rm -f $RPM_BUILD_ROOT{%{_bindir}/mount_ehd,%{_mandir}/man8/mount_ehd.8}
-install scripts/convert_pam_mount_conf.pl $RPM_BUILD_ROOT%{_sbindir}
-
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) /%{_lib}/security/pam_mount.so
%config(noreplace) %verify(not md5 mtime size) /etc/security/pam_mount.conf.xml
%attr(755,root,root) /sbin/mount.crypt
+%attr(755,root,root) /sbin/mount.crypt_LUKS
+%attr(755,root,root) /sbin/mount.crypto_LUKS
+%attr(755,root,root) /sbin/mount.encfs13
%attr(755,root,root) /sbin/umount.crypt
-%attr(755,root,root) %{_bindir}/autoehd
-%attr(755,root,root) %{_bindir}/mkehd
+%attr(755,root,root) /sbin/umount.crypt_LUKS
+%attr(755,root,root) /sbin/umount.crypto_LUKS
%attr(755,root,root) %{_bindir}/mount.crypt
-%attr(755,root,root) %{_bindir}/passwdehd
-%attr(755,root,root) %{_sbindir}/convert_pam_mount_conf.pl
+%attr(755,root,root) %{_bindir}/pmt-fd0ssh
+%attr(755,root,root) %{_bindir}/pmt-ofl
+%attr(755,root,root) %{_sbindir}/pmt-ehd
%attr(755,root,root) %{_sbindir}/pmvarrun
-%{_mandir}/man1/mkehd.1*
-%{_mandir}/man8/autoehd.8*
+%{_mandir}/man1/pmt-fd0ssh.1*
+%{_mandir}/man5/pam_mount.conf.5*
%{_mandir}/man8/mount.crypt.8*
+%{_mandir}/man8/mount.crypt_LUKS.8*
+%{_mandir}/man8/mount.crypto_LUKS.8*
%{_mandir}/man8/pam_mount.8*
-%{_mandir}/man8/passwdehd.8*
+%{_mandir}/man8/pmt-ehd.8*
%{_mandir}/man8/pmvarrun.8*
%{_mandir}/man8/umount.crypt.8*
+%{_mandir}/man8/umount.crypt_LUKS.8*
+%{_mandir}/man8/umount.crypto_LUKS.8*