Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3157b9159a8d005f4248cf4d4d6c65e2
  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. ifeq (${ADK_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY},y)
  19. CONFIGURE_ARGS+= --enable-transparent-proxy
  20. endif
  21. ifneq (${ADK_COMPILE_TINYPROXY_WITH_UPSTREAM},y)
  22. CONFIGURE_ARGS+= --disable-upstream
  23. endif
  24. ifneq (${ADK_COMPILE_TINYPROXY_WITH_FILTER},y)
  25. CONFIGURE_ARGS+= --disable-filter
  26. endif
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_TINYPROXY}/usr/sbin \
  29. ${IDIR_TINYPROXY}/etc/tinyproxy \
  30. ${IDIR_TINYPROXY}/usr/share/tinyproxy
  31. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tinyproxy ${IDIR_TINYPROXY}/usr/sbin/
  32. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/{debug,default,stats}.html ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  33. ${INSTALL_DATA} ${WRKINST}/usr/share/tinyproxy/HTML_VARIABLES ${IDIR_TINYPROXY}/usr/share/tinyproxy/
  34. ${INSTALL_DATA} ${WRKINST}/etc/tinyproxy/tinyproxy.conf ${IDIR_TINYPROXY}/etc/tinyproxy/
  35. include ${TOPDIR}/mk/pkg-bottom.mk