1
0

Makefile 1.7 KB

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