[oe-commits] Martyn Welch : realpath: added 1.10

git version control git at git.openembedded.org
Tue Mar 30 14:55:32 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: c5014e1b9f9a321793b2b173270e75770f7b7fce
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c5014e1b9f9a321793b2b173270e75770f7b7fce

Author: Martyn Welch <martyn.welch at ge.com>
Date:   Sun Mar 21 23:34:46 2010 +0000

realpath: added 1.10

The package contains a small utility realpath, which converts each
pathname argument to an absolute pathname, which has no components
that are symbolic links or the special .  or ..  directory entries.

This utility provides mostly the same functionality as `/bin/readlink -f'
in the coreutils package.

Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>

---

 recipes/realpath/files/makefile.patch |   12 ++++++++++++
 recipes/realpath/realpath_1.10.bb     |   17 +++++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/recipes/realpath/files/makefile.patch b/recipes/realpath/files/makefile.patch
new file mode 100644
index 0000000..d97ba59
--- /dev/null
+++ b/recipes/realpath/files/makefile.patch
@@ -0,0 +1,12 @@
+diff -urN realpath-1.10.orig/Makefile realpath-1.10/Makefile
+--- realpath-1.10.orig/Makefile	2009-07-28 16:04:11.000000000 +0100
++++ realpath-1.10/Makefile	2009-07-28 16:08:44.000000000 +0100
+@@ -3,7 +3,7 @@
+ # "@(#)realpath:$Id: Makefile,v 1.30 2006-05-07 19:41:41 robert Exp $"
+ #
+ 
+-VERSION	= $(shell dpkg-parsechangelog | sed -ne 's/^Version: *//p')
++#VERSION	= $(shell dpkg-parsechangelog | sed -ne 's/^Version: *//p')
+ 
+ CC	= gcc
+ CFLAGS	= -Wall -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' 
diff --git a/recipes/realpath/realpath_1.10.bb b/recipes/realpath/realpath_1.10.bb
new file mode 100644
index 0000000..4833740
--- /dev/null
+++ b/recipes/realpath/realpath_1.10.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Return the canonicalized absolute pathname"
+SECTION = "utility"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/r/realpath/realpath_${PV}.tar.gz;name=realpath \
+           file://makefile.patch;patch=1"
+
+SRC_URI[realpath.md5sum] = "1f2b2bceaacadf79162a9cbb5956c3b6"
+SRC_URI[realpath.sha256sum] = "72199f9c11d1f9a36b3b9693988b558a167def6b88fa146ea6a7f7223f96c535"
+
+CFLAGS += "-DVERSION=${PV}"
+
+do_install () {
+	install -d ${D}${bindir}
+	install -p -m 0755 ${S}/realpath ${D}${bindir}
+}





More information about the Openembedded-commits mailing list