Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:= 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_GNUTLS WITH_OPENSSL
  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. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/libnl3
  30. do-configure:
  31. ${CP} ./files/hostapd.config ${WRKBUILD}/.config
  32. ifneq (${ADK_PACKAGE_HOSTAPD_WITH_GNUTLS},)
  33. ${SED} "s#openssl#gnutls#" ${WRKBUILD}/.config
  34. endif
  35. do-install:
  36. ${INSTALL_DIR} ${IDIR_HOSTAPD_UTILS}/usr/sbin
  37. ${INSTALL_BIN} ${WRKBUILD}/hostapd_cli ${IDIR_HOSTAPD_UTILS}/usr/sbin/
  38. ${INSTALL_DIR} ${IDIR_HOSTAPD}/etc
  39. ${INSTALL_DIR} ${IDIR_HOSTAPD}/usr/sbin
  40. ${INSTALL_BIN} ${WRKBUILD}/hostapd ${IDIR_HOSTAPD}/usr/sbin/
  41. ${INSTALL_DATA} ./files/hostapd.conf ${IDIR_HOSTAPD}/etc
  42. include ${TOPDIR}/mk/pkg-bottom.mk