diff options
Diffstat (limited to 'meta-networking/recipes-daemons/squid/squid_3.5.20.bb')
| -rw-r--r-- | meta-networking/recipes-daemons/squid/squid_3.5.20.bb | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb new file mode 100644 index 0000000000..f26aebe2f8 --- /dev/null +++ b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb | |||
| @@ -0,0 +1,75 @@ | |||
| 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}/${MIN_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 | " | ||
| 23 | |||
| 24 | LIC_FILES_CHKSUM = "file://COPYING;md5=c492e2d6d32ec5c1aad0e0609a141ce9 \ | ||
| 25 | file://errors/COPYRIGHT;md5=0d98c4448c368d146f31a970bb0ced21 \ | ||
| 26 | " | ||
| 27 | SRC_URI[md5sum] = "6a29d7dfc544205001f7a75c6996dc60" | ||
| 28 | SRC_URI[sha256sum] = "5a114f8f7f44b5ae3c9b77d7b81aef13fe69e7f530855213d551f48b157cb5f1" | ||
| 29 | |||
| 30 | DEPENDS = "libtool krb5 openldap db cyrus-sasl" | ||
| 31 | |||
| 32 | inherit autotools useradd ptest | ||
| 33 | |||
| 34 | USERADD_PACKAGES = "${PN}" | ||
| 35 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid" | ||
| 36 | |||
| 37 | PACKAGECONFIG ??= "${@bb.utils.contains('TARGET_ARCH', 'powerpc', 'noatomics', '', d)} \ | ||
| 38 | ${@bb.utils.contains('TARGET_ARCH', 'mips', 'noatomics', '', d)} \ | ||
| 39 | " | ||
| 40 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" | ||
| 41 | PACKAGECONFIG[noatomics] = "squid_cv_gnu_atomics=no,squid_cv_gnu_atomics=yes,," | ||
| 42 | |||
| 43 | BASIC_AUTH = "DB SASL LDAP NIS" | ||
| 44 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
| 45 | BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" | ||
| 46 | |||
| 47 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}'" | ||
| 48 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | ||
| 49 | |||
| 50 | TESTDIR = "test-suite" | ||
| 51 | do_compile_ptest() { | ||
| 52 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
| 53 | } | ||
| 54 | |||
| 55 | do_install_ptest() { | ||
| 56 | cp -rf ${B}/${TESTDIR} ${D}${PTEST_PATH} | ||
| 57 | cp -rf ${S}/${TESTDIR} ${D}${PTEST_PATH} | ||
| 58 | |||
| 59 | # do NOT need to rebuild Makefile itself | ||
| 60 | sed -i 's/^Makefile:.*$/Makefile:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
| 61 | } | ||
| 62 | |||
| 63 | do_install_append() { | ||
| 64 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 65 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/volatiles.03_squid | ||
| 66 | rmdir "${D}${localstatedir}/run/${BPN}" | ||
| 67 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" | ||
| 68 | } | ||
| 69 | |||
| 70 | FILES_${PN} += "${libdir} ${datadir}/errors ${datadir}/icons" | ||
| 71 | FILES_${PN}-dbg += "/usr/src/debug" | ||
| 72 | FILES_${PN}-doc += "${datadir}/*.txt" | ||
| 73 | |||
| 74 | RDEPENDS_${PN} += "perl" | ||
| 75 | RDEPENDS_${PN}-ptest += "make" | ||
