Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= 2.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ba22e639bc57aa4035d2ea8ffa9bbbee
  8. PKG_DESCR:= 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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_SUBPKGS:= HOSTAPD HOSTAPD_UTILS
  17. PKG_CHOICES_HOSTAPD:= WITH_GNUTLS WITH_OPENSSL
  18. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  19. PKGCS_WITH_OPENSSL:= libopenssl
  20. PKGCB_WITH_OPENSSL:= openssl
  21. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  22. PKGCS_WITH_GNUTLS:= libgnutls
  23. PKGCB_WITH_GNUTLS:= gnutls
  24. WRKSRC= ${WRKDIST}/${PKG_NAME}
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,HOSTAPD,hostapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,HOSTAPD_UTILS,hostapd-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. CONFIG_STYLE:= manual
  29. INSTALL_STYLE:= manual
  30. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
  31. do-configure:
  32. ${CP} ./files/hostapd.config ${WRKBUILD}/.config
  33. ifneq (${ADK_PACKAGE_HOSTAPD_WITH_GNUTLS},)
  34. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  35. endif
  36. do-install:
  37. ${INSTALL_DIR} ${IDIR_HOSTAPD_UTILS}/usr/sbin
  38. ${INSTALL_BIN} ${WRKBUILD}/hostapd_cli ${IDIR_HOSTAPD_UTILS}/usr/sbin/
  39. ${INSTALL_DIR} ${IDIR_HOSTAPD}/etc
  40. ${INSTALL_DIR} ${IDIR_HOSTAPD}/usr/sbin
  41. ${INSTALL_BIN} ${WRKBUILD}/hostapd ${IDIR_HOSTAPD}/usr/sbin/
  42. ${INSTALL_DATA} ./files/hostapd.conf ${IDIR_HOSTAPD}/etc
  43. include ${TOPDIR}/mk/pkg-bottom.mk