This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/dropbear/default.bash

67 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-02-05 13:44:46 +00:00
'2015.67'
2013-07-13 17:19:22 +01:00
)
url=\
(
"https://matt.ucc.asn.au/dropbear/releases/dropbear-$version.tar.bz2"
)
md5=\
(
2015-02-05 13:44:46 +00:00
'e967e320344cd4bfebe321e3ab8514d6'
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'zlib/default'
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches/"*.patch)
2013-07-13 17:19:22 +01:00
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
"../dropbear-$version/configure" \
--prefix="$cfg_dir_rootfs/usr" \
--disable-utmp \
--disable-utmpx \
--disable-wtmp \
--disable-wtmpx \
--disable-lastlog \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
2015-02-05 13:44:46 +00:00
--with-zlib="$cfg_dir_toolchain_sysroot/usr"
2013-07-13 17:19:22 +01:00
}
build()
{
$cmd_make \
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
MULTI=1
}
target_install()
{
$cmd_target_strip dropbearmulti -o "$cfg_dir_rootfs/usr/bin/dropbearmulti" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dropbearconvert" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dropbearkey" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/scp" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/ssh" &&
ln -fs dropbearmulti "$cfg_dir_rootfs/usr/bin/dbclient" &&
ln -fs ../bin/dropbearmulti "$cfg_dir_rootfs/usr/sbin/dropbear" &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
2013-07-13 17:19:22 +01:00
}