diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2020-06-19 13:31:52 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-06-19 12:42:55 -0700 |
| commit | 63a4a5450063cbd7ffca27f8b3fa607609f1fe1a (patch) | |
| tree | 362ba19be30632db6483c481f1174ae53b3a66fd /meta-networking/recipes-daemons/squid/squid_4.9.bb | |
| parent | 1b2bb7da0939693090d0bfcdc5af99261f4fd4b3 (diff) | |
| download | meta-openembedded-63a4a5450063cbd7ffca27f8b3fa607609f1fe1a.tar.gz | |
squid: upgrade 4.9 -> 4.12
License checksum was changed by change of copyright year
Changes are found at [1-3]
[1] http://www.squid-cache.org/Versions/v4/changesets/SQUID_4_12.html
[2] http://www.squid-cache.org/Versions/v4/changesets/SQUID_4_11.html
[3] http://www.squid-cache.org/Versions/v4/changesets/SQUID_4_10.html
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/squid/squid_4.9.bb')
| -rw-r--r-- | meta-networking/recipes-daemons/squid/squid_4.9.bb | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/meta-networking/recipes-daemons/squid/squid_4.9.bb b/meta-networking/recipes-daemons/squid/squid_4.9.bb deleted file mode 100644 index 19949acd84..0000000000 --- a/meta-networking/recipes-daemons/squid/squid_4.9.bb +++ /dev/null | |||
| @@ -1,117 +0,0 @@ | |||
| 1 | SUMMARY = "A fully-featured http proxy and web-cache daemon for Linux" | ||
| 2 | DESCRIPTION = "A fully-featured http proxy and web-cache daemon for Linux. \ | ||
| 3 | Squid offers a rich access control, authorization and logging environment to \ | ||
| 4 | develop web proxy and content serving applications. \ | ||
| 5 | Squid offers a rich set of traffic optimization options, most of which are \ | ||
| 6 | enabled by default for simpler installation and high performance. \ | ||
| 7 | " | ||
| 8 | HOMEPAGE = "http://www.squid-cache.org" | ||
| 9 | SECTION = "web" | ||
| 10 | LICENSE = "GPLv2+" | ||
| 11 | |||
| 12 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 1)}" | ||
| 13 | MIN_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
| 14 | |||
| 15 | SRC_URI = "http://www.squid-cache.org/Versions/v${MAJ_VER}/${BPN}-${PV}.tar.bz2 \ | ||
| 16 | file://Set-up-for-cross-compilation.patch \ | ||
| 17 | file://Skip-AC_RUN_IFELSE-tests.patch \ | ||
| 18 | file://Fix-flawed-dynamic-ldb-link-test-in-configure.patch \ | ||
| 19 | file://squid-use-serial-tests-config-needed-by-ptest.patch \ | ||
| 20 | file://run-ptest \ | ||
| 21 | file://volatiles.03_squid \ | ||
| 22 | file://set_sysroot_patch.patch \ | ||
| 23 | file://squid-don-t-do-squid-conf-tests-at-build-time.patch \ | ||
| 24 | file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch \ | ||
| 25 | file://0001-tools.cc-fixed-unused-result-warning.patch \ | ||
| 26 | file://0001-splay.cc-fix-bind-is-not-a-member-of-std.patch \ | ||
| 27 | " | ||
| 28 | |||
| 29 | SRC_URI_remove_toolchain-clang = "file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch" | ||
| 30 | |||
| 31 | SRC_URI[md5sum] = "b315d0dce37627dfe61eec7f5304baaf" | ||
| 32 | SRC_URI[sha256sum] = "0f5829d878002147e7c4d9b8901c2c3c051693465e82e45cef9ab0e226e3e729" | ||
| 33 | |||
| 34 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 35 | file://errors/COPYRIGHT;md5=19cc4dd146f397e72f3ff6f9f58fbfbe \ | ||
| 36 | " | ||
| 37 | DEPENDS = "libtool krb5 openldap db cyrus-sasl" | ||
| 38 | |||
| 39 | inherit autotools pkgconfig useradd ptest perlnative | ||
| 40 | |||
| 41 | LDFLAGS_append_mipsarch = " -latomic" | ||
| 42 | LDFLAGS_append_powerpc = " -latomic" | ||
| 43 | LDFLAGS_append_riscv64 = " -latomic" | ||
| 44 | LDFLAGS_append_riscv32 = " -latomic" | ||
| 45 | |||
| 46 | USERADD_PACKAGES = "${PN}" | ||
| 47 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid" | ||
| 48 | |||
| 49 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \ | ||
| 50 | " | ||
| 51 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" | ||
| 52 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
| 53 | PACKAGECONFIG[werror] = "--enable-strict-error-checking,--disable-strict-error-checking," | ||
| 54 | PACKAGECONFIG[esi] = "--enable-esi,--disable-esi,expat libxml2" | ||
| 55 | PACKAGECONFIG[ssl] = "--with-openssl=yes,--with-openssl=no,openssl" | ||
| 56 | |||
| 57 | BASIC_AUTH = "DB SASL LDAP" | ||
| 58 | |||
| 59 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
| 60 | BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" | ||
| 61 | |||
| 62 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}' \ | ||
| 63 | --sysconfdir=${sysconfdir}/${BPN} \ | ||
| 64 | --with-logdir=${localstatedir}/log/${BPN} \ | ||
| 65 | 'PERL=${USRBINPATH}/env perl'" | ||
| 66 | |||
| 67 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | ||
| 68 | |||
| 69 | TESTDIR = "test-suite" | ||
| 70 | |||
| 71 | do_configure_prepend() { | ||
| 72 | export SYSROOT=$PKG_CONFIG_SYSROOT_DIR | ||
| 73 | } | ||
| 74 | |||
| 75 | do_compile_ptest() { | ||
| 76 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
| 77 | } | ||
| 78 | |||
| 79 | do_install_ptest() { | ||
| 80 | cp -rf ${B}/${TESTDIR} ${D}${PTEST_PATH} | ||
| 81 | cp -rf ${S}/${TESTDIR} ${D}${PTEST_PATH} | ||
| 82 | |||
| 83 | # do NOT need to rebuild Makefile itself | ||
| 84 | sed -i 's/^Makefile:.*$/Makefile:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 85 | |||
| 86 | # Add squid-conf-tests for runtime tests | ||
| 87 | sed -e 's/^\(runtest-TESTS:\)/\1 squid-conf-tests/' \ | ||
| 88 | -e "s/\(list=' \$(TESTS)\)/\1 squid-conf-tests/" \ | ||
| 89 | -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 90 | |||
| 91 | # Ensure the path for command true is correct | ||
| 92 | sed -i 's:^TRUE = .*$:TRUE = /bin/true:' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 93 | } | ||
| 94 | |||
| 95 | do_install_append() { | ||
| 96 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 97 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 98 | echo "d ${localstatedir}/run/${BPN} 0755 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | ||
| 99 | echo "d ${localstatedir}/log/${BPN} 0750 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | ||
| 100 | fi | ||
| 101 | |||
| 102 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 103 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/03_squid | ||
| 104 | |||
| 105 | rmdir "${D}${localstatedir}/run/${BPN}" | ||
| 106 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" | ||
| 107 | |||
| 108 | rmdir "${D}${localstatedir}/log/${BPN}" | ||
| 109 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/log" | ||
| 110 | } | ||
| 111 | |||
| 112 | FILES_${PN} += "${libdir} ${datadir}/errors ${datadir}/icons" | ||
| 113 | FILES_${PN}-dbg += "/usr/src/debug" | ||
| 114 | FILES_${PN}-doc += "${datadir}/*.txt" | ||
| 115 | |||
| 116 | RDEPENDS_${PN} += "perl" | ||
| 117 | RDEPENDS_${PN}-ptest += "make" | ||
