aboutsummaryrefslogtreecommitdiff
path: root/system/rhash
diff options
context:
space:
mode:
Diffstat (limited to 'system/rhash')
-rw-r--r--system/rhash/README4
-rw-r--r--system/rhash/rhash.SlackBuild17
2 files changed, 16 insertions, 5 deletions
diff --git a/system/rhash/README b/system/rhash/README
index e7cd41c96a3b9..68921054b33cf 100644
--- a/system/rhash/README
+++ b/system/rhash/README
@@ -1,4 +1,6 @@
RHash (Recursive Hasher) is a console utility for computing and verifying hash sums of files.
Supports lots of algorithms.
-Note: If you do not want to build with OpenSSL support pass OPENSSL=no to the script.
+Notes:
+If you want to build with NO OpenSSL support, pass OPENSSL=no to the script.
+If you need static libraries, pass STATICLIB=yes to the script.
diff --git a/system/rhash/rhash.SlackBuild b/system/rhash/rhash.SlackBuild
index c4adccad81786..eeeb01b5d0cb3 100644
--- a/system/rhash/rhash.SlackBuild
+++ b/system/rhash/rhash.SlackBuild
@@ -25,21 +25,30 @@
# Changelog:
# v1.3.3 - Re-done the sript and send it to SBo
-# 27.02.2015 - no headers!? - thanks to Marcel Saegebarth for spotting this
+# 27.2.2015 - no headers!? - thanks to Marcel Saegebarth for spotting this
+# 3.3.2015 - added STATICLIB per Marcel Saegebarth request
+# П.П. Честит ден на Освобождението, българи!
PRGNAM=rhash
VERSION=${VERSION:-1.3.3}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
# Shall we compile with OpenSSL support?
OPENSSL=${OPENSSL:-yes}
+# Shall we install static libraries?
+STATICLIB=${STATICLIB:-no}
+
if [ "$OPENSSL" = "yes" ]; then
OPTCFLAGS="-DOPENSSL_RUNTIME -rdynamic"
OPTLDFLAGS="-ldl"
fi
+if [ "$STATICLIB" = "yes" ]; then
+ INSTALLSTATICLIB="install-lib-static"
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -97,7 +106,7 @@ make ADDCFLAGS="${SLKCFLAGS} -DUSE_GETTEXT ${OPTCFLAGS}" \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DESTDIR=$PKG \
- install-lib-shared
+ install-lib-shared $INSTALLSTATICLIB
# Install headers
make -C librhash \
@@ -108,7 +117,7 @@ make -C librhash \
# Install locales
make PREFIX=/usr \
DESTDIR=$PKG \
- compile-gmo install-gmo
+ install-gmo
# Don't clobber the default config
mv -v $PKG/etc/rhashrc $PKG/etc/rhashrc.new