diff options
author | Willy Sudiarto Raharjo <willysr@slackware-id.org> | 2013-11-07 21:48:18 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-09 01:34:46 -0600 |
commit | 108ccc0af3a84144c4b12569653b70665509c3fc (patch) | |
tree | adcbd2eff8a240cfeddb36724cdf2ca2145c63ea /perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild | |
parent | 937b948c0c8dc69f5884e9654124e05c6e50cb18 (diff) |
perl/perl-Net-Pcap: Updated for version 0.17.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild')
-rw-r--r-- | perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild b/perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild index 6ceafc769563c..816adbd2e8f49 100644 --- a/perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild +++ b/perl/perl-Net-Pcap/perl-Net-Pcap.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-Net-Pcap -VERSION=${VERSION:-0.16} +VERSION=${VERSION:-0.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -66,20 +66,24 @@ 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 {} \; + \( -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 INSTALLDIRS=perl +patch -p1 < $CWD/makefile.patch +patch -p1 < $CWD/listdatalinks.patch + +PERL_MM_USE_DEFAULT=1 perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 make -# some of the tests are broken, since they expect an oldier libpcap -#make test +make test make install DESTDIR=$PKG -# Move man pages -mv $PKG/usr/share/man $PKG/usr/ +mv $PKG/usr/share/man/man1 $PKG/usr/man/ 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 |