aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-09-01 17:10:45 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-07 09:08:47 +0700
commit9cd1b7e417f7036458cfdad5d626b0b222231ad7 (patch)
tree1dec640aa4fe1d8e28179373faf0f5e0772e5d9b /misc
parentfac81813149628f654390cb0aaf21e22da5e996a (diff)
misc/lppf: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/lppf/Makefile.diff.gzbin597 -> 0 bytes
-rw-r--r--misc/lppf/README10
-rw-r--r--misc/lppf/braces.diff.gzbin374 -> 0 bytes
-rw-r--r--misc/lppf/lppf.SlackBuild77
-rw-r--r--misc/lppf/lppf.info6
-rw-r--r--misc/lppf/slack-desc8
6 files changed, 43 insertions, 58 deletions
diff --git a/misc/lppf/Makefile.diff.gz b/misc/lppf/Makefile.diff.gz
deleted file mode 100644
index 2dac15bc03..0000000000
--- a/misc/lppf/Makefile.diff.gz
+++ /dev/null
Binary files differ
diff --git a/misc/lppf/README b/misc/lppf/README
index 4b2cd237ea..be4e554bb1 100644
--- a/misc/lppf/README
+++ b/misc/lppf/README
@@ -1,6 +1,10 @@
+lppf (Linux PPF Patcher)
+
lppf is an application for handling PPF patches in Linux. PPF patches
are often very small and are used for correcting a previously released
-movie or an ISO, so that users won't have to download everything again.
+movie or an ISO, so that users won't have to download everything
+again. PPF stands for "PlayStation Patch Format", though it can be
+used for purposes other than PlayStation images.
-To build the debugging symbols use:
- DEBUG=1 ./lppf.SlackBuild
+To build with debugging symbols use:
+ DEBUG=yes ./lppf.SlackBuild
diff --git a/misc/lppf/braces.diff.gz b/misc/lppf/braces.diff.gz
deleted file mode 100644
index 7f84168f2b..0000000000
--- a/misc/lppf/braces.diff.gz
+++ /dev/null
Binary files differ
diff --git a/misc/lppf/lppf.SlackBuild b/misc/lppf/lppf.SlackBuild
index 5513e8ce35..052f1df7c8 100644
--- a/misc/lppf/lppf.SlackBuild
+++ b/misc/lppf/lppf.SlackBuild
@@ -2,32 +2,25 @@
# Slackware build script for lppf
-# Copyright 2016, 2018 Hunter Sezen California, USA
-# 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.
+# Original author: Hunter Sezen.
+# Modified and now maintained by B. Watson <urchlay@slackware.uk>.
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20240901 bkw: BUILD=2
+# - new maintainer.
+# - relicense as WTFPL.
+# - get INSTALL out of doc dir.
+# - keep Hunter's DEBUG option, but make it DEBUG=yes rather than
+# DEBUG=1 (to match my other scripts).
+# - expand README and slack-desc a bit.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lppf
VERSION=${VERSION:-0.1_rc1}
SRCVER=$(echo $VERSION | tr _ -)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +32,6 @@ if [ -z "$ARCH" ]; then
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
@@ -51,18 +41,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+O="-O2"
+[ "${DEBUG:-no}" = "yes" ] && O="-O0 -g"
+
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="$O -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="$O -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ SLKCFLAGS="$O -fPIC"
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="$O"
fi
set -eu
@@ -74,32 +63,24 @@ rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
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 {} \;
-
-[ "${DEBUG:=0}" != 0 ] && \
- SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')"
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-zcat $CWD/Makefile.diff.gz | patch -p1
-zcat $CWD/braces.diff.gz | patch -p1
+patch -p1 < $CWD/Makefile.diff
+patch -p1 < $CWD/braces.diff
make CFLAGS="$SLKCFLAGS"
+[ "${DEBUG:-no}" = "yes" ] || strip $PRGNAM
+
make install \
PREFIX=/usr \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \
DESTDIR=$PKG
-if [ "$DEBUG" = 0 ]; then
- 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
-fi
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/misc/lppf/lppf.info b/misc/lppf/lppf.info
index 2025912729..cd9ad2f278 100644
--- a/misc/lppf/lppf.info
+++ b/misc/lppf/lppf.info
@@ -1,10 +1,10 @@
PRGNAM="lppf"
VERSION="0.1_rc1"
HOMEPAGE="https://sourceforge.net/projects/lppf/"
-DOWNLOAD="http://downloads.sourceforge.net/project/lppf/lppf-0.1_rc1/lppf-0.1_rc1/lppf-0.1-rc1.tar.gz"
+DOWNLOAD="https://downloads.sourceforge.net/project/lppf/lppf-0.1_rc1/lppf-0.1_rc1/lppf-0.1-rc1.tar.gz"
MD5SUM="f85b14efb64378fe016a104f09c36e6d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Hunter Sezen"
-EMAIL="orbea@riseup.net"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/misc/lppf/slack-desc b/misc/lppf/slack-desc
index 85954f2443..f0f367e787 100644
--- a/misc/lppf/slack-desc
+++ b/misc/lppf/slack-desc
@@ -9,11 +9,11 @@
lppf: lppf (Linux PPF Patcher)
lppf:
lppf: lppf is an application for handling PPF patches in Linux. PPF patches
-lppf: are often very small and are used for correcting a previously
-lppf: released movie or an ISO, so that users won't have to download
-lppf: everything again.
+lppf: are often very small and are used for correcting a previously released
+lppf: movie or an ISO, so that users won't have to download everything
+lppf: again. PPF stands for "PlayStation Patch Format", though it can be
+lppf: used for purposes other than PlayStation images.
lppf:
lppf: Homepage: https://sourceforge.net/projects/lppf/
lppf:
lppf:
-lppf: