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 () { |
| 23 | install -d ${D}${base_bindir} |
| 24 | mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp |
| 25 | rmdir ${D}${bindir} |
| 26 | } |
| 27 | |
| 28 | ALTERNATIVE_${PN} = "mktemp" |
| 29 | ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 30 | ALTERNATIVE_PRIORITY = "60" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
| 32 | ALTERNATIVE_${PN}-doc = "mktemp.1" |
| 33 | ALTERNATIVE_PRIORITY_${PN}-doc = "300" |
| 34 | ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1" |