This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
forked from shpedoikal/tpm-luks
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtpm-luks.spec.in
61 lines (49 loc) · 1.63 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
%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: 9%{?dist}
Summary: Utility for storing a LUKS key using a TPM
Group: Security
License: GPLv2
#URL:
Source0: tpm-luks-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: automake autoconf libtool openssl-devel
#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
autoreconf -ivf
%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
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
ln -s %{_sbindir}/tpm-luks-svc $RPM_BUILD_ROOT/etc/init.d/tpm-luks-svc
%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}/*
%{_sbindir}/*
%dir %{dracutlibdir}/modules.d/%{dracut_mod_name}
%{dracutlibdir}/modules.d/%{dracut_mod_name}/*
%config(noreplace) /etc/tpm-luks.conf
/etc/init.d/tpm-luks-svc
%changelog
* Tue Apr 09 2013 Ryan Harper <[email protected]>
- Updated to build on F18
* Tue May 29 2012 Kent Yoder <[email protected]>
- Initial drop of version 0.6