summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2020-12-30 07:03:27 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-02 10:48:37 +0700
commit81abf6d266e9010aa10d9535c73ef0a59ef4de73 (patch)
tree87e551b8bbb9de4da68c08185ce7520456566429
parent8bffd3262cdce8b5793bde4dbddc3d76ccf24d03 (diff)
downloadslackbuilds-81abf6d266e9010aa10d9535c73ef0a59ef4de73.tar.gz
system/tpm: Update script.
Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/tpm/README17
-rw-r--r--system/tpm/tpm.SlackBuild7
2 files changed, 10 insertions, 14 deletions
diff --git a/system/tpm/README b/system/tpm/README
index c306fc218f..0cdc921316 100644
--- a/system/tpm/README
+++ b/system/tpm/README
@@ -1,10 +1,11 @@
tpm is a tiny shell script which is heavily inspired and largely
-compatible with pass. Just like pass it uses gpg2 to securely store your
-passwords, the major difference between pass and tpm is that the latter is
-a lot more minimal. Furthermore, tpm is written entirely in POSIX shell.
+compatible with pass. Just like pass it uses gpg2 to securely store
+your passwords, the major difference between pass and tpm is that the
+latter is a lot more minimal. Furthermore, tpm is written entirely
+in POSIX shell.
-Invoking tpm consists of specifying a command either insert or show and
-supplying one entry as a target. If insert is specified as a command,
-tpm will create a new entry and prompt for the corresponding password. If
-you specify show as a command, tpm will write the password for the given
-entry to standard output.
+Invoking tpm consists of specifying a command either insert or show
+and supplying one entry as a target. If insert is specified as a
+command, tpm will create a new entry and prompt for the corresponding
+password. If you specify show as a command, tpm will write the password
+for the given entry to standard output.
diff --git a/system/tpm/tpm.SlackBuild b/system/tpm/tpm.SlackBuild
index 2c985eb7d4..d6cd6a2979 100644
--- a/system/tpm/tpm.SlackBuild
+++ b/system/tpm/tpm.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=tpm
VERSION=${VERSION:-1.3.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -49,16 +49,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make
-
make install \
PREFIX=/usr \
MANDIR=/usr/man \
DESTDIR=$PKG
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" |
- grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done