mktemp: add mktemp package

Mktemp is a small program to allow safe temporary file creation from shell scripts. this commit add mktemp 1.7.

it is borrowed from open embedded with following changes:
- upgrade from 1.6 to 1.7
- remove the patch add_destdir.patch, since this patch is already included in 1.7.

Signed-off-by: Yu Ke <ke.yu@intel.com>
This commit is contained in:
Yu Ke
2010-07-29 10:40:15 +08:00
committed by Richard Purdie
parent ec22c6287c
commit 372f2f40c0
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/Makefile.in b/Makefile.in
index 37b3cc9..f1026f3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -95,7 +95,7 @@ install-dirs:
$(DESTDIR)$(mandir)/man1
install-binaries: $(PROG)
- $(INSTALL) -m 0555 -s $(PROG) $(DESTDIR)$(bindir)/$(PROG)
+ $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG)
install-man:
$(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \

View File

@@ -0,0 +1,26 @@
DESCRIPTION = "Allow safe temporary file creation from shell scripts."
HOMEPAGE = "http://www.mktemp.org/"
BUGTRACKER = "http://www.mktemp.org/bugs"
SECTION = "console/utils"
LICENSE = "ISC style"
LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
PR = "r0"
SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${P}.tar.gz \
file://disable-strip.patch \
"
inherit autotools update-alternatives
EXTRA_OECONF = "--with-libc"
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"