perl/perl-digest-hmac: Updated for version 1.03.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
LukenShiro 2011-12-14 12:53:26 -06:00 committed by Niels Horn
parent b92eacf087
commit 4a2261b0a1
4 changed files with 23 additions and 31 deletions

View file

@ -7,5 +7,4 @@ The Digest::HMAC module follow the common Digest:: interface, but the
constructor takes the secret key and the name of some other simple Digest:: constructor takes the secret key and the name of some other simple Digest::
module as argument. module as argument.
It depends on: perl-digest-sha1 (available from Slackbuilds.org) This requires perl-digest-sha1.

View file

@ -2,7 +2,7 @@
# Slackware build script for perl-digest-hmac # Slackware build script for perl-digest-hmac
# Copyright 2008-2010 LukenShiro <lukenshiro@ngi.it> # Copyright 2008-2011 LukenShiro, Italy
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,8 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-digest-hmac PRGNAM=perl-digest-hmac
SRC_PRGNAM=Digest-HMAC VERSION=${VERSION:-1.03}
VERSION=${VERSION:-1.02}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -43,6 +42,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
SRCNAM=Digest-HMAC
DOCFILES="Changes README" DOCFILES="Changes README"
set -e # Exit on most errors set -e # Exit on most errors
@ -50,9 +50,9 @@ set -e # Exit on most errors
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRC_PRGNAM-$VERSION.tar.gz tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRC_PRGNAM-$VERSION cd $SRCNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -60,29 +60,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
echo "y" | perl Makefile.PL INSTALLDIRS=vendor echo "y" | perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
make make
make test
make install DESTDIR=$PKG make install DESTDIR=$PKG
#Move man-pages to appropriate place
mv $PKG/usr/share/man $PKG/usr/
# Remove perlocal.pod, .packlist and .bs from $PKG # Remove perlocal.pod, .packlist and .bs from $PKG
( for i in perllocal.pod .packlist *.bs; do find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
find $PKG -name "$i" -exec rm -rf {} \;
done
)
# Remove empty directories # Remove empty directories
find $PKG -depth -type d -empty -exec rm -rf {} \; find $PKG -depth -type d -empty -exec rm -rf {} \;
# compress man pages find $PKG/usr/man -type f -exec gzip -9 {} \;
( cd $PKG/usr/man for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,10 +1,10 @@
PRGNAM="perl-digest-hmac" PRGNAM="perl-digest-hmac"
VERSION="1.02" VERSION="1.03"
HOMEPAGE="http://search.cpan.org/dist/Digest-HMAC/" HOMEPAGE="http://search.cpan.org/dist/Digest-HMAC/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-1.02.tar.gz" DOWNLOAD="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-1.03.tar.gz"
MD5SUM="64c4b247d83cd64ec32aa22bf58a709b" MD5SUM="e6a5d6f552da16eacb5157ea4369ff9d"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="LukenShiro" MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it" EMAIL="lukenshiro@ngi.it"
APPROVED="dsomero" APPROVED="rworkman"

View file

@ -12,8 +12,8 @@ perl-digest-hmac: Digest::HMAC is used for message integrity checks between two
perl-digest-hmac: parties that share a secret key, and works in combination perl-digest-hmac: parties that share a secret key, and works in combination
perl-digest-hmac: with some other Digest algorithm, usually MD5 or SHA-1. perl-digest-hmac: with some other Digest algorithm, usually MD5 or SHA-1.
perl-digest-hmac: The HMAC mechanism is described in RFC 2104. perl-digest-hmac: The HMAC mechanism is described in RFC 2104.
perl-digest-hmac: perl-digest-hmac:
perl-digest-hmac:
perl-digest-hmac:
perl-digest-hmac: Homepage: http://search.cpan.org/dist/Digest-HMAC perl-digest-hmac: Homepage: http://search.cpan.org/dist/Digest-HMAC
perl-digest-hmac: perl-digest-hmac:
perl-digest-hmac:
perl-digest-hmac: