From 5889454814b9301258e671727b4f98d5594f17f1 Mon Sep 17 00:00:00 2001 From: Симон Болоканов Date: Wed, 4 Mar 2015 22:08:35 +0700 Subject: system/rhash: Added static option. Signed-off-by: Willy Sudiarto Raharjo --- system/rhash/README | 4 +++- system/rhash/rhash.SlackBuild | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'system') 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 -- cgit v1.2.3-65-gdbad