summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt
diff options
context:
space:
mode:
authorLinus Wallgren <linus.wallgren@scypho.com>2016-11-21 21:57:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-16 18:05:13 +0000
commit3f6504dc65747c00797b12d280088ebca0e5140d (patch)
tree62e8d2ee93a6ab936b01ccca859dd713d5e646ce /meta/recipes-devtools/apt
parente97422f400de0ed4a57c58be756cbaa512169919 (diff)
downloadpoky-3f6504dc65747c00797b12d280088ebca0e5140d.tar.gz
apt-package: Include maintenance scripts
Apt can run multiple tasks daily, such as for example clean, update, autoclean, unattended-upgrades etc. [YOCTO #10669] (From OE-Core rev: cde67af8ce9b8e72b5818233a7ef4c2aa181404a) Signed-off-by: Linus Wallgren <linus.wallgren@scypho.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/apt')
-rw-r--r--meta/recipes-devtools/apt/apt-package.inc15
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc
index 6e8cb84a5b..839d58e2f7 100644
--- a/meta/recipes-devtools/apt/apt-package.inc
+++ b/meta/recipes-devtools/apt/apt-package.inc
@@ -32,13 +32,19 @@ FILES_${PN} = "${bindir}/apt-cdrom ${bindir}/apt-get \
32 ${bindir}/apt-config ${bindir}/apt-cache \ 32 ${bindir}/apt-config ${bindir}/apt-cache \
33 ${libdir}/apt ${libdir}/libapt*.so.* \ 33 ${libdir}/apt ${libdir}/libapt*.so.* \
34 ${localstatedir} ${sysconfdir} \ 34 ${localstatedir} ${sysconfdir} \
35 ${libdir}/dpkg" 35 ${libdir}/dpkg \
36 ${systemd_unitdir}/system \
37 "
36FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates" 38FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates"
37FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages'))} \ 39FILES_${PN}-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-manpages'))} \
38 ${docdir}/apt" 40 ${docdir}/apt"
39FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages'))}" 41FILES_${PN}-utils-doc = "${@get_files_apt_doc(d, bb, d.getVar('apt-utils-manpages'))}"
40FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}" 42FILES_${PN}-dev = "${libdir}/libapt*.so ${includedir}"
41 43
44inherit systemd
45
46SYSTEMD_SERVICE_${PN} = "apt-daily.timer"
47
42do_install () { 48do_install () {
43 set -x 49 set -x
44 install -d ${D}${bindir} 50 install -d ${D}${bindir}
@@ -75,4 +81,11 @@ do_install () {
75 81
76 install -d ${D}${includedir}/apt-pkg/ 82 install -d ${D}${includedir}/apt-pkg/
77 install -m 0644 include/apt-pkg/*.h ${D}${includedir}/apt-pkg/ 83 install -m 0644 include/apt-pkg/*.h ${D}${includedir}/apt-pkg/
84
85 install -d ${D}${systemd_unitdir}/system/
86 install -m 0644 ${S}/debian/apt.systemd.daily ${D}/usr/lib/apt/
87 install -m 0644 ${S}/debian/apt-daily.service ${D}${systemd_unitdir}/system/
88 install -m 0644 ${S}/debian/apt-daily.timer ${D}${systemd_unitdir}/system/
89 install -d ${D}${sysconfdir}/cron.daily/
90 install -m 0755 ${S}/debian/apt.apt-compat.cron.daily ${D}${sysconfdir}/cron.daily/
78} 91}