mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
Install link to /usr/local/bin
This commit is contained in:
parent
4404d25f20
commit
c9c40e9bac
4
.gitignore
vendored
4
.gitignore
vendored
@ -55,6 +55,7 @@ SPECS/
|
||||
RPM/
|
||||
SRPM/
|
||||
PLUGIN_SOURCE/
|
||||
*.tar.gz
|
||||
|
||||
# C++ Files #
|
||||
*.o
|
||||
@ -131,3 +132,6 @@ HIRS_AttestationCA/src/main/java/hirs/attestationca/configuration/provisionerTpm
|
||||
# these files are copied over by ProvisionerTPM2 CMake build
|
||||
HIRS_ProvisionerTPM2/config/logging.properties
|
||||
HIRS_ProvisionerTPM2/scripts/tpm_aca_provision
|
||||
|
||||
# tcg_rim_tool files
|
||||
tools/tcg_rim_tool/generated_swidTag.swidtag
|
||||
|
@ -7,7 +7,7 @@ pushd $SCRIPT_DIR
|
||||
name="tcg_rim_tool"
|
||||
|
||||
tar -cf $name.tar build.gradle gradle* src/ docs/ rim_fields.json keystore.jks scripts/
|
||||
gzip $name.tar
|
||||
gzip -f $name.tar
|
||||
if [ -d rpmbuild ]; then
|
||||
rm -rf rpmbuild
|
||||
fi
|
||||
|
@ -49,7 +49,7 @@ public class HashSwid {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method creates the hash based on the provided algorithm and salt
|
||||
* This method creates the hash based on the provided algorithm
|
||||
* only accessible through helper methods.
|
||||
*
|
||||
* This method assumes an input file that is small enough to read in its
|
||||
@ -57,7 +57,6 @@ public class HashSwid {
|
||||
* getHashValue() below.
|
||||
*
|
||||
* @param filepath file contents to hash
|
||||
* @param salt random value to make the hash stronger
|
||||
* @param sha the algorithm to use for the hash
|
||||
* @return
|
||||
*/
|
||||
|
@ -22,7 +22,7 @@ rm -f /opt/hirs/rimtool/%{name}*.jar
|
||||
./gradlew build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/opt/hirs/rimtool/ %{buildroot}/usr/local/bin/rim/
|
||||
mkdir -p %{buildroot}/opt/hirs/rimtool/ %{buildroot}/usr/local/bin
|
||||
cp build/libs/%{name}-%{version}.jar %{buildroot}/opt/hirs/rimtool/
|
||||
cp ./rim_fields.json %{buildroot}/opt/hirs/rimtool/
|
||||
cp ./keystore.jks %{buildroot}/opt/hirs/rimtool/
|
||||
@ -33,8 +33,10 @@ ln -sf /opt/hirs/rimtool/scripts/rimtool.sh %{buildroot}/usr/local/bin/rim
|
||||
/opt/hirs/rimtool/%{name}-%{version}.jar
|
||||
/opt/hirs/rimtool/rim_fields.json
|
||||
/opt/hirs/rimtool/keystore.jks
|
||||
/opt/hirs/rimtool/scripts/rimtool.sh
|
||||
/usr/local/bin/rim/
|
||||
/opt/hirs/rimtool/scripts
|
||||
/usr/local/bin/rim
|
||||
|
||||
%attr(755, root, root) /opt/hirs/rimtool/scripts/rimtool.sh
|
||||
|
||||
%changelog
|
||||
* Mon Jun 15 2020 chubtub
|
||||
|
Loading…
Reference in New Issue
Block a user