From ad2a14ec4f3787f41d12680383ad9a9955eb0476 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 05:57:27 -0400 Subject: [PATCH] import luksmeta-9-2.el8 --- .gitignore | 1 + .luksmeta.metadata | 1 + SOURCES/luksmeta-9-tests.patch | 26 ++++++++ SPECS/luksmeta.spec | 112 +++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 .gitignore create mode 100644 .luksmeta.metadata create mode 100644 SOURCES/luksmeta-9-tests.patch create mode 100644 SPECS/luksmeta.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff7c8e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/luksmeta-9.tar.bz2 diff --git a/.luksmeta.metadata b/.luksmeta.metadata new file mode 100644 index 0000000..0b9a585 --- /dev/null +++ b/.luksmeta.metadata @@ -0,0 +1 @@ +ea7cf9cee7ff08b7fcdd1a4a7d659506ce8c012a SOURCES/luksmeta-9.tar.bz2 diff --git a/SOURCES/luksmeta-9-tests.patch b/SOURCES/luksmeta-9-tests.patch new file mode 100644 index 0000000..d64119f --- /dev/null +++ b/SOURCES/luksmeta-9-tests.patch @@ -0,0 +1,26 @@ +From 052c5d53d56f52cba95a569b3f2648b7cd647f1e Mon Sep 17 00:00:00 2001 +From: Nathaniel McCallum +Date: Thu, 9 Aug 2018 15:07:17 -0400 +Subject: [PATCH] Specify LUKSv1 during luksFormat + +This fixes tests on builds of cryptsetup which default to LUKSv2. +--- + test-luksmeta | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test-luksmeta b/test-luksmeta +index fd17ead..f1e8b2e 100755 +--- a/test-luksmeta ++++ b/test-luksmeta +@@ -11,7 +11,7 @@ function onexit() { + trap 'onexit' EXIT + + truncate -s 4M $tmp +-echo -n foo | cryptsetup luksFormat $tmp - ++echo -n foo | cryptsetup luksFormat --type luks1 $tmp - + + ! ./luksmeta test -d $tmp + +-- +2.17.1 + diff --git a/SPECS/luksmeta.spec b/SPECS/luksmeta.spec new file mode 100644 index 0000000..e8dea73 --- /dev/null +++ b/SPECS/luksmeta.spec @@ -0,0 +1,112 @@ +Name: luksmeta +Version: 9 +Release: 2%{?dist} +Summary: Utility for storing small metadata in the LUKSv1 header + +License: LGPLv2+ +URL: https://github.com/latchset/%{name} +Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2 +Patch0: luksmeta-9-tests.patch + +BuildRequires: gcc +BuildRequires: asciidoc +BuildRequires: pkgconfig +BuildRequires: cryptsetup-devel +Requires: lib%{name}%{?_isa} = %{version}-%{release} + +%description +LUKSMeta is a command line utility for storing small portions of metadata in +the LUKSv1 header for use before unlocking the volume. + +%package -n lib%{name} +Summary: Library for storing small metadata in the LUKSv1 header + +%description -n lib%{name} +LUKSMeta is a C library for storing small portions of metadata in the LUKSv1 +header for use before unlocking the volume. + +%package -n lib%{name}-devel +Summary: Development files for libluksmeta +Requires: lib%{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description -n lib%{name}-devel +This package contains development files for the LUKSMeta library. + +%prep +%autosetup + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +%make_install +rm -rf %{buildroot}/%{_libdir}/libluksmeta.la + +%check +make %{?_smp_mflags} check + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%{_bindir}/luksmeta +%{_mandir}/man8/luksmeta.8* + +%files -n lib%{name} +%license COPYING +%{_libdir}/libluksmeta.so.* + +%files -n lib%{name}-devel +%{_includedir}/luksmeta.h +%{_libdir}/libluksmeta.so +%{_libdir}/pkgconfig/luksmeta.pc + +%changelog +* Thu Aug 09 2018 Nathaniel McCallum - 9-2 +- Add (upstream) patch to fix tests on LUKSv2-default cryptsetup + +* Thu Aug 09 2018 Nathaniel McCallum - 9-1 +- New upstream release +- Add asciidoc build require to generate man pages + +* Fri Jul 13 2018 Fedora Release Engineering - 8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Nov 08 2017 Zbigniew Jędrzejewski-Szmek - 8-2 +- Rebuild for cryptsetup-2.0.0 + +* Fri Sep 29 2017 Nathaniel McCallum - 8-1 +- New upstream release + +* Thu Aug 03 2017 Fedora Release Engineering - 7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jun 24 2017 Nathaniel McCallum - 7-1 +- New upstream release + +* Wed Jun 14 2017 Nathaniel McCallum - 6-1 +- New upstream release + +* Thu Jun 01 2017 Nathaniel McCallum - 5-1 +- New upstream release + +* Tue May 30 2017 Nathaniel McCallum - 4-1 +- New upstream release + +* Fri Feb 10 2017 Fedora Release Engineering - 3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Oct 25 2016 Nathaniel McCallum - 3-1 +- New upstream release + +* Thu Aug 25 2016 Nathaniel McCallum - 2-1 +- First release