Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:= dropbear
  7. PKG_VERSION:= 0.52
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 1c69ec674481d7745452f68f2ea5597e
  10. MASTER_SITES:= http://matt.ucc.asn.au/dropbear/releases/ \
  11. http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
  12. include $(TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,DROPBEAR,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE)))
  14. $(eval $(call PKG_template,DBCONVERT,dropbearconvert,$(PKG_VERSION)-$(PKG_RELEASE)))
  15. CONFIGURE_STYLE= gnu
  16. CONFIGURE_ARGS+= --disable-pam \
  17. --enable-openpty \
  18. --enable-syslog \
  19. --disable-shadow \
  20. --disable-lastlog \
  21. --disable-utmp \
  22. --disable-utmpx \
  23. --disable-wtmp \
  24. --disable-wtmpx \
  25. --disable-loginfunc \
  26. --disable-pututline \
  27. --disable-pututxline \
  28. --disable-zlib
  29. pre-configure:
  30. $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(WRKBUILD)/options.h
  31. $(SED) 's,^#define DO_HOST_LOOKUP,/* & */,g' $(WRKBUILD)/options.h
  32. do-build:
  33. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  34. PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1 SCPPROGRESS=1
  35. cd ${WRKBUILD} && env ${MAKE_ENV} ${MAKE} \
  36. PROGRAMS=dropbearconvert
  37. do-install:
  38. # main package
  39. $(INSTALL_DIR) $(IDIR_DROPBEAR)/etc/init.d
  40. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin
  41. $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/sbin
  42. $(INSTALL_BIN) $(WRKBUILD)/dropbearmulti \
  43. $(IDIR_DROPBEAR)/usr/sbin/dropbear
  44. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/scp
  45. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/ssh
  46. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dbclient
  47. ln -sf ../sbin/dropbear $(IDIR_DROPBEAR)/usr/bin/dropbearkey
  48. $(INSTALL_DATA) ./files/dropbear.init \
  49. $(IDIR_DROPBEAR)/etc/init.d/dropbear
  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