aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-Net-Packet/perl-Net-Packet.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Net-Packet/perl-Net-Packet.SlackBuild')
-rw-r--r--perl/perl-Net-Packet/perl-Net-Packet.SlackBuild21
1 files changed, 10 insertions, 11 deletions
diff --git a/perl/perl-Net-Packet/perl-Net-Packet.SlackBuild b/perl/perl-Net-Packet/perl-Net-Packet.SlackBuild
index d5f50269262c..a7f5ffa3b5b3 100644
--- a/perl/perl-Net-Packet/perl-Net-Packet.SlackBuild
+++ b/perl/perl-Net-Packet/perl-Net-Packet.SlackBuild
@@ -24,18 +24,16 @@
PRGNAM=perl-Net-Packet
VERSION=${VERSION:-3.27}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRC_PRGNAM=Net-Packet
DOCS="LICENSE LICENSE.Artistic README"
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -68,20 +66,21 @@ rm -rf $SRC_PRGNAM-$VERSION
tar xvf $CWD/$SRC_PRGNAM-$VERSION.tar.gz
cd $SRC_PRGNAM-$VERSION
chown -R root:root .
-find . \
+find -L . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-perl Makefile.PL INSTALLDIRS=perl
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p1 < $CWD/pod.patch
+PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
+ PREFIX=/usr \
+ INSTALLDIRS=vendor \
+ INSTALLVENDORMAN3DIR=/usr/man/man3
make
make test
make install DESTDIR=$PKG
-# Move man pages
-mv $PKG/usr/share/man $PKG/usr/
-
# Compress man pages
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;