1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
#
# rpm spec-file for cryptmount
# Copyright 2006-2022, Holger Mueller, Eriks Zelenka & RW Penney
#
Summary: Let ordinary users mount an encrypted file system
Name: cryptmount
Version: 6.2.0
Release: 1%{?dist}
License: GPL
URL: http://cryptmount.sourceforge.net
Group: System/Filesystems
Source0: http://sourceforge.net/projects/cryptmount/files/cryptmount-%{version}/%{name}-%{version}.tar.gz
%if 0%{?fedora}
#{
# Fedora
BuildRequires: cryptsetup-devel libgcrypt-devel systemd-devel
Requires: cryptsetup-libs libgcrypt device-mapper
#}
%else
#{
%if 0%{?rhel}
#{
# RHEL, CentOS
%if 0%{?rhl} >= 7
BuildRequires: cryptsetup-devel libgcrypt-devel systemd-devel
Requires: cryptsetup-libs libgcrypt device-mapper
%else
BuildRequires: cryptsetup-luks-devel libgcrypt-devel
Requires: cryptsetup-luks-libs libgcrypt device-mapper
%endif
#}
%else
#{
# Default - OpenSuse13.1
BuildRequires: libcryptsetup-devel libgcrypt-devel
Requires: libcryptsetup4 libgcrypt11 device-mapper
#}
%endif
#}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
cryptmount is a utility for the GNU/Linux operating system which allows
an ordinary user to mount an encrypted filing system without requiring
superuser privileges. Filesystems can reside on raw disk partitions or
ordinary files, with cryptmount automatically configuring
device-mapper and loopback devices before mounting.
%prep
%setup -n %{name}-%{version}
%{__perl} -pi.orig -e '
s|^(\s*)chown(\s*root)|\1#chown\2|g;
s|/etc/init.d|%{_initrddir}|g;
' Makefile.am Makefile.in
%build
%configure --enable-delegation --enable-fsck
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_initrddir}
%{__install} -d -m0755 %{buildroot}%{_sbindir}
%{__install} -d -m0755 %{buildroot}/usr/lib/systemd/system
%{__make} DESTDIR=%{buildroot} install
%find_lang %{name}
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING README* RELNOTES
%doc %{_mandir}/man5/cmtab.5*
%doc %{_mandir}/man8/cryptmount*.8*
%doc %{_mandir}/*/man5/cmtab.5*
%doc %{_mandir}/*/man8/cryptmount*.8*
%config(noreplace) %{_sysconfdir}/cryptmount/
%config %{_initrddir}/cryptmount
%config /etc/modules-load.d/cryptmount.conf
%config /usr/lib/systemd/system/cryptmount.service
%{_sbindir}/cryptmount-setup
%attr(4751, root, root) %{_bindir}/cryptmount
%post
/sbin/chkconfig --add cryptmount
%preun
if [ "$1" = 0 ]; then
/sbin/chkconfig --del cryptmount
fi
%changelog
* Sat Jan 07 2023 RW Penney <cryptmount@rwpenney.uk> - 6.2
-- Enabled libudev by default
* Sat Oct 08 2022 RW Penney <cryptmount@rwpenney.uk> - 6.1
-- Refreshed installation documentation and inter-process locking
* Sat Sep 03 2022 RW Penney <cryptmount@rwpenney.uk> - 6.0
-- Refreshed default ciphers and keymanager
* Wed Feb 07 2018 RW Penney <cryptmount@rwpenney.uk> - 5.3
-- Improved support for cryptsetup-2.x
* Thu Oct 08 2015 RW Penney <cryptmount@rwpenney.org.uk> - 5.2
-- Various bug-fixes and cleanups
* Mon May 04 2015 RW Penney <cryptmount@rwpenney.org.uk> - 5.1
-- Improved portability across RPM-based systems
* Mon Apr 28 2014 RW Penney <cryptmount@rwpenney.org.uk> - 5.0
-- Migrated LUKS functionality to use libcryptsetup
* Mon Dec 23 2013 RW Penney <cryptmount@rwpenney.org.uk> - 4.5
-- Added support for TRIM on SSDs
* Tue May 21 2013 RW Penney <cryptmount@rwpenney.org.uk> - 4.4
-- Added support systemd
* Thu Dec 29 2011 RW Penney <cryptmount@rwpenney.org.uk> - 4.3
-- Added support for environmental variables in configuration file
* Tue May 03 2011 RW Penney <cryptmount@rwpenney.org.uk> - 4.2
-- Added entropy-based protection against accidental swap formatting
* Wed Mar 10 2010 RW Penney <cryptmount@rwpenney.org.uk> - 4.1
-- Improved compatability with cryptsetup-1.1
* Mon Jan 05 2009 RW Penney <cryptmount@rwpenney.org.uk> - 4.0
-- Improved password fortification via iterated hashing
* Sun Jan 22 2006 Holger Mueller <holger@MAPS.euhm.de> - 0.1-1mr
-- RPM spec created
|