aboutsummaryrefslogtreecommitdiff
path: root/system/safecopy/safecopy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/safecopy/safecopy.SlackBuild')
-rw-r--r--system/safecopy/safecopy.SlackBuild50
1 files changed, 30 insertions, 20 deletions
diff --git a/system/safecopy/safecopy.SlackBuild b/system/safecopy/safecopy.SlackBuild
index 0359cd834f57d..6fe811b8cd958 100644
--- a/system/safecopy/safecopy.SlackBuild
+++ b/system/safecopy/safecopy.SlackBuild
@@ -4,6 +4,7 @@
# Home Page http://safecopy.sourceforge.net/
# Copyright (c) 2009-2012, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2024 B. Watson
# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
#
@@ -25,11 +26,20 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240826 bkw: BUILD=2
+# - new maintainer.
+# - get generic gnu INSTALL out of doc dir.
+# - clean up README and slack-desc slightly.
+# - add man page patch from Debian's 1.7-7.
+
+# TODO: see if anyone's patched this to make the test suite work.
+# Debian hasn't.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="safecopy"
VERSION=${VERSION:-1.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,9 +51,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
@@ -72,14 +79,13 @@ set -e
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+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 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 {} +
+
+patch -p1 < $CWD/10_fix-manpage.patch
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -91,18 +97,22 @@ CFLAGS="$SLKCFLAGS" \
--infodir=/usr/info
make
-make install-strip DESTDIR=$PKG
-### compress man pages
-( 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
-)
+# 20240826 bkw: if we wanted to run the test suite, we'd do this:
+
+# cd simulator && ./configure && make && cd -
+# cd test ; PATH=.:$PATH sh test.sh ; cd -
+
+# However, the simulator seems to be broken (needs to be updated for
+# more recent glibc), so the test results are questionable.
+
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog COPYING AUTHORS README INSTALL NEWS \
-specification.txt $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
+cp -a ChangeLog COPYING AUTHORS README NEWS specification.txt $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc