Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= hostapd
  5. PKG_VERSION:= 0.7.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 91a7c8d0f090b7104152d3455a84c112
  8. PKG_DESCR:= an IEEE 802.11 AP, IEEE 802.1x/WPA/WPA2/EAP/RADIUS Authenticator
  9. PKG_SECTION:= wifi
  10. PKG_DEPENDS:= libnl
  11. PKG_BUILDDEP:= libnl
  12. PKG_URL:= http://hostap.epitest.fi/
  13. PKG_SITES:= http://hostap.epitest.fi/releases/
  14. PKG_MULTI:= 1
  15. PKG_SUBPKGS:= HOSTAPD HOSTAPD_UTILS
  16. PKG_CHOICES_HOSTAPD:= WITH_OPENSSL WITH_GNUTLS
  17. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  18. PKGCS_WITH_OPENSSL:= libopenssl
  19. PKGCB_WITH_OPENSSL:= openssl
  20. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  21. PKGCS_WITH_GNUTLS:= libgnutls
  22. PKGCB_WITH_GNUTLS:= gnutls
  23. WRKSRC= ${WRKDIST}/${PKG_NAME}
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,HOSTAPD,hostapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,HOSTAPD_UTILS,hostapd-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. CONFIG_STYLE:= manual
  28. INSTALL_STYLE:= manual
  29. do-configure:
  30. ${CP} ./files/hostapd.config ${WRKBUILD}/.config
  31. ifneq (${ADK_PACKAGE_HOSTAPD_WITH_GNUTLS},)
  32. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  33. endif
  34. do-install:
  35. ${INSTALL_DIR} ${IDIR_HOSTAPD_UTILS}/usr/sbin
  36. ${INSTALL_BIN} ${WRKBUILD}/hostapd_cli ${IDIR_HOSTAPD_UTILS}/usr/sbin/
  37. ${INSTALL_DIR} ${IDIR_HOSTAPD}/etc
  38. ${INSTALL_DIR} ${IDIR_HOSTAPD}/usr/sbin
  39. ${INSTALL_BIN} ${WRKBUILD}/hostapd ${IDIR_HOSTAPD}/usr/sbin/
  40. ${INSTALL_DATA} ./files/hostapd.conf ${IDIR_HOSTAPD}/etc
  41. include ${TOPDIR}/mk/pkg-bottom.mk