meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb

47 lines
1.4 KiB
BlitzBasic
Raw Normal View History

DESCRIPTION = "Common CA certificates"
HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
SECTION = "misc"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=6135800ff6d893c7904d7aad90972eb5"
SRC_URI = "https://launchpad.net/ubuntu/+archive/primary/+files/ca-certificates_${PV}.tar.gz \
file://0001-update-ca-certificates-remove-c-rehash.patch"
SRC_URI[md5sum] = "5105d4cc086f0d4ecf7bf2e4c4667289"
SRC_URI[sha256sum] = "878cd1130ba056fe5f96decde7e5fc1b71d35eb8565a1515744912e100731ee9"
ca-certificates: Fix build and lower default preference This is a late fall-out of the priority changes done by Henning. This recipe is not using autotools and doesn't support src != build dir builds. So let's not use the autotools class but simply invoke install ourselves. Let's lower the default preference so the recipe from yocto master is picked as well. ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890 Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'common-linux', 'common-glibc', 'allarch-linux', 'common'] | DEBUG: Executing shell function do_install | NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/image install | make: *** No rule to make target `install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/run.do_install.16890:1 exit 1 from | exit 1 | ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) NOTE: recipe ca-certificates-20120623-r0: task do_install: Failed ERROR: Task 3639 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb, do_install) failed with exit code '1'
2015-02-16 07:30:02 +00:00
inherit allarch
do_install_prepend() {
mkdir -p ${D}/usr/share/ca-certificates
mkdir -p ${D}/usr/sbin
mkdir -p ${D}/etc/ssl/certs
mkdir -p ${D}/etc/ca-certificates/update.d
ca-certificates: Fix build and lower default preference This is a late fall-out of the priority changes done by Henning. This recipe is not using autotools and doesn't support src != build dir builds. So let's not use the autotools class but simply invoke install ourselves. Let's lower the default preference so the recipe from yocto master is picked as well. ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890 Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'common-linux', 'common-glibc', 'allarch-linux', 'common'] | DEBUG: Executing shell function do_install | NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/image install | make: *** No rule to make target `install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/run.do_install.16890:1 exit 1 from | exit 1 | ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) NOTE: recipe ca-certificates-20120623-r0: task do_install: Failed ERROR: Task 3639 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb, do_install) failed with exit code '1'
2015-02-16 07:30:02 +00:00
oe_runmake 'DESTDIR=${D}' install
}
do_install_append() {
cd ${D}/usr/share/ca-certificates
echo "# Lines starting with # will be ignored" > ${D}/etc/ca-certificates.conf
echo "# Lines starting with ! will remove certificate on next update" >> ${D}/etc/ca-certificates.conf
echo "#" >> ${D}/etc/ca-certificates.conf
for crt in $(find . -type f -name '*.crt' -print)
do
crt=$(echo $crt | sed -e 's/\.\///')
echo $crt >> ${D}/etc/ca-certificates.conf
done
}
pkg_postinst_${PN} () {
if [ -n "$D" ] ; then
exit 1
fi
${sbindir}/update-ca-certificates
}
CONFFILES_${PN} = "/etc/ca-certificates.conf"
ca-certificates: Fix build and lower default preference This is a late fall-out of the priority changes done by Henning. This recipe is not using autotools and doesn't support src != build dir builds. So let's not use the autotools class but simply invoke install ourselves. Let's lower the default preference so the recipe from yocto master is picked as well. ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) ERROR: Logfile of failure stored in: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890 Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'common-linux', 'common-glibc', 'allarch-linux', 'common'] | DEBUG: Executing shell function do_install | NOTE: make -j 2 DESTDIR=/home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/image install | make: *** No rule to make target `install'. Stop. | ERROR: oe_runmake failed | WARNING: /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/run.do_install.16890:1 exit 1 from | exit 1 | ERROR: Function failed: do_install (log file is located at /home/builder/jenkins/workspace/Yocto-Master/label/OE/build/tmp/work/all-poky-linux/ca-certificates/20120623-r0/temp/log.do_install.16890) NOTE: recipe ca-certificates-20120623-r0: task do_install: Failed ERROR: Task 3639 (/home/builder/jenkins/workspace/Yocto-Master/label/OE/meta-sysmocom-bsp/recipes-extra/ca-certificates/ca-certificates_20120623.bb, do_install) failed with exit code '1'
2015-02-16 07:30:02 +00:00
DEFAULT_PREFERENCE = "-1"