Signed-off-by: Tom Rini <tom_rini@mentor.com>
SECTION = "utility"
PRIORITY = "optional"
LICENSE = "GPLv2"
+PR = "r1"
SRC_URI = "${DEBIAN_MIRROR}/main/r/realpath/realpath_${PV}.tar.gz;name=realpath \
file://makefile.patch"
do_install () {
install -d ${D}${bindir}
- install -p -m 0755 ${S}/realpath ${D}${bindir}
+ install -p -m 0755 ${S}/realpath ${D}${bindir}/realpath.${PN}
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${bindir}/realpath realpath realpath.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove realpath realpath.${PN}
}
SECTION = "utility"
PRIORITY = "optional"
LICENSE = "GPLv2"
+PR = "r2"
-PR = "r1"
SRC_URI = "${DEBIAN_MIRROR}/main/r/realpath/realpath_${PV}.tar.gz;name=realpath \
file://fix-common-mk.patch \
file://no-po4a.patch \
do_install () {
install -d ${D}${bindir}
- install -p -m 0755 ${S}/src/_build/realpath ${D}${bindir}
+ install -p -m 0755 ${S}/src/_build/realpath ${D}${bindir}/realpath.${PN}
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${bindir}/realpath realpath realpath.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove realpath realpath.${PN}
}
SRC_URI[realpath.md5sum] = "3351ce6e3d0ce255641c8ca9216a8638"