Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= wifidog
  5. PKG_VERSION:= 1.1.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= abe5f7123179a0f08c493ce59fb3cb31
  8. PKG_DESCR:= a complete and embeddable captive portal
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= iptables
  11. PKG_URL:= http://dev.wifidog.org
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,WIFIDOG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIGURE_STYLE:= gnu
  16. CONFIGURE_ENV+= ac_cv_func_memcmp_working=yes \
  17. ac_cv_lib_nsl_main=no \
  18. ac_cv_func_setvbuf_reversed=no
  19. BUILD_STYLE+= auto
  20. INSTALL_STYLE:= auto
  21. post-install:
  22. ${INSTALL_DIR} ${IDIR_WIFIDOG}/usr/{bin,lib} ${IDIR_WIFIDOG}/etc
  23. ${INSTALL_DATA} ./files/wifidog.conf ${IDIR_WIFIDOG}/etc/
  24. ${INSTALL_BIN} ${WRKBUILD}/scripts/init.d/wifidog ${IDIR_WIFIDOG}/usr/bin/wifidog-init
  25. ${INSTALL_BIN} ${WRKINST}/usr/bin/wifidog \
  26. ${WRKINST}/usr/bin/wdctl ${IDIR_WIFIDOG}/usr/bin/
  27. ${CP} ${WRKINST}/usr/lib/libhttpd.so* ${IDIR_WIFIDOG}/usr/lib/
  28. include ${TOPDIR}/mk/pkg-bottom.mk