From 4724af237364df00f957cd6c410501bf5ca236d4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:42:02 +0100 Subject: [PATCH] rebuilt with libopenssl 1.0.2h [release 0.3.13-2mamba;Sun Jul 24 2016] --- tcsd.service | 10 ++++++++++ trousers-0.3.13-gcc-6.1.0.patch | 28 ++++++++++++++++++++++++++++ trousers.spec | 19 +++++++++++++++---- 3 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 tcsd.service create mode 100644 trousers-0.3.13-gcc-6.1.0.patch diff --git a/tcsd.service b/tcsd.service new file mode 100644 index 0000000..33f4de6 --- /dev/null +++ b/tcsd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Manager for Trusted Computing resources +After=sysinit.target + +[Service] +User=tss +ExecStart=/usr/bin/tcsd -f -c /etc/tcsd.conf + +[Install] +WantedBy=default.target diff --git a/trousers-0.3.13-gcc-6.1.0.patch b/trousers-0.3.13-gcc-6.1.0.patch new file mode 100644 index 0000000..55ea89d --- /dev/null +++ b/trousers-0.3.13-gcc-6.1.0.patch @@ -0,0 +1,28 @@ +diff --git a/src/tcs/ps/ps_utils.c b/src/tcs/ps/ps_utils.c +index 82838ab..1cbc1ce 100644 +--- a/src/tcs/ps/ps_utils.c ++++ b/src/tcs/ps/ps_utils.c +@@ -42,11 +42,7 @@ + struct key_disk_cache *key_disk_cache_head = NULL; + + +-#ifdef SOLARIS + TSS_RESULT +-#else +-inline TSS_RESULT +-#endif + read_data(int fd, void *data, UINT32 size) + { + int rc; +@@ -64,11 +60,7 @@ read_data(int fd, void *data, UINT32 size) + } + + +-#ifdef SOLARIS + TSS_RESULT +-#else +-inline TSS_RESULT +-#endif + write_data(int fd, void *data, UINT32 size) + { + int rc; diff --git a/trousers.spec b/trousers.spec index 7b1140c..76b5430 100644 --- a/trousers.spec +++ b/trousers.spec @@ -1,7 +1,7 @@ %define majver %(echo %version | cut -d. -f1-3) Name: trousers Version: 0.3.13 -Release: 1mamba +Release: 2mamba Summary: An open-source TCG Software Stack implementation Group: System/Libraries Vendor: openmamba @@ -9,10 +9,14 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://sourceforge.net/projects/trousers/ Source: http://downloads.sourceforge.net/project/trousers/trousers/%{majver}/trousers-%{version}.tar.gz +Source1: tcsd.service +Patch0: trousers-0.3.13-gcc-6.1.0.patch License: Common Public Attribution License 1.0 ## AUTOBUILDREQ-BEGIN -## note: run 'autospec -u -a6 libtspi' to get the list of build requirements. +BuildRequires: glibc-devel +BuildRequires: libopenssl-devel ## AUTOBUILDREQ-END +BuildRequires: libopenssl-devel >= 1.0.2h BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -30,6 +34,7 @@ This package contains libraries and header files for developing applications tha %prep %setup -q +%patch0 -p1 %build %configure @@ -39,6 +44,8 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/tcsd.service + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -50,8 +57,9 @@ This package contains libraries and header files for developing applications tha %config(noreplace) %{_sysconfdir}/tcsd.conf %{_sbindir}/tcsd %{_libdir}/libtspi.so.* -%{_mandir}/man5/tcsd.conf.5.gz -%{_mandir}/man8/tcsd.8.gz +%{_unitdir}/tcsd.service +%{_mandir}/man5/tcsd.conf.5* +%{_mandir}/man8/tcsd.8* %doc AUTHORS LICENSE %files devel @@ -67,6 +75,9 @@ This package contains libraries and header files for developing applications tha %doc ChangeLog README README.selinux TODO %changelog +* Sun Jul 24 2016 Silvan Calarco 0.3.13-2mamba +- rebuilt with libopenssl 1.0.2h + * Sat May 24 2014 Automatic Build System 0.3.13-1mamba - automatic update by autodist