diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-04-16 23:54:06 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:13 +0700 |
commit | ebc1bf9197036b657b2022bbd263436e36d283de (patch) | |
tree | 2d5d47821f5431fd4312583c262210300ffba619 /network | |
parent | 7cabb541cd14bb83197cabff76c9eb63af9b96e3 (diff) | |
download | slackbuilds-ebc1bf9197036b657b2022bbd263436e36d283de.tar.gz |
network/dropbear: Updated for version 2022.82.
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/dropbear/README | 8 | ||||
-rw-r--r-- | network/dropbear/dropbear.SlackBuild | 42 | ||||
-rw-r--r-- | network/dropbear/dropbear.info | 6 |
3 files changed, 30 insertions, 26 deletions
diff --git a/network/dropbear/README b/network/dropbear/README index 1b5798c8e6..2f154bcb82 100644 --- a/network/dropbear/README +++ b/network/dropbear/README @@ -7,11 +7,11 @@ useful for "embedded"-type Linux (or other Unix) systems, such as wireless routers. Please note the Dropbear distribution includes a standalone version of -OpenSSH's scp program. This SlackBuild will NOT build this by default, +OpenSSH's scp program. This SlackBuild will NOT link this by default, thus creating a package which will not conflict with OpenSSH's scp binary. -If you want to build dropbear's scp binary, use: +If you want to link dropbear's scp binary, use: WITH_SCP=yes ./dropbear.SlackBuild @@ -20,3 +20,7 @@ this file with a symbolic link to the dropbearmulti binary, so a backup of /usr/bin/scp will be made if it exists. After uninstalling dropbear, you can restore the backup with 'mv /usr/bin/scp.openssh /usr/bin/scp'. + +Installing the package built with WITH_SCP=no will create a +symbolic link /usr/bin/scp.dropbear pointing to the dropbearmulti +binary. diff --git a/network/dropbear/dropbear.SlackBuild b/network/dropbear/dropbear.SlackBuild index cfd8242264..74d13ddb68 100644 --- a/network/dropbear/dropbear.SlackBuild +++ b/network/dropbear/dropbear.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2007-2008, Piter Punk, São Paulo, Brazil -# Copyright 2017-2020, Andrew Clemons, Wellington New Zealand +# Copyright 2017-2020,2022 Andrew Clemons, Wellington New Zealand # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,18 +21,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20220411 bkw: Modified by SlackBuilds.org, BUILD=3: -# - change the WITH_SCP option so it defaults to no. in other words, -# the default behaviour is to *not* conflict with a Slackware package. -# - use relative symlinks for binaries. -# - add missing SlackBuild to doc dir. - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dropbear -VERSION=${VERSION:-2020.81} +VERSION=${VERSION:-2022.82} SRCVERSION="DROPBEAR_$VERSION" -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -78,9 +72,9 @@ cd $PRGNAM-$SRCVERSION 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 \ + -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 {} \+ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; autoreconf -if @@ -101,30 +95,36 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-pututxline \ --build=$ARCH-slackware-linux -PROGRAMS="dropbear dbclient dropbearkey dropbearconvert" - -# 20220412 bkw: disabled by default. please don't change it back. -if [ "${WITH_SCP:-no}" = "yes" ] ; then - PROGRAMS="$PROGRAMS scp" -fi +PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" make strip \ PROGRAMS="$PROGRAMS" \ - MULTI=1 + MULTI=1 \ + SCPPROGRESS=1 make install \ PROGRAMS="$PROGRAMS" \ MULTI=1 \ + SCPPROGRESS=1 \ DESTDIR=$PKG -gzip -9 $PKG/usr/man/man*/* +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 + +WITH_SCP=${WITH_SCP:-no} # 20220412 bkw: use relative symlinks. for i in $PROGRAMS; do BIN=$PKG/usr/bin/$i SBIN=$PKG/usr/sbin/$i - [ -L $BIN ] && rm -f $BIN && ln -s dropbearmulti $BIN - [ -L $SBIN ] && rm -f $SBIN && ln -s ../bin/dropbearmulti $SBIN + + if [ "$i" = "scp" ] && [ "$WITH_SCP" != "yes" ] ; then + [ -L $BIN ] && rm -f $BIN && ln -s dropbearmulti $BIN.dropbear + [ -L $SBIN ] && rm -f $SBIN && ln -s ../bin/dropbearmulti $SBIN.dropbear + else + [ -L $BIN ] && rm -f $BIN && ln -s dropbearmulti $BIN + [ -L $SBIN ] && rm -f $SBIN && ln -s ../bin/dropbearmulti $SBIN + fi done mkdir -p $PKG/etc/rc.d diff --git a/network/dropbear/dropbear.info b/network/dropbear/dropbear.info index 95c96f952b..c591f70728 100644 --- a/network/dropbear/dropbear.info +++ b/network/dropbear/dropbear.info @@ -1,8 +1,8 @@ PRGNAM="dropbear" -VERSION="2020.81" +VERSION="2022.82" HOMEPAGE="https://github.com/mkj/dropbear" -DOWNLOAD="https://github.com/mkj/dropbear/archive/DROPBEAR_2020.81/dropbear-DROPBEAR_2020.81.tar.gz" -MD5SUM="31761dde389e765b5f77deda4a0fd027" +DOWNLOAD="https://github.com/mkj/dropbear/archive/DROPBEAR_2022.82/dropbear-DROPBEAR_2022.82.tar.gz" +MD5SUM="6a0a87b7cdf15fce66da4630db179b74" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |