Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
version=\
(
'2012.55'
)
url=\
(
"https://matt.ucc.asn.au/dropbear/releases/dropbear-$version.tar.bz2"
)
md5=\
(
'8c784baec3054cdb1bb4bfa792c87812'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'zlib/default'
)
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches/"*.patch)
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" \
--with-zlib="$cfg_dir_toolchain"
}
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 "$cfg_package_spec_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@@ -0,0 +1,21 @@
start()
{
if [ -x /usr/bin/dropbearmulti ]; then
if ! [ -f /etc/dropbear/dropbear_rsa_host_key ]; then
mount -o remount,rw /
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
mount -o remount,ro /
fi
if ! [ -f /etc/dropbear/dropbear_dss_host_key ]; then
mount -o remount,rw /
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
mount -o remount,ro /
fi
fi
}
stop()
{
echo ""
}

View File

@@ -0,0 +1,30 @@
diff --git a/Makefile.in b/Makefile.in
index cec35f1..46a9365 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -56,7 +56,7 @@ HEADERS=options.h dbutil.h session.h packet.h algo.h ssh.h buffer.h kex.h \
loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
listener.h fake-rfc2553.h
-dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS) @CRYPTLIB@
+dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS)
dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS)
dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
@@ -169,14 +169,14 @@ scp: $(SCPOBJS) $(HEADERS) Makefile
# multi-binary compilation.
MULTIOBJS=
ifeq ($(MULTI),1)
- MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) @CRYPTLIB@
+ MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
endif
dropbearmulti: multilink
multibinary: $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
- $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS)
+ $(CC) $(LDFLAGS) -o dropbearmulti$(EXEEXT) $(MULTIOBJS) $(LIBS) @CRYPTLIB@
multilink: multibinary $(addprefix link, $(PROGRAMS))