Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= net
  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_STYLE:= gnu
  15. BUILD_STYLE:= auto
  16. INSTALL_STYLE:= auto
  17. CONFIGURE_ENV+= ac_cv_header_libintl_h=no \
  18. ac_cv_lib_nsl_gethostbyaddr=no \
  19. ac_cv_lib_nsl_gethostname=no
  20. ifeq (${ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY},y)
  21. CONFIGURE_ARGS+= --enable-transparent-proxy
  22. endif
  23. ifneq (${ADK_COMPILE_TINYPROXY_WITH_UPSTREAM},y)
  24. CONFIGURE_ARGS+= --disable-upstream
  25. endif
  26. ifneq (${ADK_COMPILE_TINYPROXY_WITH_FILTER},y)
  27. CONFIGURE_ARGS+= --disable-filter
  28. endif
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_TINYPROXY}/usr/sbin \
  31. ${IDIR_TINYPROXY}/etc/tinyproxy \
  32. ${IDIR_TINYPROXY}/usr/share/tinyproxy
  33. ${INSTALL_DATA} ./files/tinyproxy.conf ${IDIR_TINYPROXY}/etc/tinyproxy
  34. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tinyproxy ${IDIR_TINYPROXY}/usr/sbin/
  35. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/{debug,default,stats}.html ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  36. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/HTML_VARIABLES ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  37. include ${TOPDIR}/mk/pkg-bottom.mk