summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-18 12:18:26 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-18 14:18:05 +0900
commitad1287674b3d1beb2c160116aca626d9a56dd578 (patch)
tree51a5e1602d07f16f88246e6b296a6506b33bf57f /packaging
parentd76b866444462dbb7a0ab10c0f92b9452d989682 (diff)
downloadecryptfs-utils-tizen.tar.gz
ecryptfs-utils-tizen.tar.bz2
ecryptfs-utils-tizen.zip
Change-Id: Id020cacc103b775c51c0aa3bfa24f619c4425903 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/ecryptfs-utils.manifest5
-rw-r--r--packaging/ecryptfs-utils.spec119
2 files changed, 124 insertions, 0 deletions
diff --git a/packaging/ecryptfs-utils.manifest b/packaging/ecryptfs-utils.manifest
new file mode 100644
index 0000000..75b0fa5
--- /dev/null
+++ b/packaging/ecryptfs-utils.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/ecryptfs-utils.spec b/packaging/ecryptfs-utils.spec
new file mode 100644
index 0000000..dbcabcb
--- /dev/null
+++ b/packaging/ecryptfs-utils.spec
@@ -0,0 +1,119 @@
+Name: ecryptfs-utils
+Summary: Userspace Utilities for ecryptfs
+Version: 111
+Release: 0
+Group: System/Libraries
+License: GPL-2.0+
+Source: %{name}_%{version}.orig.tar.gz
+Source1: %{name}.manifest
+URL: http://ecryptfs.org
+
+Requires: keyutils
+Requires: cryptsetup
+Requires: libecryptfs = %{version}-%{release}
+
+BuildRequires: intltool
+BuildRequires: python-devel
+BuildRequires: keyutils-devel
+BuildRequires: nss-devel
+BuildRequires: pam-devel
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: fdupes
+
+%description
+A stacked cryptographic filesystem for Linux.
+eCryptfs user space utilities
+
+
+%package -n libecryptfs
+Summary: ECryptfs library
+Group: System/Libraries
+
+%description -n libecryptfs
+eCryptfs runtime library.
+
+
+%package -n libecryptfs-devel
+Summary: Devel files for libecryptfs
+Group: Development/Libraries
+Requires: libecryptfs = %{version}-%{release}
+Requires: keyutils-devel
+
+%description -n libecryptfs-devel
+Development files for eCryptfs library.
+
+
+%package -n libecryptfs-python
+Summary: Python bindings for libecryptfs
+Group: Development/Libraries
+Requires: libecryptfs = %{version}-%{release}
+
+%description -n libecryptfs-python
+Python bindings for eCryptfs library.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1} .
+
+
+%build
+export CFLAGS+=" -fPIC"
+export LDFLAGS+=" -pie"
+%define nss_library_list %(pkg-config --libs nss | cut -d " " -f -4)
+%reconfigure --disable-openssl NSS_LIBS="%{nss_library_list}"
+%__make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%find_lang %{name}
+
+%fdupes %{buildroot}
+
+
+%post -n libecryptfs -p /sbin/ldconfig
+
+%postun -n libecryptfs -p /sbin/ldconfig
+
+
+%lang_package -f %{name}
+
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%doc AUTHORS NEWS
+%{_bindir}/ecryptfs*
+/sbin/mount.ecryptfs*
+/sbin/umount.ecryptfs*
+/%{_lib}/security/pam_ecryptfs.so
+%{_mandir}/man1/*ecryptfs*
+%{_mandir}/man7/*ecryptfs*
+%{_mandir}/man8/*ecryptfs*
+%{_datadir}/doc/%{name}/*
+%{_datadir}/ecryptfs-utils/*
+
+
+%files -n libecryptfs
+%manifest %{name}.manifest
+%license COPYING
+%{_libdir}/libecryptfs.so.*
+%{_libdir}/ecryptfs/*
+
+
+%files -n libecryptfs-devel
+%manifest %{name}.manifest
+%license COPYING
+%{_includedir}/ecryptfs.h
+%{_libdir}/libecryptfs.so
+%{_libdir}/pkgconfig/libecryptfs.pc
+
+
+%files -n libecryptfs-python
+%manifest %{name}.manifest
+%license COPYING
+%{python_sitelib}/ecryptfs-utils/*
+%{python_sitearch}/ecryptfs-utils/*