Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= tinyproxy
  5. PKG_VERSION:= 1.6.5
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2b2862ba33d2939e4572688d442ba415
  8. PKG_DESCR:= Tinyproxy is a lightweight HTTP and HTTPS proxy.
  9. PKG_SECTION:= proxy
  10. PKG_URL:= https://www.banu.com/tinyproxy/
  11. PKG_SITES:= https://www.banu.com/pub/tinyproxy/1.6/
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,TINYPROXY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIGURE_ENV+= ac_cv_header_libintl_h=no \
  15. ac_cv_lib_nsl_gethostbyaddr=no \
  16. ac_cv_lib_nsl_gethostname=no
  17. ifeq (${ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY},y)
  18. CONFIGURE_ARGS+= --enable-transparent-proxy
  19. endif
  20. ifneq (${ADK_COMPILE_TINYPROXY_WITH_UPSTREAM},y)
  21. CONFIGURE_ARGS+= --disable-upstream
  22. endif
  23. ifneq (${ADK_COMPILE_TINYPROXY_WITH_FILTER},y)
  24. CONFIGURE_ARGS+= --disable-filter
  25. endif
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_TINYPROXY}/usr/sbin \
  28. ${IDIR_TINYPROXY}/etc/tinyproxy \
  29. ${IDIR_TINYPROXY}/usr/share/tinyproxy
  30. ${INSTALL_DATA} ./files/tinyproxy.conf \
  31. ${IDIR_TINYPROXY}/etc/tinyproxy
  32. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tinyproxy \
  33. ${IDIR_TINYPROXY}/usr/sbin/
  34. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/debug.html \
  35. ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  36. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/default.html \
  37. ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  38. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/stats.html \
  39. ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  40. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/HTML_VARIABLES \
  41. ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  42. include ${TOPDIR}/mk/pkg-bottom.mk