summaryrefslogtreecommitdiff
path: root/recipes/mktemp/mktemp_1.6.bb
blob: 33c1cf132c2f6f664b52b51efa2c94595e6ce09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DESCRIPTION = "Allow safe temporary file creation from shell scripts."
HOMEPAGE = "http://www.mktemp.org/"
SECTION = "console/utils"
LICENSE = "GPLv2 BSD"

inherit autotools update-alternatives

EXTRA_OECONF = "--with-libc"

SRC_URI = "\
  ftp://ftp.mktemp.org/pub/mktemp/${P}.tar.gz \
  file://add_destdir.patch;patch=1 \
  file://disable-strip.patch;patch=1 \
"

do_install_append () {
	mkdir ${D}${base_bindir}
	mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp.${PN}
}

ALTERNATIVE_NAME = "mktemp"
ALTERNATIVE_LINK = "${base_bindir}/mktemp"
ALTERNATIVE_PATH = "${base_bindir}/mktemp.${PN}"
ALTERNATIVE_PRIORITY = "100"