diff options
Diffstat (limited to 'libraries/libfaketime')
-rw-r--r-- | libraries/libfaketime/README | 11 | ||||
-rw-r--r-- | libraries/libfaketime/libfaketime.SlackBuild | 20 | ||||
-rw-r--r-- | libraries/libfaketime/libfaketime.info | 6 |
3 files changed, 24 insertions, 13 deletions
diff --git a/libraries/libfaketime/README b/libraries/libfaketime/README index cec958c321..75c5be3705 100644 --- a/libraries/libfaketime/README +++ b/libraries/libfaketime/README @@ -1,10 +1,11 @@ libfaketime intercepts various system calls which programs use to -retrieve the current date and time. It can then report faked dates and times -(as specified by you, the user) to these programs. This means you can modify -the system time a program sees without having to change the time system-wide. +retrieve the current date and time. It can then report faked dates and +times (as specified by you, the user) to these programs. This means +you can modify the system time a program sees without having to change +the time system-wide. -libfaketime allows you to specify both absolute dates (e.g., 01/01/2004) and -relative dates (e.g., 10 days ago). +libfaketime allows you to specify both absolute dates (e.g., +01/01/2004) and relative dates (e.g., 10 days ago). libfaketime might be used for various purposes, for example diff --git a/libraries/libfaketime/libfaketime.SlackBuild b/libraries/libfaketime/libfaketime.SlackBuild index d6aba11ab7..1b335e33aa 100644 --- a/libraries/libfaketime/libfaketime.SlackBuild +++ b/libraries/libfaketime/libfaketime.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libfaketime -# Copyright 2016-2017 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> +# Copyright 2016-2024 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=libfaketime -VERSION=${VERSION:-0.9.7} +VERSION=${VERSION:-0.9.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -91,4 +101,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/libfaketime/libfaketime.info b/libraries/libfaketime/libfaketime.info index 52144d4a38..f1b7ff542f 100644 --- a/libraries/libfaketime/libfaketime.info +++ b/libraries/libfaketime/libfaketime.info @@ -1,8 +1,8 @@ PRGNAM="libfaketime" -VERSION="0.9.7" +VERSION="0.9.10" HOMEPAGE="https://github.com/wolfcw/libfaketime" -DOWNLOAD="https://github.com/wolfcw/libfaketime/archive/v0.9.7/libfaketime-0.9.7.tar.gz" -MD5SUM="8617e2c6caf0977b3ce9a271f867302c" +DOWNLOAD="https://github.com/wolfcw/libfaketime/archive/v0.9.10/libfaketime-0.9.10.tar.gz" +MD5SUM="bbeaa43f514fc8e637e5efdac53e2671" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |