Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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:= openssh
  5. PKG_VERSION:= 5.2p1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= ada79c7328a8551bdf55c95e631e7dad
  8. PKG_DESCR:= OpenSSH server
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= zlib libopenssl
  11. PKG_URL:= http://www.openssh.com
  12. PKG_SITES:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
  13. ftp://openbsd.wiretapped.net/pub/OpenBSD/OpenSSH/portable/ \
  14. ftp://ftp.belnet.be/packages/openbsd/OpenSSH/portable/ \
  15. ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/
  16. PKG_DESCR_1:= OpenSSH client
  17. PKG_DESCR_2:= OpenSSH client utilities
  18. PKG_DESCR_3:= OpenSSH sftp client
  19. PKG_DESCR_4:= OpenSSH sftp server
  20. include ${TOPDIR}/mk/package.mk
  21. ifeq ($(ADK_COMPILE_OPENSSH_WITH_KERBEROS),y)
  22. PKG_DEPENDS+= heimdal-libs
  23. endif
  24. $(eval $(call PKG_template,OPENSSH_SERVER,openssh-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,OPENSSH_CLIENT,openssh-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  26. $(eval $(call PKG_template,OPENSSH_CLIENT_UTILS,openssh-client-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION}))
  27. $(eval $(call PKG_template,OPENSSH_SFTP_CLIENT,openssh-sftp-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION}))
  28. $(eval $(call PKG_template,OPENSSH_SFTP_SERVER,openssh-sftp-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_4},${PKG_SECTION}))
  29. ifeq ($(ADK_COMPILE_OPENSSH_WITH_KERBEROS),y)
  30. CONFIGURE_ARGS+= --with-kerberos5="${STAGING_DIR}/usr"
  31. else
  32. CONFIGURE_ARGS+= --without-kerberos5
  33. endif
  34. CONFIGURE_STYLE:= gnu
  35. CONFIGURE_ENV+= LD='${TARGET_CC}' \
  36. ac_cv_func_setlogin=no \
  37. ac_cv_lib_nsl_yp_match=no
  38. CONFIGURE_ARGS+= --disable-strip \
  39. --disable-etc-default-login \
  40. --disable-lastlog \
  41. --disable-utmp \
  42. --disable-utmpx \
  43. --disable-wtmp \
  44. --disable-wtmpx \
  45. --without-bsd-auth \
  46. --without-pam \
  47. --without-x \
  48. --without-zlib-version-check \
  49. --sysconfdir=/etc/ssh \
  50. --with-privsep-user=sshd \
  51. --with-privsep-path=/var/run/sshd \
  52. --with-ssl-dir="${STAGING_DIR}/usr"
  53. BUILD_STYLE:= auto
  54. INSTALL_STYLE:= auto
  55. post-install:
  56. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/etc/ssh
  57. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/usr/bin
  58. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/usr/sbin
  59. ${CP} ./files/sshd_config ${IDIR_OPENSSH_SERVER}/etc/ssh
  60. ${INSTALL_BIN} ${WRKINST}/usr/bin/ssh-keygen \
  61. ${IDIR_OPENSSH_SERVER}/usr/bin
  62. ${INSTALL_BIN} ${WRKINST}/usr/sbin/sshd \
  63. ${IDIR_OPENSSH_SERVER}/usr/sbin
  64. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT}/etc/ssh
  65. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT}/usr/bin
  66. ${INSTALL_DATA} ${WRKINST}/etc/ssh/ssh_config \
  67. ${IDIR_OPENSSH_CLIENT}/etc/ssh
  68. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ssh,scp} \
  69. ${IDIR_OPENSSH_CLIENT}/usr/bin
  70. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT_UTILS}/usr/bin
  71. ${INSTALL_BIN} ${WRKINST}/usr/bin/ssh-{add,agent,keyscan} \
  72. ${IDIR_OPENSSH_CLIENT_UTILS}/usr/bin
  73. ${INSTALL_DIR} ${IDIR_OPENSSH_SFTP_CLIENT}/usr/bin
  74. ${INSTALL_DIR} ${IDIR_OPENSSH_SFTP_SERVER}/usr/sbin
  75. ${INSTALL_BIN} ${WRKINST}/usr/bin/sftp \
  76. ${IDIR_OPENSSH_SFTP_CLIENT}/usr/bin
  77. ${INSTALL_BIN} ${WRKINST}/usr/sbin/sftp-server \
  78. ${IDIR_OPENSSH_SFTP_SERVER}/usr/sbin
  79. chmod 0700 {${IDIR_OPENSSH_CLIENT},${IDIR_OPENSSH_SERVER}}/etc/ssh
  80. include ${TOPDIR}/mk/pkg-bottom.mk