diff options
Diffstat (limited to 'accessibility/wgetpaste/wgetpaste.SlackBuild')
-rw-r--r-- | accessibility/wgetpaste/wgetpaste.SlackBuild | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/accessibility/wgetpaste/wgetpaste.SlackBuild b/accessibility/wgetpaste/wgetpaste.SlackBuild index d0c0847775..3a8ce39282 100644 --- a/accessibility/wgetpaste/wgetpaste.SlackBuild +++ b/accessibility/wgetpaste/wgetpaste.SlackBuild @@ -1,11 +1,25 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wgetpaste -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240314 bkw: update for v2.34. +# 20231220 bkw: update for v2.33. at least half of the services +# are working again, so update README and man page. + +# 20230704 bkw: BUILD=2 +# - Add doc dir. WTF was I smoking? + +# 20201024 bkw: Attempted update for v2.30, but it appears to be +# broken. The default dpaste service works fine in 2.29 and not +# at all in 2.30. Only reason I'm "updating" the build is to add +# comments here and in the README. + +# 20191130 bkw: update for v2.29. Currently only dpaste works. + # 20140818 bkw: # - Updated to 2.25. # - Rewrote man page in pod. @@ -30,16 +44,23 @@ # - Leave default service as-is (it's now poundpython). # - Really remove no_gentooisms.diff. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wgetpaste -VERSION=${VERSION:-2.28} +VERSION=${VERSION:-2.34} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch ZSHDIR=/usr/share/zsh/site-functions -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -50,14 +71,11 @@ rm -rf $PKG mkdir -p $TMP $OUTPUT $PKG/usr/bin $PKG/etc/$PRGNAM.d $PKG/usr/man/man1 $PKG/$ZSHDIR cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # Un-gentoo-ize the help and error messages, use wgetpaste_info for the # -i and -I options. @@ -66,6 +84,7 @@ sed -i \ -e 's,emerge --info,wgetpaste_info,g' \ -e 's,emerge x11-misc/,install ,g' \ -e 's,x11-misc/,,g' \ + -e 's,app-text/,,g' \ -e '/^INFO_ARGS/s,"[^"]*","",' \ $PRGNAM @@ -73,7 +92,7 @@ $PRGNAM ## -e '/^DEFAULT_SERVICE/s,bpaste,dpaste,' \ ## Set default paste service to something that works, ## since bpaste has stopped working. -# no longer needed as the default is now poundpython, per upstream. +# no longer needed as bpaste has started working again. # No 'make install', do it manually: install -groot -oroot -m0755 $PRGNAM $PKG/usr/bin @@ -84,8 +103,13 @@ install -groot -oroot -m0755 $CWD/${PRGNAM}_info $PKG/usr/bin # Man page made from --help output, by way of POD. gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a LICENSE $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |