Change-Id: Icf476b4215f928bfe48791f973ea8d0147db15dd
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2164
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,35 @@ |
0 |
+Summary: Trusted pre-kernel module and tools. |
|
1 |
+Name: tboot |
|
2 |
+Version: 1.9.5 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: BSD |
|
5 |
+URL: https://sourceforge.net/projects/tboot/ |
|
6 |
+Group: System Environment/Security |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: %{name}-%{version}.tar.gz |
|
10 |
+%define sha1 tboot=fb5fe86278c003efa94ba5740d613cbff28de6e8 |
|
11 |
+BuildRequires: trousers-devel |
|
12 |
+Requires: libtspi |
|
13 |
+%description |
|
14 |
+Trusted Boot (tboot) is an open source, pre- kernel/VMM module that uses |
|
15 |
+Intel(R) Trusted Execution Technology (Intel(R) TXT) to perform a measured |
|
16 |
+and verified launch of an OS kernel/VMM. |
|
17 |
+ |
|
18 |
+%prep |
|
19 |
+%setup -q |
|
20 |
+%build |
|
21 |
+make %{?_smp_mflags} |
|
22 |
+ |
|
23 |
+%install |
|
24 |
+make DESTDIR=%{buildroot} install |
|
25 |
+ |
|
26 |
+%files |
|
27 |
+%defattr(-,root,root) |
|
28 |
+/boot/* |
|
29 |
+/usr/* |
|
30 |
+%exclude %{_sysconfdir} |
|
31 |
+ |
|
32 |
+%changelog |
|
33 |
+* Thu Mar 2 2017 Alexey Makhalov <amakhalov@vmware.com> 1.9.5-1 |
|
34 |
+- Initial build. First version |
0 | 35 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,92 @@ |
0 |
+Summary: TCG Software Stack (TSS) |
|
1 |
+Name: trousers |
|
2 |
+Version: 0.3.14 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: BSD |
|
5 |
+URL: https://sourceforge.net/projects/trousers/ |
|
6 |
+Group: System Environment/Security |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: %{name}-%{version}.tar.gz |
|
10 |
+%define sha1 trousers=9ca2cc9e1179465f6c5d9055e2b855e25031b85a |
|
11 |
+Requires: libtspi = %{version}-%{release} |
|
12 |
+%description |
|
13 |
+Trousers is an open-source TCG Software Stack (TSS), released under |
|
14 |
+the BSD License. Trousers aims to be compliant with the |
|
15 |
+1.1b and 1.2 TSS specifications available from the Trusted Computing |
|
16 |
+ |
|
17 |
+%package devel |
|
18 |
+Summary: The libraries and header files needed for TSS development. |
|
19 |
+Requires: libtspi = %{version}-%{release} |
|
20 |
+%description devel |
|
21 |
+The libraries and header files needed for TSS development. |
|
22 |
+ |
|
23 |
+%package -n libtspi |
|
24 |
+Summary: TSPI library |
|
25 |
+%description -n libtspi |
|
26 |
+TSPI library |
|
27 |
+ |
|
28 |
+%prep |
|
29 |
+%setup -q -c %{name}-%{version} |
|
30 |
+%build |
|
31 |
+./configure \ |
|
32 |
+ --prefix=%{_prefix} \ |
|
33 |
+ --disable-static |
|
34 |
+ |
|
35 |
+make %{?_smp_mflags} |
|
36 |
+ |
|
37 |
+%install |
|
38 |
+make DESTDIR=%{buildroot} install |
|
39 |
+ |
|
40 |
+%post |
|
41 |
+mkdir -p /var/lib/tpm |
|
42 |
+if [ $1 -eq 1 ]; then |
|
43 |
+ # this is initial installation |
|
44 |
+ if ! getent group tss >/dev/null; then |
|
45 |
+ groupadd tss |
|
46 |
+ fi |
|
47 |
+ if ! getent passwd tss >/dev/null; then |
|
48 |
+ useradd -c "TCG Software Stack" -d /var/lib/tpm -g tss \ |
|
49 |
+ -s /bin/false tss |
|
50 |
+ fi |
|
51 |
+fi |
|
52 |
+ |
|
53 |
+%postun |
|
54 |
+if [ $1 -eq 0 ]; then |
|
55 |
+ # this is delete operation |
|
56 |
+ if getent passwd tss >/dev/null; then |
|
57 |
+ userdel tss |
|
58 |
+ fi |
|
59 |
+ if getent group tss >/dev/null; then |
|
60 |
+ groupdel tss |
|
61 |
+ fi |
|
62 |
+fi |
|
63 |
+ |
|
64 |
+%post -n libtspi -p /sbin/ldconfig |
|
65 |
+%postun -n libtspi -p /sbin/ldconfig |
|
66 |
+ |
|
67 |
+%files |
|
68 |
+%defattr(-,root,root) |
|
69 |
+%{_sysconfdir}/* |
|
70 |
+%{_sbindir}/* |
|
71 |
+%{_mandir}/man5 |
|
72 |
+%{_mandir}/man8 |
|
73 |
+%exclude /var |
|
74 |
+ |
|
75 |
+%files devel |
|
76 |
+%defattr(-,root,root) |
|
77 |
+%{_includedir}/* |
|
78 |
+%{_libdir}/libtspi.la |
|
79 |
+%{_libdir}/libtspi.so |
|
80 |
+%{_libdir}/libtspi.so.1 |
|
81 |
+%{_mandir}/man3 |
|
82 |
+ |
|
83 |
+%files -n libtspi |
|
84 |
+%defattr(-,root,root) |
|
85 |
+%{_libdir}/libtspi.so.1.2.0 |
|
86 |
+%exclude %{_libdir}/debug |
|
87 |
+%exclude %{_libdir}/libtddl.a |
|
88 |
+ |
|
89 |
+%changelog |
|
90 |
+* Thu Mar 2 2017 Alexey Makhalov <amakhalov@vmware.com> 0.3.14-1 |
|
91 |
+- Initial build. First version |