Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 libpthread
  11. PKG_BUILDDEP+= zlib openssl
  12. ifeq (${ADK_COMPILE_OPENSSH_WITH_KRB5},y)
  13. PKG_DEPENDS+= libkrb5 libcom-err
  14. PKG_BUILDDEP+= krb5
  15. endif
  16. ifeq (${ADK_COMPILE_OPENSSH_WITH_HEIMDAL},y)
  17. PKG_DEPENDS+= libheimdal 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_ENV+= LD='${TARGET_CC}' \
  41. ac_cv_func_setlogin=no \
  42. ac_cv_lib_nsl_yp_match=no
  43. CONFIGURE_ARGS+= --disable-strip \
  44. --disable-etc-default-login \
  45. --disable-lastlog \
  46. --disable-utmp \
  47. --disable-utmpx \
  48. --disable-wtmp \
  49. --disable-wtmpx \
  50. --without-bsd-auth \
  51. --without-pam \
  52. --without-x \
  53. --without-zlib-version-check \
  54. --sysconfdir=/etc/ssh \
  55. --with-privsep-user=sshd \
  56. --with-privsep-path=/var/run/sshd \
  57. --with-ssl-dir="${STAGING_DIR}/usr"
  58. post-install:
  59. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/etc/ssh
  60. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/usr/bin
  61. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/usr/sbin
  62. ${INSTALL_DIR} ${IDIR_OPENSSH_SERVER}/usr/libexec
  63. ${CP} ./files/sshd_config ${IDIR_OPENSSH_SERVER}/etc/ssh
  64. ${INSTALL_BIN} ${WRKINST}/usr/bin/ssh-keygen \
  65. ${IDIR_OPENSSH_SERVER}/usr/bin
  66. ${INSTALL_BIN} ${WRKINST}/usr/sbin/sshd \
  67. ${IDIR_OPENSSH_SERVER}/usr/sbin
  68. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT}/etc/ssh
  69. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT}/usr/bin
  70. ${INSTALL_DATA} ${WRKINST}/etc/ssh/ssh_config \
  71. ${IDIR_OPENSSH_CLIENT}/etc/ssh
  72. ${INSTALL_BIN} ${WRKINST}/usr/bin/{ssh,scp} \
  73. ${IDIR_OPENSSH_CLIENT}/usr/bin
  74. ${INSTALL_DIR} ${IDIR_OPENSSH_CLIENT_UTILS}/usr/bin
  75. ${INSTALL_BIN} ${WRKINST}/usr/bin/ssh-{add,agent,keyscan} \
  76. ${IDIR_OPENSSH_CLIENT_UTILS}/usr/bin
  77. ${INSTALL_DIR} ${IDIR_OPENSSH_SFTP_CLIENT}/usr/bin
  78. ${INSTALL_DIR} ${IDIR_OPENSSH_SFTP_SERVER}/usr/sbin
  79. ${INSTALL_BIN} ${WRKINST}/usr/bin/sftp \
  80. ${IDIR_OPENSSH_SFTP_CLIENT}/usr/bin
  81. ${INSTALL_BIN} ${WRKINST}/usr/libexec/sftp-server \
  82. ${IDIR_OPENSSH_SFTP_SERVER}/usr/libexec
  83. chmod 0700 {${IDIR_OPENSSH_CLIENT},${IDIR_OPENSSH_SERVER}}/etc/ssh
  84. include ${TOPDIR}/mk/pkg-bottom.mk