perl/perl-SNMP-Info: Updated for version 3.95.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Thibaut Notteboom 2023-11-29 06:13:07 +09:00 committed by Willy Sudiarto Raharjo
parent 8423adb70e
commit bc63e99fd8
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 22 additions and 21 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for perl-SNMP-Info
# Copyright 2013, Thibaut Notteboom, Paris, FRANCE
# Copyright 2013-2023, Thibaut Notteboom, Paris, FRANCE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=perl-SNMP-Info
VERSION=${VERSION:-3.08}
VERSION=${VERSION:-3.95}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -61,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@ -76,18 +76,19 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
make test
make install DESTDIR=$PKG
perl Build.PL \
--installdirs vendor \
--config installvendorman1dir=/usr/man/man1 \
--config installvendorman3dir=/usr/man/man3
./Build
./Build test
./Build install \
--destdir $PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@ -98,7 +99,7 @@ find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYRIGHT ChangeLog DEVELOP MANIFEST README \
Changes LICENSE MANIFEST README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="perl-SNMP-Info"
VERSION="3.08"
VERSION="3.95"
HOMEPAGE="https://metacpan.org/release/SNMP-Info"
DOWNLOAD="http://cpan.metacpan.org/authors/id/O/OL/OLIVER/SNMP-Info-3.08.tar.gz"
MD5SUM="6be9ea8355abd97287363da2cdb72263"
DOWNLOAD="http://cpan.metacpan.org/authors/id/O/OL/OLIVER/SNMP-Info-3.95.tar.gz"
MD5SUM="54b035d045fa0990fd84bd37d660470c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="perl-Module-Build perl-NetAddr-IP perl-Regexp-Common"
MAINTAINER="Thibaut Notteboom"
EMAIL="tib@tibux.org"
EMAIL="thibaut.notteboom@gmail.com"