Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= dropbear
  5. PKG_VERSION:= 0.52
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1c69ec674481d7745452f68f2ea5597e
  8. PKG_DESCR:= SSH 2 server/client designed for small memory environments
  9. PKG_SECTION:= net
  10. PKG_URL:= http://matt.ucc.asn.au/dropbear
  11. PKG_SITES:= http://matt.ucc.asn.au/dropbear/releases/ \
  12. http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
  13. PKG_DESCR_1:= Utility for converting SSH keys
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,DBCONVERT,dropbearconvert,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  17. PKGDFLT_DROPBEAR:= y if !ADK_TOOLCHAIN_ONLY
  18. CONFIGURE_STYLE= gnu
  19. CONFIGURE_ARGS+= --disable-pam \
  20. --enable-openpty \
  21. --enable-syslog \
  22. --enable-shadow \
  23. --disable-lastlog \
  24. --disable-utmp \
  25. --disable-utmpx \
  26. --disable-wtmp \
  27. --disable-wtmpx \
  28. --disable-loginfunc \
  29. --disable-pututline \
  30. --disable-pututxline \
  31. --disable-zlib
  32. pre-configure:
  33. $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD)/options.h
  34. $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(WRKBUILD)/options.h
  35. do-build:
  36. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  37. PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 SCPPROGRESS=1
  38. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  39. PROGRAMS=dropbearconvert
  40. do-install:
  41. # main package
  42. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin
  43. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/sbin
  44. $(INSTALL_BIN) $(WRKBUILD)/dropbearmulti \
  45. $(IDIR_DROPBEAR)/usr/sbin/dropbear
  46. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
  47. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
  48. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
  49. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
  50. # subpackage dropbearconvert
  51. $(INSTALL_DIR) $(IDIR_DBCONVERT)/usr/bin
  52. $(INSTALL_BIN) $(WRKBUILD)/dropbearconvert \
  53. $(IDIR_DBCONVERT)/usr/bin/dropbearconvert
  54. include ${TOPDIR}/mk/pkg-bottom.mk