%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: ecryptfs-utils Version: 69 Release: 1%{?dist} Summary: The eCryptfs mount helper and support libraries Group: System Environment/Base License: GPLv2+ URL: https://launchpad.net/ecryptfs Source0: http://launchpad.net/ecryptfs/trunk/%{version}/+download/ecryptfs-utils_%{version}.orig.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libgcrypt-devel keyutils-libs-devel openssl-devel pam-devel BuildRequires: trousers-devel python python-devel nss-devel Conflicts: kernel < 2.6.19 Patch0: ecryptfs-utils-67-nss3.patch %description eCryptfs is a stacked cryptographic filesystem that ships in Linux kernel versions 2.6.19 and above. This package provides the mount helper and supporting libraries to perform key management and mount functions. Install ecryptfs-utils if you would like to mount eCryptfs. %package devel Summary: The eCryptfs userspace development package Group: System Environment/Base Requires: keyutils-libs-devel %{name} = %{version}-%{release} %description devel Userspace development files for eCryptfs. %package python Summary: Python bindings for the eCryptfs utils Group: System Environment/Base Requires: ecryptfs-utils %{name} = %{version}-%{release} %description python The ecryptfs-utils-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the ecryptfs-utils library. %prep %setup -q %patch0 -p1 -b .nss3 %build %configure --disable-rpath --enable-tspi --enable-nss #disable rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -rf %{buildroot}%{_libdir}/*.a rm -rf %{buildroot}%{_libdir}/*.la rm -rf %{buildroot}%{_docdir}/%{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING AUTHORS NEWS THANKS %doc doc/ecryptfs-faq.html doc/ecryptfs-pam-doc.txt %doc doc/ecryptfs-pkcs11-helper-doc.txt %attr(4755,root,root) /sbin/mount.ecryptfs %attr(4755,root,root) /sbin/mount.ecryptfs_private %attr(4755,root,root) /sbin/umount.ecryptfs_private %{_bindir}/ecryptfs-manager %{_bindir}/ecryptfs-insert-wrapped-passphrase-into-keyring %{_bindir}/ecryptfs-rewrap-passphrase %{_bindir}/ecryptfs-unwrap-passphrase %{_bindir}/ecryptfs-wrap-passphrase %{_bindir}/ecryptfs-add-passphrase %{_bindir}/ecryptfs-generate-tpm-key %{_bindir}/ecryptfs-mount-private %{_bindir}/ecryptfs-setup-private %{_bindir}/ecryptfs-umount-private %{_bindir}/ecryptfs-stat %{_bindir}/ecryptfsd %{_libdir}/libecryptfs.so.0.0.0 %{_libdir}/libecryptfs.so.0 %{_libdir}/ecryptfs /%{_lib}/security/pam_ecryptfs.so %{_mandir}/man1/ecryptfs-add-passphrase.1.gz %{_mandir}/man1/ecryptfs-generate-tpm-key.1.gz %{_mandir}/man1/ecryptfs-insert-wrapped-passphrase-into-keyring.1.gz %{_mandir}/man1/ecryptfs-mount-private.1.gz %{_mandir}/man1/ecryptfs-rewrap-passphrase.1.gz %{_mandir}/man1/ecryptfs-setup-private.1.gz %{_mandir}/man1/ecryptfs-umount-private.1.gz %{_mandir}/man1/ecryptfs-unwrap-passphrase.1.gz %{_mandir}/man1/ecryptfs-wrap-passphrase.1.gz %{_mandir}/man1/mount.ecryptfs_private.1.gz %{_mandir}/man1/umount.ecryptfs_private.1.gz %{_mandir}/man7/ecryptfs.7.gz %{_mandir}/man8/ecryptfs-manager.8.gz %{_mandir}/man8/ecryptfsd.8.gz %{_mandir}/man8/mount.ecryptfs.8.gz %{_mandir}/man8/pam_ecryptfs.8.gz %files devel %defattr(-,root,root,-) %{_libdir}/libecryptfs.so %{_libdir}/pkgconfig/libecryptfs.pc %{_includedir}/ecryptfs.h %files python %defattr(-,root,root,-) %{python_sitelib}/ecryptfs-utils/libecryptfs.py %{python_sitelib}/ecryptfs-utils/libecryptfs.pyc %{python_sitelib}/ecryptfs-utils/libecryptfs.pyo %{python_sitearch}/ecryptfs-utils/_libecryptfs.so.0 %{python_sitearch}/ecryptfs-utils/_libecryptfs.so.0.0.0 %{python_sitearch}/ecryptfs-utils/_libecryptfs.la %{python_sitearch}/ecryptfs-utils/_libecryptfs.so %changelog * Tue Jan 27 2009 Michal Hlavinka 69-1 - updated to 69 * Mon Jan 12 2009 Michal Hlavinka 68-0 - updated to 68 - fix #478464 - /usr/bin/ecryptfs-setup-private errors out * Mon Dec 29 2008 Michal Hlavinka 67-1 - bump release for rebuild * Mon Dec 29 2008 Michal Hlavinka 67-0 - updated to 67 * Wed Oct 22 2008 Mike Halcrow 61-0 - Add support for filename encryption enablement (future kernel feature) - Replace uint32_t with size_t for x86_64 compatibility (patch by Eric Sandeen) * Fri Oct 17 2008 Eric Sandeen 59-2 - Remove duplicate doc files from rpm * Tue Oct 07 2008 Mike Halcrow 59-1 - Put attr declaration in the right spot * Tue Oct 07 2008 Mike Halcrow 59-0 - Make /sbin/*ecryptfs* files setuid - Add /sbin path to ecryptfs-setup-private * Mon Oct 06 2008 Mike Halcrow 58-0 - TSPI key module update to avoid flooding TrouSerS library with requests - OpenSSL key module parameter fixes - Updates to mount-on-login utilities * Wed Aug 13 2008 Mike Halcrow 56-0 - Namespace fixes for the key module parameter aliases - Updates to the man page and the README * Wed Jul 30 2008 Eric Sandeen 53-0 - New upstream version - Many new manpages, new ecryptfs-stat util * Thu Jul 17 2008 Tom "spot" Callaway 50-1 - fix license tag * Fri Jun 27 2008 Mike Halcrow 50-0 - Add umount.ecryptfs_private symlink - Add pam_mount session hooks for mount and unmount * Fri Jun 27 2008 Eric Sandeen 49-1 - build with TrouSerS key module * Fri Jun 27 2008 Eric Sandeen 49-0 - New upstream version * Tue Jun 03 2008 Eric Sandeen 46-0 - New upstream version * Mon Feb 18 2008 Mike Halcrow 40-0 - Enable passwd_file option in openssl key module * Wed Feb 13 2008 Mike Halcrow 39-0 - Fix include upstream * Wed Feb 13 2008 Karsten Hopp 38-1 - fix includes * Tue Jan 8 2008 Mike Halcrow 38-0 - Fix passthrough mount option prompt - Clarify man page - Add HMAC option (for future kernel versions) - Bump to version 38 * Wed Dec 19 2007 Mike Halcrow 37-0 - Remove unsupported ciphers; bump to version 37 * Tue Dec 18 2007 Mike Halcrow 36-0 - Cipher selection detects .gz ko files; bump to version 36 * Mon Dec 17 2007 Mike Halcrow 35-0 - Cleanups to cipher selection; bump to version 35 * Mon Dec 17 2007 Mike Halcrow 34-0 - Fix OpenSSL key module; bump to version 34 * Fri Dec 14 2007 Mike Halcrow 33-1 - Add files to package * Fri Dec 14 2007 Mike Halcrow 33-0 - update to version 33 * Thu Dec 13 2007 Karsten Hopp 32-1 - update to version 32 * Thu Nov 29 2007 Karsten Hopp 30-2 - fix ia64 libdir - build initial RHEL-5 version * Thu Nov 29 2007 Karsten Hopp 30-1 - build version 30 * Fri Oct 05 2007 Mike Halcrow - 30-0 - Bump to version 30. Several bugfixes. Key modules are overhauled with a more sane API. * Wed Aug 29 2007 Fedora Release Engineering - 18-1 - Rebuild for selinux ppc32 issue. * Thu Jun 28 2007 Mike Halcrow - 18-0 - Bump to version 18 with an OpenSSL key module fix * Thu Jun 21 2007 Kevin Fenzi - 17-1 - Change kernel Requires to Conflicts - Remove un-needed devel buildrequires * Wed Jun 20 2007 Mike Halcrow - 17-0 - Provide built-in fallback passphrase key module. Remove keyutils, openssl, and pam requirements (library dependencies take care of this). Include wrapped passphrase executables in file set. * Fri Apr 20 2007 Mike Halcrow - 15-1 - Change permission of pam_ecryptfs.so from 644 to 755. * Thu Apr 19 2007 Mike Halcrow - 15-0 - Fix mount option parse segfault. Fix pam_ecryptfs.so semaphore issue when logging in via ssh. * Thu Mar 01 2007 Mike Halcrow - 10-0 - Remove verbose syslog() calls; change key module build to allow OpenSSL module to be disabled from build; add AUTHORS, NEWS, and THANKS to docs; update Requires with variables instead of hardcoded name and version. * Tue Feb 06 2007 Mike Halcrow - 9-1 - Minor update in README, add dist tag to Release, add --disable-rpath to configure step, and remove keyutils-libs from Requires. * Tue Jan 09 2007 Mike Halcrow - 9-0 - Correct install directories for 64-bit; add support for xattr and encrypted_view mount options * Tue Jan 02 2007 Mike Halcrow - 8-0 - Introduce build support for openCryptoki key module. Fix -dev build dependencies for devel package * Mon Dec 11 2006 Mike Halcrow - 7-0 - Initial package creation