diff options
Diffstat (limited to 'meta-networking/recipes-daemons/squid/squid_3.4.7.bb')
-rw-r--r-- | meta-networking/recipes-daemons/squid/squid_3.4.7.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/squid_3.4.7.bb b/meta-networking/recipes-daemons/squid/squid_3.4.7.bb new file mode 100644 index 000000000..cd10bd042 --- /dev/null +++ b/meta-networking/recipes-daemons/squid/squid_3.4.7.bb | |||
@@ -0,0 +1,66 @@ | |||
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 = "network" | ||
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://Change-ksh-reference-in-krb-ldap-helper-to-bash.patch \ | ||
20 | file://squid-use-serial-tests-config-needed-by-ptest.patch \ | ||
21 | file://run-ptest \ | ||
22 | file://volatiles.03_squid \ | ||
23 | " | ||
24 | |||
25 | LIC_FILES_CHKSUM = "file://COPYING;md5=c492e2d6d32ec5c1aad0e0609a141ce9 \ | ||
26 | file://COPYRIGHT;md5=2900f50789c498be8e9f1eb23b55cbe9 \ | ||
27 | " | ||
28 | SRC_URI[md5sum] = "9951034b10f7ee0f45a95cfae61c57c2" | ||
29 | SRC_URI[sha256sum] = "7b423f3d3495a317503ca559ea535f80445fd7c4e3c3e268cb7a8c97c61af2b6" | ||
30 | |||
31 | DEPENDS = "libtool krb5 openldap db cyrus-sasl" | ||
32 | |||
33 | inherit autotools useradd ptest | ||
34 | |||
35 | USERADD_PACKAGES = "${PN}" | ||
36 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid" | ||
37 | |||
38 | PACKAGECONFIG ??= "" | ||
39 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" | ||
40 | EXTRA_OECONF += "--with-default-user=squid" | ||
41 | |||
42 | TESTDIR = "test-suite" | ||
43 | do_compile_ptest() { | ||
44 | oe_runmake -C ${TESTDIR} buildtest-TESTS | ||
45 | } | ||
46 | |||
47 | do_install_ptest() { | ||
48 | cp -rf ${B}/${TESTDIR} ${D}${PTEST_PATH} | ||
49 | cp -rf ${S}/${TESTDIR} ${D}${PTEST_PATH} | ||
50 | |||
51 | # do NOT need to rebuild Makefile itself | ||
52 | sed -i 's/^Makefile:.*$/Makefile:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
53 | } | ||
54 | |||
55 | do_install_append() { | ||
56 | install -d ${D}${sysconfdir}/default/volatiles | ||
57 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/volatiles.03_squid | ||
58 | rmdir "${D}${localstatedir}/run/${BPN}" | ||
59 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" | ||
60 | } | ||
61 | |||
62 | FILES_${PN} += "${libdir} ${datadir}/errors ${datadir}/icons" | ||
63 | FILES_${PN}-dbg += "/usr/src/debug" | ||
64 | FILES_${PN}-doc += "${datadir}/*.txt" | ||
65 | |||
66 | RDEPENDS_${PN}-ptest += "make" | ||