diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2023-01-29 11:42:29 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-04 07:20:00 +0700 |
commit | 56604dfd00063e6dd2204044c3e7ea6a01f0e934 (patch) | |
tree | de2f8a20a4fc84a040fbb3e6e8f71a5ccd5578c4 /network | |
parent | 36ab9e0d118b0b6c9576e2d1427fca52a2b0a50c (diff) |
network/axel: Fix doinst.sh.
```
mv: cannot stat 'etc/axelrc.new': No such file or directory
```
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/axel/axel.SlackBuild | 3 | ||||
-rw-r--r-- | network/axel/doinst.sh | 14 |
2 files changed, 1 insertions, 16 deletions
diff --git a/network/axel/axel.SlackBuild b/network/axel/axel.SlackBuild index bd8962a4b2035..48564656aed35 100644 --- a/network/axel/axel.SlackBuild +++ b/network/axel/axel.SlackBuild @@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=axel VERSION=${VERSION:-2.17.11} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -98,7 +98,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/axel/doinst.sh b/network/axel/doinst.sh deleted file mode 100644 index fa6f314c120b9..0000000000000 --- a/network/axel/doinst.sh +++ /dev/null @@ -1,14 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -config etc/axelrc.new |