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 | 15 |
1 files changed, 13 insertions, 2 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 index fe1b0277a..1341d92fc 100644 --- a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb +++ b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb | |||
@@ -48,7 +48,8 @@ BASIC_AUTH = "DB SASL LDAP NIS" | |||
48 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 48 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
49 | BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" | 49 | BASIC_AUTH += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" |
50 | 50 | ||
51 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}'" | 51 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}' --sysconfdir=${sysconfdir}/${BPN} --with-logdir=${localstatedir}/log/${BPN}" |
52 | |||
52 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | 53 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" |
53 | 54 | ||
54 | TESTDIR = "test-suite" | 55 | TESTDIR = "test-suite" |
@@ -75,10 +76,20 @@ do_install_ptest() { | |||
75 | } | 76 | } |
76 | 77 | ||
77 | do_install_append() { | 78 | do_install_append() { |
79 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
80 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
81 | echo "d ${localstatedir}/run/${BPN} 0755 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | ||
82 | echo "d ${localstatedir}/log/${BPN} 0750 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf | ||
83 | fi | ||
84 | |||
78 | install -d ${D}${sysconfdir}/default/volatiles | 85 | install -d ${D}${sysconfdir}/default/volatiles |
79 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/volatiles.03_squid | 86 | install -m 0644 ${WORKDIR}/volatiles.03_squid ${D}${sysconfdir}/default/volatiles/03_squid |
87 | |||
80 | rmdir "${D}${localstatedir}/run/${BPN}" | 88 | rmdir "${D}${localstatedir}/run/${BPN}" |
81 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" | 89 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/run" |
90 | |||
91 | rmdir "${D}${localstatedir}/log/${BPN}" | ||
92 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}/log" | ||
82 | } | 93 | } |
83 | 94 | ||
84 | FILES_${PN} += "${libdir} ${datadir}/errors ${datadir}/icons" | 95 | FILES_${PN} += "${libdir} ${datadir}/errors ${datadir}/icons" |