aboutsummaryrefslogtreecommitdiff
path: root/network/dropbear/dropbear.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-19 14:07:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-19 14:07:31 +0700
commit148624f67ce49366081b9c586b3c42d48ba57c5e (patch)
treec96c7bb4c178cdcac37c3721cbd0c2b957d76551 /network/dropbear/dropbear.SlackBuild
parent7b7b9234f14a43999aa83340383c2a6726ace3b3 (diff)
network/dropbear: Updated for version 2016.73.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dropbear/dropbear.SlackBuild')
-rw-r--r--network/dropbear/dropbear.SlackBuild34
1 files changed, 7 insertions, 27 deletions
diff --git a/network/dropbear/dropbear.SlackBuild b/network/dropbear/dropbear.SlackBuild
index 5c0a301ecacf7..d9791560f16ea 100644
--- a/network/dropbear/dropbear.SlackBuild
+++ b/network/dropbear/dropbear.SlackBuild
@@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dropbear
-VERSION=0.52
+VERSION=${VERSION:-2016.73}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,7 +35,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/pkg-$PRGNAM
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
@@ -65,10 +65,7 @@ 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 {} \;
-
-# Apply xauth path patch
-patch -p0 < $CWD/dropbear.xauth.patch
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -76,6 +73,7 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--bindir=/usr/sbin \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
--disable-syslog \
--disable-utmp \
--disable-utmpx \
@@ -92,32 +90,14 @@ make install \
MULTI="1" \
DESTDIR=$PKG
-# Copy manpages to package
-mkdir -p $PKG/usr/man/man{1,8}
-cp dbclient.1 $PKG/usr/man/man1
-cp dropbearkey.8 dropbear.8 $PKG/usr/man/man8
-
-( 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
-)
-
-# Link binaries to dropbearmulti
-mkdir $PKG/usr/sbin
-( cd $PKG/usr/sbin ; ln -s ../bin/dropbearmulti dropbear )
-( cd $PKG/usr/bin
- for i in dbclient dropbearkey dropbearconvert scp ; do
- ln -s dropbearmulti $i ;
- done
-)
+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/etc/rc.d
cat $CWD/rc.dropbear.new > $PKG/etc/rc.d/rc.dropbear.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CHANGES INSTALL LICENSE MULTI README SMALL TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES INSTALL LICENSE MULTI README SMALL TODO $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc