From ba01f403905f5460bf0e3896414f4ae467e49152 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Wed, 12 May 2010 23:30:47 +0200 Subject: [PATCH] libraries/libwhisker2: Added to 12.2 repository --- libraries/libwhisker2/Makefiles.patch.gz | Bin 0 -> 1109 bytes libraries/libwhisker2/README | 8 ++ libraries/libwhisker2/libwhisker2.SlackBuild | 94 +++++++++++++++++++ libraries/libwhisker2/libwhisker2.info | 8 ++ libraries/libwhisker2/slack-desc | 19 ++++ 5 files changed, 129 insertions(+) create mode 100644 libraries/libwhisker2/Makefiles.patch.gz create mode 100644 libraries/libwhisker2/README create mode 100644 libraries/libwhisker2/libwhisker2.SlackBuild create mode 100644 libraries/libwhisker2/libwhisker2.info create mode 100644 libraries/libwhisker2/slack-desc diff --git a/libraries/libwhisker2/Makefiles.patch.gz b/libraries/libwhisker2/Makefiles.patch.gz new file mode 100644 index 0000000000000000000000000000000000000000..ad7152c6370f6711dc2c80658ce6e397ee180693 GIT binary patch literal 1109 zcmV-b1giTViwFpo(Je^;15IITWoBt?WpgfYVRU0?0Nqw?PvTe<{@nhGGuSMcQl>2k zSeF@DVI8x)1yQrfB&O1f+_l^`?X5U*{O^12ZHs_7JBgdk&h!JMz326Lo^x7{&Sqc? z+#~{@-Yn-dz9W%s*p*r(i0JM6zI#Vz)F<1gs{_?AjBmRtwrMsDvuapPuo_O)c1*is z<`?LuWtyt4>#wE|0h)$o8Fn4)s#CL^gO>r0kHN6aavgO1ZNTxd3Mx<*bJzDB6%_Ii z1`&r&_k7Yh8>@Q$px+);NA1ZcGzm%ML!Pt}`nkJ^H1&zg9GS&7%Qet#t9+1UN!T0n ztOBUschVueUV{tI{+SdsdNVIsjCE=b9ILsTnwq4hR&Gkr_TY4I0jGqK$n{~A-1u|~ zJvt>UCNK*kSOgIPk8qdzaRu!WXFb8Q-!ZS_j9flHQgs!y%kKF6Y&cL_N)byd9x2Km z+>YJ1OE}yl z)b~JiE*w)WG(=nWVWv3kQ~P{0>r5Yq^Y`Jr*v5(7h#_u9*Yo*ux9rBor#d)M*nzD6C?6 z_+1x9k~CU%$)k0c5h?kaj=iH zt|I2mu7`YvAdi{fzYMxM!Kkv*(2Y<-(_n$1d8lhfHt|pah3=D*b~5ava|ctzb2{U2 zjJmkoe@rnrs3YCFRkt$Ml`P=3j8)nfb-Xi3t|pOO@hB-3PLL`V@SG`FQa%q74krPd z(OXnoLHcU_VdtXPJ%3D}Kebw>jG>)eby~knm)@q)(tG+K3=C!Q1+?XyM5MLCy#iVq z<*|q*R)wM-!r~L6{EBssnMf!sxPUorL_89iduP9m+v7hG4p0=0w+i`iRjSy+Q3_JM zfeO*BhMfsT$w84Rr7xgLDdT{-hZhqlT(!r8v%%@R&+IcRltu8u1SiuErnnM;ax7eDy&;S?zw=QKBnN^^O8=G +# 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. + +PRGNAM=libwhisker2 +VERSION=2.4 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} +DOCS="CHANGES DISTRIBUTION KNOWNBUGS LICENSE README docs scripts" + +# Not used at all :-/ +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +# Patch Makefiles +zcat $CWD/Makefiles.patch.gz | patch -p1 + +chown -R root:root . +find . \ + \( -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 {} \; + +make lib +make DESTDIR=$PKG \ + MAN3PATH=/usr/man/man3 \ + install + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( 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 +) + +( cd $PKG + find . \( -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" \) \ + -exec rm -f {} \; +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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 diff --git a/libraries/libwhisker2/libwhisker2.info b/libraries/libwhisker2/libwhisker2.info new file mode 100644 index 0000000000..947a8ecccb --- /dev/null +++ b/libraries/libwhisker2/libwhisker2.info @@ -0,0 +1,8 @@ +PRGNAM="libwhisker2" +VERSION="2.4" +HOMEPAGE="http://www.wiretrip.net/rfp/lw.asp" +DOWNLOAD="http://downloads.sourceforge.net/whisker/libwhisker2-2.4.tar.gz" +MD5SUM="bdc618fa52bee38171c12e00bd99e18d" +MAINTAINER="Marco Bonetti" +EMAIL="sid77@slackware.it" +APPROVED="dsomero" diff --git a/libraries/libwhisker2/slack-desc b/libraries/libwhisker2/slack-desc new file mode 100644 index 0000000000..bb472dcee7 --- /dev/null +++ b/libraries/libwhisker2/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +libwhisker2: libwhisker2 (perl module) +libwhisker2: +libwhisker2: Perl extension geared specificly for HTTP testing. +libwhisker2: +libwhisker2: +libwhisker2: +libwhisker2: +libwhisker2: +libwhisker2: +libwhisker2: +libwhisker2: