Makefile 3.6 KB

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