-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtpm-luks.spec.in
67 lines (55 loc) · 1.79 KB
/
tpm-luks.spec.in
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
%define dracutlibdir %{_prefix}/lib/dracut
%define dracut_mod_name 90crypt-tpm
%if 0%{?rhel} >= 6
%define dracut_mod_name 50plymouth-tpm
%endif
Name: @PACKAGE@
Version: @VERSION@
Release: 2%{?dist}
Summary: Utility for storing a LUKS key using a TPM
Group: Security
License: GPLv2
#URL:
Source0: tpm-luks-%{version}.tar.xz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: automake autoconf libtool
#Requires: cryptsetup dracut gawk coreutils grubby tpm-tools trousers
# for now we require an upstream tpm-tools and trousers, so don't add them
# here so we can avoid --nodeps
Requires: cryptsetup dracut gawk coreutils grubby
%description
tpm-luks is a set of scripts to enable storage of a LUKS key in your TPM.
%prep
%setup -q
%build
%configure --prefix=/usr --libdir=%{_libdir}
make %{?_smp_mflags}
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT};
make install DESTDIR=$RPM_BUILD_ROOT
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT};
%files
%defattr(-,root,root,-)
%doc README TODO
%config /etc/dracut.conf.d/tpm-luks.conf
%{_bindir}/*
#%{_bindir}/getcapability
#%{_bindir}/nv_readvalue
%{_sbindir}/*
#%{_sbindir}/chain_hashes
#%{_sbindir}/gen_pcr_values
#%{_sbindir}/tpm_luks
#%{_sbindir}/tpm-luks-update-hook
%dir %{dracutlibdir}/modules.d/%{dracut_mod_name}
%{dracutlibdir}/modules.d/%{dracut_mod_name}/*
%dir /etc/yum/post-actions
/etc/yum/post-actions/tpm-luks.action
%config /etc/yum/pluginconf.d/post-transaction-actions.conf
/usr/lib/yum-plugins/post-transaction-actions.py*
%config /etc/tpm-luks.action
%changelog
* Tue Apr 09 2013 Ryan Harper <ryanh@us.ibm.com>
- Updated to build on F18
* Tue May 29 2012 Kent Yoder <key@linux.vnet.ibm.com>
- Initial drop of version 0.6