mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
8f2306ccba
Lower the priority of the standalone mktemp package, so that finally the mktemp command installed into SDK image is coreutils.mktemp. coreutils.mktemp is widely extended to support more feature, and could not break some existing scripts and common usecases. For example: at least three 'X's, and mktemp XXX.pdf(do not have to be the trailing character for 'X') (From OE-Core rev: 2ff6f2bb8a9987fa39ea42182d7a4404371707aa) Signed-off-by: Zhixiong Chi <Zhixiong.Chi@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1015 B
BlitzBasic
35 lines
1015 B
BlitzBasic
SUMMARY = "Enables safe temporary file creation from shell scripts"
|
|
HOMEPAGE = "http://www.mktemp.org/"
|
|
BUGTRACKER = "http://www.mktemp.org/bugs"
|
|
SECTION = "console/utils"
|
|
LICENSE = "ISC"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
|
|
|
|
PR = "r3"
|
|
|
|
SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \
|
|
file://disable-strip.patch \
|
|
file://fix-parallel-make.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172"
|
|
SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675"
|
|
|
|
inherit autotools update-alternatives
|
|
|
|
EXTRA_OECONF = "--with-libc"
|
|
|
|
do_install_append () {
|
|
install -d ${D}${base_bindir}
|
|
mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
|
|
rmdir ${D}${bindir}
|
|
}
|
|
|
|
ALTERNATIVE_${PN} = "mktemp"
|
|
ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
|
|
ALTERNATIVE_PRIORITY = "60"
|
|
|
|
ALTERNATIVE_${PN}-doc = "mktemp.1"
|
|
ALTERNATIVE_PRIORITY_${PN}-doc = "300"
|
|
ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1"
|