summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorСимон Болоканов <sbolokanov@abv.bg>2015-03-04 22:08:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-07 07:05:14 +0700
commit5889454814b9301258e671727b4f98d5594f17f1 (patch)
tree8c69f01fa8ec0991e97c36d65d3cfd00295c773e /system
parent8498815ade484727c10c046f3cdfe330dc85cfc9 (diff)
downloadslackbuilds-5889454814b9301258e671727b4f98d5594f17f1.tar.gz
system/rhash: Added static option.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-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 e7cd41c96a..68921054b3 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 c4adccad81..eeeb01b5d0 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