aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt_1.2.31.bb
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-04-22 01:25:15 +0200
committerAndreas Oberritter <obi@opendreambox.org>2020-07-02 12:17:24 +0200
commita91dfae7c39e9a1105945aaed6536d6a7475e441 (patch)
treea42295e3e612893102362fb08daba769b158adee /meta/recipes-devtools/apt/apt_1.2.31.bb
parent9cb89469dafd495a7178c1cd750f6912bff7de7a (diff)
downloadopenembedded-core-contrib-a91dfae7c39e9a1105945aaed6536d6a7475e441.tar.gz
openembedded-core-contrib-a91dfae7c39e9a1105945aaed6536d6a7475e441.tar.bz2
openembedded-core-contrib-a91dfae7c39e9a1105945aaed6536d6a7475e441.zip
apt: rewrite do_install
Install missing files and directories (apt, apt-ftparchive, apt-helper, apt-mark, trusted.gpg.d). Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta/recipes-devtools/apt/apt_1.2.31.bb')
-rw-r--r--meta/recipes-devtools/apt/apt_1.2.31.bb73
1 files changed, 41 insertions, 32 deletions
diff --git a/meta/recipes-devtools/apt/apt_1.2.31.bb b/meta/recipes-devtools/apt/apt_1.2.31.bb
index 835dbf8e20..898b83e61e 100644
--- a/meta/recipes-devtools/apt/apt_1.2.31.bb
+++ b/meta/recipes-devtools/apt/apt_1.2.31.bb
@@ -5,48 +5,59 @@ require apt.inc
PACKAGES =+ "${PN}-utils"
FILES_${PN} += "${libdir}/dpkg ${systemd_system_unitdir}/apt-daily.service"
RDEPENDS_${PN} += "perl"
-FILES_${PN}-utils = "${bindir}/apt-sortpkgs ${bindir}/apt-extracttemplates"
+FILES_${PN}-utils = "${bindir}/apt-extracttemplates \
+ ${bindir}/apt-ftparchive \
+ ${bindir}/apt-sortpkgs"
+
+PROGRAMS = " \
+ apt apt-cache apt-cdrom apt-config apt-extracttemplates \
+ apt-ftparchive apt-get apt-key apt-mark apt-sortpkgs \
+"
inherit systemd
SYSTEMD_SERVICE_${PN} = "apt-daily.timer"
do_install () {
- set -x
install -d ${D}${bindir}
- install -m 0755 bin/apt-key ${D}${bindir}/
- install -m 0755 bin/apt-cdrom ${D}${bindir}/
- install -m 0755 bin/apt-get ${D}${bindir}/
- install -m 0755 bin/apt-config ${D}${bindir}/
- install -m 0755 bin/apt-cache ${D}${bindir}/
+ for f in ${PROGRAMS}; do
+ install -m 0755 bin/$f ${D}${bindir}
+ done
+
+ install -d ${D}${docdir}/apt/examples
+ install -m 0644 ${S}/doc/examples/* ${D}${docdir}/apt/examples
- install -m 0755 bin/apt-sortpkgs ${D}${bindir}/
- install -m 0755 bin/apt-extracttemplates ${D}${bindir}/
+ install -d ${D}${includedir}/apt-pkg
+ install -m 0644 include/apt-pkg/*.h ${D}${includedir}/apt-pkg
- oe_libinstall -so -C bin libapt-pkg ${D}${libdir}
- oe_libinstall -so -C bin libapt-inst ${D}${libdir}
+ install -d ${D}${libdir}
+ for f in inst pkg private; do
+ oe_libinstall -so -C bin libapt-$f ${D}${libdir}
+ done
+
+ install -d ${D}${libdir}/apt
+ install -m 0755 bin/apt-helper ${D}${libdir}/apt
install -d ${D}${libdir}/apt/methods
- install -m 0755 bin/methods/* ${D}${libdir}/apt/methods/
+ install -m 0755 bin/methods/* ${D}${libdir}/apt/methods
install -d ${D}${libdir}/dpkg/methods/apt
- install -m 0644 ${S}/dselect/desc.apt ${D}${libdir}/dpkg/methods/apt/
- install -m 0644 ${S}/dselect/names ${D}${libdir}/dpkg/methods/apt/
- install -m 0755 ${S}/dselect/install ${D}${libdir}/dpkg/methods/apt/
- install -m 0755 ${S}/dselect/setup ${D}${libdir}/dpkg/methods/apt/
- install -m 0755 ${S}/dselect/update ${D}${libdir}/dpkg/methods/apt/
-
- install -d ${D}${sysconfdir}/apt
- install -d ${D}${sysconfdir}/apt/apt.conf.d
- install -d ${D}${sysconfdir}/apt/sources.list.d
- install -d ${D}${sysconfdir}/apt/preferences.d
- install -d ${D}${localstatedir}/lib/apt/lists/partial
- install -d ${D}${localstatedir}/cache/apt/archives/partial
- install -d ${D}${docdir}/apt/examples
- install -m 0644 ${S}/doc/examples/* ${D}${docdir}/apt/examples/
+ for f in desc.apt names; do
+ install -m 0644 ${S}/dselect/$f ${D}${libdir}/dpkg/methods/apt
+ done
+ for f in install setup update; do
+ install -m 0755 ${S}/dselect/$f ${D}${libdir}/dpkg/methods/apt
+ done
+
+ for d in apt.conf.d preferences.d sources.list.d trusted.gpg.d; do
+ install -d ${D}${sysconfdir}/apt/$d
+ done
- install -d ${D}${includedir}/apt-pkg/
- install -m 0644 include/apt-pkg/*.h ${D}${includedir}/apt-pkg/
+ install -d ${D}${localstatedir}/cache/apt/archives/partial
+ install -d ${D}${localstatedir}/lib/apt/lists/partial
+ install -d ${D}${localstatedir}/lib/apt/mirrors/partial
+ install -d ${D}${localstatedir}/lib/apt/periodic
+ install -d ${D}${localstatedir}/log/apt
install -d ${D}${systemd_unitdir}/system/
install -m 0755 ${S}/debian/apt.systemd.daily ${D}${libdir}/apt/
@@ -63,9 +74,7 @@ PACKAGECONFIG[lzma] = "ac_cv_lib_lzma_lzma_easy_encoder=yes,ac_cv_lib_lzma_lzma_
PACKAGECONFIG[bz2] = "ac_cv_lib_bz2_BZ2_bzopen=yes,ac_cv_lib_bz2_BZ2_bzopen=no,bzip2"
PACKAGECONFIG[lz4] = "ac_cv_lib_lz4_LZ4F_createCompressionContext=yes,ac_cv_lib_lz4_LZ4F_createCompressionContext=no,lz4"
-do_install_append() {
+do_install_append_class-target() {
#Write the correct apt-architecture to apt.conf
- APT_CONF=${D}/etc/apt/apt.conf
- echo 'APT::Architecture "${DPKG_ARCH}";' > ${APT_CONF}
- oe_libinstall -so -C bin libapt-private ${D}${libdir}/
+ echo 'APT::Architecture "${DPKG_ARCH}";' > ${D}${sysconfdir}/apt/apt.conf
}