Makefile 3.6 KB

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