perl/perl-NetPacket: Updated for version 1.3.1.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Marco Bonetti 2012-02-19 17:25:17 -02:00 committed by Niels Horn
parent f9299aff70
commit 2ae59690fb
3 changed files with 18 additions and 28 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for perl-NetPacket # Slackware build script for perl-NetPacket
# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it> # Copyright 2009-2012 Marco Bonetti <sid77@slackware.it>
# 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,19 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-NetPacket PRGNAM=perl-NetPacket
VERSION=${VERSION:-0.41.1} VERSION=${VERSION:-1.3.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
SRC_PRGNAM=NetPacket SRC_PRGNAM=NetPacket
DOCS="README" DOCS="README"
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -74,28 +72,20 @@ 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 {} \;
perl Makefile.PL INSTALLDIRS=perl perl Build.PL
make ./Build
make test ./Build test
make install DESTDIR=$PKG ./Build install install_base=$PKG/usr
# Move man pages # sigh...
mv $PKG/usr/share/man $PKG/usr/ if [ ! -z "${LIBDIRSUFFIX}" ]; then
mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
fi
# 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
)
# Remove perllocal.pod and other special files that don't need to be installed find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
( cd $PKG
# Remove 'special' files
find . -name perllocal.pod \
-o -name ".packlist" \
-o -name "*.bs" \
| xargs rm -f
)
# Remove empty directories # Remove empty directories
find $PKG -depth -type d -empty -delete find $PKG -depth -type d -empty -delete

View file

@ -1,10 +1,10 @@
PRGNAM="perl-NetPacket" PRGNAM="perl-NetPacket"
VERSION="0.41.1" VERSION="1.3.1"
HOMEPAGE="http://search.cpan.org/dist/NetPacket/" HOMEPAGE="http://search.cpan.org/dist/NetPacket/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-0.41.1.tar.gz" DOWNLOAD="http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/NetPacket-1.3.1.tar.gz"
MD5SUM="77c1482927c6892b9571404485ffe591" MD5SUM="c69c8b06a0c7655e4dbdc418c4c71708"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Marco Bonetti" MAINTAINER="Marco Bonetti"
EMAIL="sid77@slackware.it" EMAIL="sid77@slackware.it"
APPROVED="rworkman" APPROVED="Niels Horn"

View file

@ -5,7 +5,7 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler-------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
perl-NetPacket: perl-NetPacket (modules to assemble/disassemble network packets) perl-NetPacket: perl-NetPacket (modules to assemble/disassemble network packets)
perl-NetPacket: perl-NetPacket:
perl-NetPacket: NetPacket provides a base class for a cluster of modules related to perl-NetPacket: NetPacket provides a base class for a cluster of modules related to