diff options
Diffstat (limited to 'development/bed')
-rw-r--r-- | development/bed/README | 18 | ||||
-rw-r--r-- | development/bed/bed.SlackBuild | 27 | ||||
-rw-r--r-- | development/bed/bed.info | 4 |
3 files changed, 34 insertions, 15 deletions
diff --git a/development/bed/README b/development/bed/README index 58a7b6e8ba..7f3733508f 100644 --- a/development/bed/README +++ b/development/bed/README @@ -1,19 +1,21 @@ bed (ncurses-based adjustable data format binary/hex editor) Bed is a binary editor that supports editing/viewing data in a wide -variety of formats, including ASCII, unsigned and signed integers, float, -bit-flags, bit-fields, labels, EBCDIC and time_t. Different sizes and -byte orderings are possible. Data types can be used in structures. Other -data formats, filters and procedures can be defined in plugins. +variety of formats, including ASCII, unsigned and signed integers, +float, bit-flags, bit-fields, labels, EBCDIC and time_t. Different +sizes and byte orderings are possible. Data types can be used in +structures. Other data formats, filters and procedures can be defined +in plugins. Optional dependencies: hyperscan and/or re2. These are autodetected at build time. bed uses these for faster regular expressions searches. Notes: -- bed starts up in Ascii input mode. Press F7 to switch to "Digit-Hex" entry - mode. If this doesn't work, see the next note. +- bed starts up in ASCII input mode. Press F7 to switch to "Digit-Hex" + entry mode. If this doesn't work, see the next note. - bed makes extensive use of Meta key combinations and the F-keys. - It's pretty sensitive to the terminal type and $TERM setting being used. - See README_SBo.txt if you have trouble with the keyboard commands. + It's pretty sensitive to the terminal type and $TERM setting being + used. See README_SBo.txt if you have trouble with the keyboard + commands. diff --git a/development/bed/bed.SlackBuild b/development/bed/bed.SlackBuild index cda7e9329a..617726af14 100644 --- a/development/bed/bed.SlackBuild +++ b/development/bed/bed.SlackBuild @@ -1,20 +1,24 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for bed -# 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. +# 20220404 bkw: BUILD=3, remove more cruft. # 20200111 bkw: Upstream site has expired and gone to meet its maker. # 20191225 bkw: BUILD=2 # - fix builds with optional re2 dep, document optional hyperscan dep. # - install BUGS CHANGELOG TODO in docdir. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=bed VERSION=${VERSION:-3.0.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,7 +28,11 @@ if [ -z "$ARCH" ]; then esac fi -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} @@ -70,6 +78,12 @@ sed -i '/Press F1 in menu/s/X/[x]/g' plugins/examples/helpf1.cc # 20191225 bkw: build was failing on systems where re2 was installed sed -i 's,static *string,static std::string,' src/re2search.cpp +# 20220205 bkw: C++ standards OCD... +sed -i 's,getret>0,getret,' src/readhelp.cpp + +# 20220404 bkw: wtf, upstream? you included compiled binaries in the source. +rm -f src/mkpartypes regex-*/regtest + # Not sure the --without-x does anything, but it doesn't hurt either. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -148,6 +162,9 @@ rm -f $PKGBEDLIB/bedmagic.short $PKGBEDLIB/addmagic # Don't want this (use removepkg instead): rm -f $PKGBEDLIB/uninstallbed.sh +# 20220404 bkw: this looks utterly useless. +rm -f $PKGBEDLIB/plugins/examples/disass-use + # There's still some cruft in $PKGBEDLIB (e.g. sources for the plugins), # but it's stuff that could be considered documentation so I'll leave it. @@ -172,4 +189,4 @@ sed -e "s,@HYPER@,$HYPER," \ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/bed/bed.info b/development/bed/bed.info index 2af6b39925..e125f06e49 100644 --- a/development/bed/bed.info +++ b/development/bed/bed.info @@ -1,10 +1,10 @@ PRGNAM="bed" VERSION="3.0.0" HOMEPAGE="http://web.archive.org/web/20191229144155/https://www.dse.nl/~bed/download.html" -DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/bed-3.0.0.src.tar.xz" +DOWNLOAD="https://slackware.uk/~urchlay/src/bed-3.0.0.src.tar.xz" MD5SUM="cd2f49434d673bd4f124b6cb1d1a1dbd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" |