diff options
-rw-r--r-- | libraries/perl-net-dns/README | 3 | ||||
-rw-r--r-- | libraries/perl-net-dns/perl-net-dns.SlackBuild | 32 | ||||
-rw-r--r-- | libraries/perl-net-dns/perl-net-dns.info | 8 | ||||
-rw-r--r-- | libraries/perl-net-dns/slack-desc | 13 |
4 files changed, 26 insertions, 30 deletions
diff --git a/libraries/perl-net-dns/README b/libraries/perl-net-dns/README index 1c5090b2fd..f78cac4a9f 100644 --- a/libraries/perl-net-dns/README +++ b/libraries/perl-net-dns/README @@ -4,5 +4,4 @@ Net::DNS is a DNS resolver implemented in Perl. It allows the programmer to perform nearly any type of DNS query from a Perl script -Requires perl-net-ip and perl-digest-hmac, both of which are -available on SlackBuilds.org. +This requires perl-net-ip and perl-digest-hmac. diff --git a/libraries/perl-net-dns/perl-net-dns.SlackBuild b/libraries/perl-net-dns/perl-net-dns.SlackBuild index e881670568..7a73120bff 100644 --- a/libraries/perl-net-dns/perl-net-dns.SlackBuild +++ b/libraries/perl-net-dns/perl-net-dns.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perl-net-dns -# Copyright 2008-2009 LukenShiro <lukenshiro@ngi.it> +# Copyright 2008-2010 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-net-dns -VERSION=${VERSION:-0.65} +VERSION=${VERSION:-0.66} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,27 +63,26 @@ find . \ echo "y" | CFLAGS="$SLKCFLAGS" perl Makefile.PL INSTALLDIRS=vendor make - 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 -( for i in perllocal.pod .packlist *.bs; do - find $PKG -name "$i" -exec rm -rf {} \; - done +# Remove perllocal.pod and other special files that don't need to be installed +( cd $PKG + # Remove 'special' files + find . -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f ) # Remove empty directories find $PKG -depth -type d -empty -exec rm -rf {} \; -# strip libraries -( cd $PKG - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) - -# compress man pages +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -92,14 +91,11 @@ find $PKG -depth -type d -empty -exec rm -rf {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -# copy demo files -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/demo -cp -a demo/* $PKG/usr/doc/$PRGNAM-$VERSION/demo +cp -a demo $PKG/usr/doc/$PRGNAM-$VERSION sed -i "s#/usr/local/bin/perl#/usr/bin/perl#g" $PKG/usr/doc/$PRGNAM-$VERSION/demo/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/perl-net-dns/perl-net-dns.info b/libraries/perl-net-dns/perl-net-dns.info index eed94df572..88fa699153 100644 --- a/libraries/perl-net-dns/perl-net-dns.info +++ b/libraries/perl-net-dns/perl-net-dns.info @@ -1,8 +1,10 @@ PRGNAM="perl-net-dns" -VERSION="0.65" +VERSION="0.66" HOMEPAGE="http://search.cpan.org/dist/Net-DNS/" -DOWNLOAD="http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-0.65.tar.gz" -MD5SUM="54e5a12a20de39b954a93723927ac789" +DOWNLOAD="http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-0.66.tar.gz" +MD5SUM="1635d876324e3c2f6e277d5778bfe94c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" MAINTAINER="LukenShiro" EMAIL="lukenshiro@ngi.it" APPROVED="dsomero" diff --git a/libraries/perl-net-dns/slack-desc b/libraries/perl-net-dns/slack-desc index 7b0309f39c..e880ae0f17 100644 --- a/libraries/perl-net-dns/slack-desc +++ b/libraries/perl-net-dns/slack-desc @@ -8,13 +8,12 @@ |-----handy-ruler--------------------------------------------------| perl-net-dns: perl-net-dns (perl DNS resolver module) perl-net-dns: -perl-net-dns: It is a DNS resolver implemented in Perl. It allows the +perl-net-dns: This is a DNS resolver implemented in Perl. It allows the perl-net-dns: programmer to perform nearly any type of DNS query from a Perl perl-net-dns: script. -perl-net-dns: -perl-net-dns: -perl-net-dns: -perl-net-dns: +perl-net-dns: perl-net-dns: Homepage: http://search.cpan.org/dist/Net-DNS/ -perl-net-dns: - +perl-net-dns: +perl-net-dns: +perl-net-dns: +perl-net-dns: |