diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-25 17:48:25 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-29 10:30:54 -0400 |
commit | e83c4eb40798e6efed57a1d62538fe8365d7b513 (patch) | |
tree | 345aa3d54a319561360cd030ee3bd2a20368ab34 /system/dump | |
parent | 5afe4fb111b298f180720c4e55add0e3e7540ab7 (diff) |
system/dump: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/dump')
-rw-r--r-- | system/dump/README | 21 | ||||
-rw-r--r-- | system/dump/dump.SlackBuild | 85 | ||||
-rw-r--r-- | system/dump/dump.info | 6 |
3 files changed, 55 insertions, 57 deletions
diff --git a/system/dump/README b/system/dump/README index cfe5c863aa131..c7d17c0f13836 100644 --- a/system/dump/README +++ b/system/dump/README @@ -1,13 +1,14 @@ +dump (dump and restore backup commands) + Dump examines files in a filesystem, determines which ones need to be backed up, and copies those files to a specified disk, tape or -other storage medium. Subsequent incremental backups can then be +other storage medium. Subsequent incremental backups can then be layered on top of the full backup. -The restore command performs the inverse function of dump; it can -restore a full backup of a filesystem. Single files and directory -subtrees may also be restored from full or partial backups in -interactive mode. - +The restore.dump command performs the inverse function of dump; +it can restore a full backup of a filesystem. Single files and +directory subtrees may also be restored from full or partial backups +in interactive mode. You might want to read this post by Linus: http://lwn.net/2001/0503/a/lt-dump.php3 @@ -15,11 +16,7 @@ and the counter-argument on: http://dump.sourceforge.net/isdumpdeprecated.html Slackware's tar package already has rmt, therefore this SlackBuild -excludes it. +excludes it. It also has a "restore" command, so dump's restore +command (and man page) has been renamed "restore.dump". This SlackBuild disables the SELinux functionality and dependency. - -Note that Slackware comes with another "restore" command: -/usr/sbin/restore The package built by this SlackBuild however will -install: /sbin/restore Thus you might need to call the dump package -restore by its full path. diff --git a/system/dump/dump.SlackBuild b/system/dump/dump.SlackBuild index 86e106e2c2d14..9ba445a141b57 100644 --- a/system/dump/dump.SlackBuild +++ b/system/dump/dump.SlackBuild @@ -1,33 +1,24 @@ #!/bin/bash # Slackware build script for dump + +# Copyright 2022 B. Watson <urchlay@slackware.uk> # Copyright 2017 Donald Cooley, South Haven, Indiana USA -# Copyright 2012 Chris Abela, Malta -# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org -# 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. +# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org +# Copyright 2012 Chris Abela, Malta + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20220425 bkw: BUILD=2 +# - take over maintenance. +# - relicense as WTFPL (with permission; see mailing list). +# - rename /sbin/restore command (and man page) to restore.dump. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dump VERSION=${VERSION:-0.4b47} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +30,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 @@ -74,11 +62,8 @@ rm -rf $PRGNAM-$VERSION 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 {} \+ # rmt is available on Slack's tar package, so I am disabling it # The full path for mandir is necessary @@ -94,20 +79,36 @@ EXT2FS_LIBS="-lext2fs -lcom_err" \ --enable-selinux=no make -make prefix=$PKG install # According to fhs-2.3, dump goes in /sbin - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +make prefix=$PKG install-strip # According to fhs-2.3, dump goes in /sbin + +# 20220425 bkw: avoid conflicting with Slackware's restore. the old +# version of this script installed dump's restore in /sbin, and didn't +# mess with Slackware's /usr/sbin/restore... technically not a conflict, +# but a landmine anyway (it would be all too easy to type the wrong +# path to the restore command). rename it. +cd $PKG/sbin +mv restore restore.dump +rm -f rrestore +ln -s restore.dump rrestore +cd - + +# 20220425 bkw: rename the man page, for consistency. note that +# rdump.8 just used ".so dump.8" (and likewise for rrestore); replace +# with symlinks. +cd $PKG/usr/man/man8 +mv restore.8 restore.dump.8 +rm -f rdump.8 rrestore.8 +gzip -9 * +ln -s restore.dump.8.gz rrestore.8.gz +ln -s dump.8.gz rdump.8.gz +cd - + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC cp -a \ - AUTHORS COPYING INSTALL *BUGS MAINTAINERS NEWS README TODO ChangeLog examples \ - $PKG/usr/doc/$PRGNAM-$VERSION -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + AUTHORS COPYING *BUGS MAINTAINERS NEWS README TODO ChangeLog examples \ + $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/dump/dump.info b/system/dump/dump.info index 016d5149116db..e0e18ca7318f5 100644 --- a/system/dump/dump.info +++ b/system/dump/dump.info @@ -5,6 +5,6 @@ DOWNLOAD="https://sourceforge.net/projects/dump/files/dump/0.4b47/dump-0.4b47.ta MD5SUM="620f02f1a5c5e7954a2948f0331824d2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="%README%" -MAINTAINER="Donald Cooley" -EMAIL="chytraeu@sdf.org" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" |