blob: e8ae5c6b724a16003275a1ca7a4bf9c9a1c96c2d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Enables safe temporary file creation from shell scripts"
2HOMEPAGE = "http://www.mktemp.org/"
3BUGTRACKER = "http://www.mktemp.org/bugs"
4SECTION = "console/utils"
5LICENSE = "ISC"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
7
8PR = "r3"
9
10SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \
11 file://disable-strip.patch \
12 file://fix-parallel-make.patch \
13 "
14
15SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172"
16SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675"
17
18inherit autotools update-alternatives
19
20EXTRA_OECONF = "--with-libc"
21
22do_install_append () {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023 if [ "${base_bindir}" != "${bindir}" ] ; then
24 install -d ${D}${base_bindir}
25 mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp
26 rmdir ${D}${bindir}
27 fi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028}
29
30ALTERNATIVE_${PN} = "mktemp"
31ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032ALTERNATIVE_PRIORITY = "60"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
34ALTERNATIVE_${PN}-doc = "mktemp.1"
35ALTERNATIVE_PRIORITY_${PN}-doc = "300"
36ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1"