Makefile 1.7 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= hostapd
  5. PKG_VERSION:= 2.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ba22e639bc57aa4035d2ea8ffa9bbbee
  8. PKG_DESCR:= wireless authenticator
  9. PKG_SECTION:= net/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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  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. PKGSN_HOSTAPD_UTILS:= hostapd
  24. WRKSRC= ${WRKDIST}/${PKG_NAME}
  25. include ${ADK_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 ${ADK_TOPDIR}/mk/pkg-bottom.mk