1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:= 6b8d901859d9b8a18e2f6bfe0a892a03
10 PKG_DESCR
:= SSH
2 server
/client designed for embedded systems
11 PKG_SECTION
:= net
/security
12 PKG_URL
:= http
://matt.ucc.asn.au
/dropbear
/
13 PKG_SITES
:= http
://matt.ucc.asn.au
/dropbear
/releases
/
15 PKG_DFLT_DROPBEAR
:= y if
!ADK_TOOLCHAIN_ONLY
16 PKG_SUBPKGS
:= DROPBEAR DBCONVERT
17 PKGSD_DBCONVERT
:= Utility for converting SSH private keys
19 PKG_FLAVOURS_DROPBEAR
:= WITH_UTMP
20 PKGFD_WITH_UTMP
:= support writing
/var
/run
/utmp
22 include $(TOPDIR
)/mk
/package.mk
24 $(eval
$(call PKG_template
,DROPBEAR
,$(PKG_NAME
),$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 $(eval
$(call PKG_template
,DBCONVERT
,dropbearconvert
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DBCONVERT},${PKG_SECTION}))
28 INSTALL_STYLE
:= manual
29 CONFIGURE_ARGS
+= --disable-pam \
38 --disable-pututxline \
40 ifeq (${ADK_PACKAGE_DROPBEAR_WITH_UTMP},)
41 CONFIGURE_ARGS
+= --disable-utmp
--disable-pututline
43 CONFIGURE_ENV
+= conf_utmp_location
=/var
/run
/utmp
47 $(SED
) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD
)/options.h
48 $(SED
) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(WRKBUILD
)/options.h
51 cd
${WRKBUILD} && env
${MAKE_ENV} ${MAKE} \
52 PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 SCPPROGRESS
=1
53 cd
${WRKBUILD} && env
${MAKE_ENV} ${MAKE} \
54 PROGRAMS
=dropbearconvert
58 $(INSTALL_DIR
) $(IDIR_DROPBEAR
)/usr
/bin
59 $(INSTALL_DIR
) $(IDIR_DROPBEAR
)/usr
/sbin
60 $(INSTALL_BIN
) $(WRKBUILD
)/dropbearmulti \
61 $(IDIR_DROPBEAR
)/usr
/sbin
/dropbear
62 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/scp
63 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/ssh
64 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dbclient
65 ln
-sf ..
/sbin
/dropbear
$(IDIR_DROPBEAR
)/usr
/bin
/dropbearkey
66 # subpackage dropbearconvert
67 $(INSTALL_DIR
) $(IDIR_DBCONVERT
)/usr
/bin
68 $(INSTALL_BIN
) $(WRKBUILD
)/dropbearconvert \
69 $(IDIR_DBCONVERT
)/usr
/bin
/dropbearconvert
71 test -z
$(ADK_RUNTIME_SSH_PUBKEY
) ||
( \
72 $(INSTALL_DIR
) $(IDIR_DROPBEAR
)/etc
/dropbear
; \
73 echo
$(ADK_RUNTIME_SSH_PUBKEY
) \
74 >$(IDIR_DROPBEAR
)/etc
/dropbear
/authorized_keys
; \
77 include ${TOPDIR}/mk
/pkg-bottom.mk