diff options
Diffstat (limited to 'network/dropbear/dropbear.SlackBuild')
-rw-r--r-- | network/dropbear/dropbear.SlackBuild | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/network/dropbear/dropbear.SlackBuild b/network/dropbear/dropbear.SlackBuild index 6b86ba9ff3e8..6a4ed654e9ec 100644 --- a/network/dropbear/dropbear.SlackBuild +++ b/network/dropbear/dropbear.SlackBuild @@ -23,7 +23,7 @@ PRGNAM=dropbear VERSION=${VERSION:-2017.75} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -72,7 +72,8 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --bindir=/usr/sbin \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --disable-syslog \ @@ -84,11 +85,21 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-pututxline \ --build=$ARCH-slackware-linux -make \ - PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \ - MULTI="1" +PROGRAMS="dropbear dbclient dropbearkey dropbearconvert" + +WITH_SCP=${WITH_SCP:-yes} + +if [ "$WITH_SCP" = "yes" ] ; then + PROGRAMS="$PROGRAMS scp" +fi + +make strip \ + PROGRAMS="$PROGRAMS" \ + MULTI=1 + make install \ - MULTI="1" \ + PROGRAMS="$PROGRAMS" \ + MULTI=1 \ DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -107,5 +118,13 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +if [ "$WITH_SCOPE" = "yes" ] ; then + cat << EOF >> $PKG/install/doinst.sh +if [ -e usr/bin/scp ]; then + mv usr/bin/scp usr/bin/scp.openssh +fi +EOF +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |