Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. CONFIGURE_STYLE= gnu
  18. CONFIGURE_ARGS+= --disable-pam \
  19. --enable-openpty \
  20. --enable-syslog \
  21. --enable-shadow \
  22. --disable-lastlog \
  23. --disable-utmp \
  24. --disable-utmpx \
  25. --disable-wtmp \
  26. --disable-wtmpx \
  27. --disable-loginfunc \
  28. --disable-pututline \
  29. --disable-pututxline \
  30. --disable-zlib
  31. pre-configure:
  32. $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD)/options.h
  33. $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(WRKBUILD)/options.h
  34. do-build:
  35. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  36. PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 SCPPROGRESS=1
  37. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  38. PROGRAMS=dropbearconvert
  39. do-install:
  40. # main package
  41. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin
  42. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/sbin
  43. $(INSTALL_BIN) $(WRKBUILD)/dropbearmulti \
  44. $(IDIR_DROPBEAR)/usr/sbin/dropbear
  45. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
  46. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
  47. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
  48. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
  49. # subpackage dropbearconvert
  50. $(INSTALL_DIR) $(IDIR_DBCONVERT)/usr/bin
  51. $(INSTALL_BIN) $(WRKBUILD)/dropbearconvert \
  52. $(IDIR_DBCONVERT)/usr/bin/dropbearconvert
  53. include ${TOPDIR}/mk/pkg-bottom.mk