2007-01-15 23:11:12 +00:00
|
|
|
#
|
2011-06-06 11:56:39 +00:00
|
|
|
# spec file for package ecryptfs-utils
|
2007-01-15 23:11:12 +00:00
|
|
|
#
|
2024-02-22 13:19:10 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:11:12 +00:00
|
|
|
#
|
2008-08-24 09:02:24 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-08-20 15:50:11 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:11:12 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-01-04 18:41:21 +00:00
|
|
|
%if 0%{?suse_version} < 1550
|
2020-11-20 10:15:04 +00:00
|
|
|
%define sbindir /sbin
|
|
|
|
%else
|
|
|
|
%define sbindir %{_sbindir}
|
|
|
|
%endif
|
|
|
|
|
2015-10-01 07:15:42 +00:00
|
|
|
%define lname libecryptfs1
|
2007-01-15 23:11:12 +00:00
|
|
|
Name: ecryptfs-utils
|
2017-11-07 14:49:50 +00:00
|
|
|
Version: 111
|
2015-10-01 07:15:42 +00:00
|
|
|
Release: 0
|
2008-02-26 00:55:06 +00:00
|
|
|
Summary: Userspace Utilities for ecryptfs
|
2020-08-20 15:50:11 +00:00
|
|
|
License: GPL-2.0-only
|
2012-03-28 14:51:19 +00:00
|
|
|
Group: Productivity/Security
|
2022-05-03 14:23:48 +00:00
|
|
|
URL: https://ecryptfs.org/
|
|
|
|
Source0: https://launchpad.net/ecryptfs/trunk/%{version}/+download/ecryptfs-utils_%{version}.orig.tar.gz
|
2010-02-24 01:00:34 +00:00
|
|
|
Source1: baselibs.conf
|
2014-08-12 11:22:51 +00:00
|
|
|
Source2: ecryptfs-mount-private.png
|
2013-08-06 06:04:19 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fix for systemd and no UUID in fstab
|
2012-04-10 09:25:57 +00:00
|
|
|
Patch0: ecryptfs-setup-swap-SuSE.patch
|
2013-08-06 06:04:19 +00:00
|
|
|
# PATCH-FIX-OPENSUSE build with -fpie/-pie
|
|
|
|
Patch1: ecryptfs-utils-src-utils-Makefile.patch
|
2017-11-07 14:49:50 +00:00
|
|
|
Patch2: ecryptfs-utils-openssl11.patch
|
2020-11-20 10:15:04 +00:00
|
|
|
Patch3: ecryptfs-usrmerge.diff
|
2024-05-08 14:21:44 +00:00
|
|
|
Patch4: ecryptfs-fix-gcc14.patch
|
2015-10-01 07:15:42 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: fdupes
|
2012-03-28 14:51:19 +00:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: keyutils-devel
|
|
|
|
BuildRequires: keyutils-libs
|
|
|
|
BuildRequires: libgcrypt-devel
|
2011-10-02 15:40:25 +00:00
|
|
|
BuildRequires: libtool
|
2012-03-28 14:51:19 +00:00
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: openssl-devel
|
2012-07-04 12:25:38 +00:00
|
|
|
BuildRequires: pam-config
|
2012-03-28 14:51:19 +00:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkcs11-helper-devel
|
2015-10-01 07:15:42 +00:00
|
|
|
BuildRequires: pkg-config
|
2018-02-21 09:53:48 +00:00
|
|
|
#BuildRequires: python3-devel
|
2018-02-21 09:57:19 +00:00
|
|
|
#BuildRequires: swig
|
2012-03-28 14:51:19 +00:00
|
|
|
BuildRequires: trousers-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2012-07-04 13:54:03 +00:00
|
|
|
Requires(pre): pam-config
|
2015-10-01 07:15:42 +00:00
|
|
|
Requires(pre): permissions
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:11:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A stacked cryptographic filesystem for Linux.
|
|
|
|
|
2015-10-01 07:15:42 +00:00
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Shared library for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
A stacked cryptographic filesystem for Linux.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A stacked cryptographic filesystem for Linux.
|
|
|
|
|
2007-01-15 23:11:12 +00:00
|
|
|
%prep
|
2024-02-22 12:39:01 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:11:12 +00:00
|
|
|
|
|
|
|
%build
|
2015-10-01 07:15:42 +00:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
autoreconf -fiv
|
2007-08-03 21:03:07 +00:00
|
|
|
%configure \
|
2020-11-20 10:15:04 +00:00
|
|
|
rootsbindir=%{sbindir} \
|
2015-10-01 07:15:42 +00:00
|
|
|
--docdir=%{_defaultdocdir}/%{name} \
|
2008-04-03 23:26:24 +00:00
|
|
|
--disable-static \
|
2018-02-21 10:05:18 +00:00
|
|
|
--disable-pywrap \
|
2008-04-03 23:26:24 +00:00
|
|
|
--enable-tspi \
|
|
|
|
--enable-pkcs11-helper \
|
2021-02-12 10:18:05 +00:00
|
|
|
--with-pamdir=%{_pamdir}
|
2011-09-20 13:29:03 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-02-26 00:55:06 +00:00
|
|
|
|
|
|
|
%check
|
2015-10-01 07:15:42 +00:00
|
|
|
make %{?_smp_mflags} check
|
2007-01-15 23:11:12 +00:00
|
|
|
|
|
|
|
%install
|
2015-10-01 07:15:42 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/applications
|
|
|
|
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.png
|
|
|
|
printf "Encoding=UTF-8\n" >>%{buildroot}/%{_datadir}/%{name}/ecryptfs-mount-private.desktop
|
|
|
|
printf "Encoding=UTF-8\n" >>%{buildroot}/%{_datadir}/%{name}/ecryptfs-setup-private.desktop
|
|
|
|
printf "Icon=%{_datadir}/%{name}/ecryptfs-mount-private.png\n" >>%{buildroot}/%{_datadir}/%{name}/ecryptfs-mount-private.desktop
|
|
|
|
printf "Icon=%{_datadir}/%{name}/ecryptfs-mount-private.png\n" >>%{buildroot}/%{_datadir}/%{name}/ecryptfs-setup-private.desktop
|
|
|
|
sed -i 's|^_||' %{buildroot}/%{_datadir}/%{name}/ecryptfs-mount-private.desktop
|
|
|
|
sed -i 's|^_||' %{buildroot}/%{_datadir}/%{name}/ecryptfs-setup-private.desktop
|
|
|
|
mv %{buildroot}/%{_datadir}/%{name}/ecryptfs-setup-private.desktop %{buildroot}/%{_datadir}/applications
|
|
|
|
%suse_update_desktop_file %{buildroot}/%{_datadir}/%{name}/ecryptfs-mount-private.desktop
|
2014-08-12 11:22:51 +00:00
|
|
|
%suse_update_desktop_file -r ecryptfs-setup-private System Security
|
2011-04-18 16:04:46 +00:00
|
|
|
%find_lang %{name}
|
2015-10-07 12:22:36 +00:00
|
|
|
# replace duplicate files by symlinks
|
2015-10-01 07:15:42 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2015-10-07 12:22:36 +00:00
|
|
|
# do not ship .la files
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:11:12 +00:00
|
|
|
|
2014-08-12 11:22:51 +00:00
|
|
|
#we need ecryptfs kernel module
|
2020-08-20 15:50:11 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/modules-load.d/
|
|
|
|
echo -e "# ecryptfs module is needed before ecryptfs mount, so mount helper can \n# check for file name encryption support\necryptfs" >%{buildroot}%{_prefix}/lib/modules-load.d/ecryptfs.conf
|
2014-08-12 11:22:51 +00:00
|
|
|
|
2012-03-28 14:51:19 +00:00
|
|
|
%verifyscript
|
2020-11-20 10:15:04 +00:00
|
|
|
%verify_permissions -e %{sbindir}/mount.ecryptfs_private
|
2012-03-28 14:51:19 +00:00
|
|
|
|
|
|
|
%post
|
2020-11-20 10:15:04 +00:00
|
|
|
%set_permissions %{sbindir}/mount.ecryptfs_private
|
2015-10-01 07:15:42 +00:00
|
|
|
%{_sbindir}/pam-config -a --ecryptfs
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2007-07-27 13:07:12 +00:00
|
|
|
|
2012-07-04 11:08:36 +00:00
|
|
|
%postun
|
2013-08-16 11:55:52 +00:00
|
|
|
if [ "$1" -eq 0 ]; then
|
2015-10-01 07:15:42 +00:00
|
|
|
%{_sbindir}/pam-config -d --ecryptfs
|
2013-08-16 11:55:52 +00:00
|
|
|
fi
|
2015-10-01 07:15:42 +00:00
|
|
|
%desktop_database_postun
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-07-27 13:07:12 +00:00
|
|
|
|
2011-04-18 16:04:46 +00:00
|
|
|
%files -f %{name}.lang
|
2007-01-15 23:11:12 +00:00
|
|
|
%defattr(-, root, root)
|
2013-08-06 06:04:19 +00:00
|
|
|
%doc COPYING NEWS README THANKS doc/ecryptfs-faq.html
|
2017-03-09 19:12:18 +00:00
|
|
|
%{_docdir}/%{name}
|
2015-10-01 07:15:42 +00:00
|
|
|
%{_bindir}/*
|
2020-11-20 10:15:04 +00:00
|
|
|
%{sbindir}/mount.ecryptfs
|
|
|
|
%{sbindir}/umount.ecryptfs
|
|
|
|
%{sbindir}/umount.ecryptfs_private
|
|
|
|
%verify(not mode) %{sbindir}/mount.ecryptfs_private
|
2008-08-24 09:02:24 +00:00
|
|
|
%{_mandir}/man1/*ecryptfs*
|
2007-03-05 13:59:17 +00:00
|
|
|
%{_mandir}/man7/ecryptfs*
|
2008-02-26 00:55:06 +00:00
|
|
|
%{_mandir}/man8/*ecryptfs*
|
2007-03-06 16:36:20 +00:00
|
|
|
%{_libdir}/ecryptfs*
|
2011-04-18 16:04:46 +00:00
|
|
|
%{_datadir}/ecryptfs-utils
|
2021-02-12 10:18:05 +00:00
|
|
|
%{_pamdir}/pam_ecryptfs.so
|
2018-02-21 09:53:48 +00:00
|
|
|
#{python_sitelib}/ecryptfs-utils
|
|
|
|
#{python_sitearch}/ecryptfs-utils
|
2014-08-12 11:22:51 +00:00
|
|
|
%{_datadir}/applications/*.desktop
|
2020-08-20 15:50:11 +00:00
|
|
|
%dir %{_prefix}/lib/modules-load.d
|
|
|
|
%{_prefix}/lib/modules-load.d/*
|
2015-10-01 07:15:42 +00:00
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libecryptfs.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/ecryptfs.h
|
|
|
|
%{_libdir}/libecryptfs.so
|
|
|
|
%{_libdir}/pkgconfig/libecryptfs.pc
|
2007-01-15 23:11:12 +00:00
|
|
|
|
2007-03-05 13:59:17 +00:00
|
|
|
%changelog
|