diff options
author | Yu Ke <ke.yu@intel.com> | 2010-07-29 10:40:15 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 12:36:37 +0100 |
commit | 372f2f40c09050346e5bd62d47d3ebdf05d76d29 (patch) | |
tree | dcb8cb098b1357bd386fe529f1243ef97f8e9842 /meta-lsb | |
parent | ec22c6287cc26890669fea1b1bf8985e3517cd97 (diff) | |
download | openembedded-core-372f2f40c09050346e5bd62d47d3ebdf05d76d29.tar.gz openembedded-core-372f2f40c09050346e5bd62d47d3ebdf05d76d29.tar.bz2 openembedded-core-372f2f40c09050346e5bd62d47d3ebdf05d76d29.tar.xz openembedded-core-372f2f40c09050346e5bd62d47d3ebdf05d76d29.zip |
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>
Diffstat (limited to 'meta-lsb')
-rw-r--r-- | meta-lsb/packages/mktemp/files/disable-strip.patch | 13 | ||||
-rw-r--r-- | meta-lsb/packages/mktemp/mktemp_1.7.bb | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-lsb/packages/mktemp/files/disable-strip.patch b/meta-lsb/packages/mktemp/files/disable-strip.patch new file mode 100644 index 000000000..d6bc528a2 --- /dev/null +++ b/meta-lsb/packages/mktemp/files/disable-strip.patch @@ -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) \ diff --git a/meta-lsb/packages/mktemp/mktemp_1.7.bb b/meta-lsb/packages/mktemp/mktemp_1.7.bb new file mode 100644 index 000000000..a34827450 --- /dev/null +++ b/meta-lsb/packages/mktemp/mktemp_1.7.bb @@ -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" |