Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Enables safe temporary file creation from shell scripts" |
| 2 | HOMEPAGE = "http://www.mktemp.org/" |
| 3 | BUGTRACKER = "http://www.mktemp.org/bugs" |
| 4 | SECTION = "console/utils" |
| 5 | LICENSE = "ISC" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4" |
| 7 | |
| 8 | PR = "r3" |
| 9 | |
| 10 | SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \ |
| 11 | file://disable-strip.patch \ |
| 12 | file://fix-parallel-make.patch \ |
| 13 | " |
| 14 | |
| 15 | SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172" |
| 16 | SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675" |
| 17 | |
| 18 | inherit autotools update-alternatives |
| 19 | |
| 20 | EXTRA_OECONF = "--with-libc" |
| 21 | |
| 22 | do_install_append () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | ALTERNATIVE_${PN} = "mktemp" |
| 31 | ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 32 | ALTERNATIVE_PRIORITY = "60" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | |
| 34 | ALTERNATIVE_${PN}-doc = "mktemp.1" |
| 35 | ALTERNATIVE_PRIORITY_${PN}-doc = "300" |
| 36 | ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1" |