tinyproxy_1.11.1.bb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. SUMMARY = "Lightweight http(s) proxy daemon"
  2. HOMEPAGE = "https://tinyproxy.github.io/"
  3. LICENSE = "GPL-2.0-only"
  4. LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
  5. SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz \
  6. file://disable-documentation.patch \
  7. file://tinyproxy.service \
  8. file://tinyproxy.conf \
  9. file://CVE-2022-40468.patch \
  10. "
  11. SRC_URI[sha256sum] = "1574acf7ba83c703a89e98bb2758a4ed9fda456f092624b33cfcf0ce2d3b2047"
  12. UPSTREAM_CHECK_URI = "https://github.com/tinyproxy/tinyproxy/releases"
  13. EXTRA_OECONF += " \
  14. --enable-filter \
  15. --enable-transparent \
  16. --enable-reverse \
  17. --enable-upstream \
  18. --enable-xtinyproxy \
  19. "
  20. inherit autotools systemd useradd
  21. #User specific
  22. USERADD_PACKAGES = "${PN}"
  23. USERADD_PARAM:${PN} = "--system --home /dev/null \
  24. --no-user-group --gid nogroup tinyproxy"
  25. SYSTEMD_PACKAGES += "${BPN}"
  26. SYSTEMD_SERVICE:${PN} = "tinyproxy.service"
  27. SYSTEMD_AUTO_ENABLE:${PN} = "enable"
  28. do_install:append() {
  29. if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
  30. install -d ${D}${systemd_system_unitdir}
  31. install -m 0644 ${UNPACKDIR}/tinyproxy.service ${D}${systemd_system_unitdir}
  32. fi
  33. install -m 0644 ${UNPACKDIR}/tinyproxy.conf ${D}${sysconfdir}/tinyproxy.conf
  34. }