diff options
author | Thomas Morper <thomas@beingboiled.info> | 2022-05-12 18:10:17 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-14 19:28:00 +0700 |
commit | 824b8fdc95c97c79e5bbcc621e9d53969bc4b485 (patch) | |
tree | 70dc3793e7a91b45fe61434afa15815c3502dc8f /perl | |
parent | 1548ab286959c54d78ff5add2e1f7ae58ce054bd (diff) |
perl/perl-FCGI: Updated for version 0.82.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl')
-rw-r--r-- | perl/perl-FCGI/perl-FCGI.SlackBuild | 52 | ||||
-rw-r--r-- | perl/perl-FCGI/perl-FCGI.info | 6 |
2 files changed, 37 insertions, 21 deletions
diff --git a/perl/perl-FCGI/perl-FCGI.SlackBuild b/perl/perl-FCGI/perl-FCGI.SlackBuild index b62c41b7982a0..8cb2e65323542 100644 --- a/perl/perl-FCGI/perl-FCGI.SlackBuild +++ b/perl/perl-FCGI/perl-FCGI.SlackBuild @@ -1,29 +1,45 @@ #!/bin/bash # Slackware build script for perl-FCGI -# Written by Thomas Morper <thomas@beingboiled.info> + +# Copyright 2012-2022, Thomas Morper, Nürnberg, Germany +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=perl-FCGI -VERSION=${VERSION:-0.77} +VERSION=${VERSION:-0.82} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -SRCNAM=$(echo $PRGNAM | cut -f2- -d-) +SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; 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 @@ -33,8 +49,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -57,33 +73,33 @@ 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 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 \ INSTALLVENDORMAN1DIR=/usr/man/man1 \ INSTALLVENDORMAN3DIR=/usr/man/man3 - make -make test make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true 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 -find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" -empty | xargs rm -f || true +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +chmod -c 0644 LICENSE cp -a \ - ChangeLog LICENSE.TERMS MANIFEST README \ + ChangeLog LICENSE MANIFEST README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/perl/perl-FCGI/perl-FCGI.info b/perl/perl-FCGI/perl-FCGI.info index 37e9227f91c20..417d85591b5ca 100644 --- a/perl/perl-FCGI/perl-FCGI.info +++ b/perl/perl-FCGI/perl-FCGI.info @@ -1,8 +1,8 @@ PRGNAM="perl-FCGI" -VERSION="0.77" +VERSION="0.82" HOMEPAGE="https://metacpan.org/pod/FCGI" -DOWNLOAD="http://cpan.metacpan.org/authors/id/E/ET/ETHER/FCGI-0.77.tar.gz" -MD5SUM="8d88f0fe90f05973522813263b0be39b" +DOWNLOAD="https://cpan.metacpan.org/authors/id/E/ET/ETHER/FCGI-0.82.tar.gz" +MD5SUM="f51a6cb522c0ff25043281532ad0479f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |