[oe] [STABLE][PATCH 6/6] netcat: use update-alternatives as we have netcat in busybox too
Denys Dmytriyenko
denis at denix.org
Sat Oct 31 07:55:18 UTC 2009
On Wed, Oct 28, 2009 at 11:45:58AM +0100, Marcin Juszkiewicz wrote:
> From: Marcin Juszkiewicz <hrw at openembedded.org>
>
> Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl>
Acked-by: Denys Dmytriyenko <denis at denix.org>
> ---
> recipes/netcat/netcat_0.7.1.bb | 13 +++++++++++--
> 1 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/netcat/netcat_0.7.1.bb b/recipes/netcat/netcat_0.7.1.bb
> index c7ceccd..7c4dfc5 100644
> --- a/recipes/netcat/netcat_0.7.1.bb
> +++ b/recipes/netcat/netcat_0.7.1.bb
> @@ -2,8 +2,17 @@ DESCRIPTION = "GNU Netcat"
> HOMEPAGE = "http://netcat.sourceforge.net"
> SECTION = "console/network"
> LICENSE = "GPLv2"
> -PR = "r1"
> +PR = "r3"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
>
> -inherit autotools
> +inherit autotools update-alternatives
> +
> +do_install_append() {
> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> +}
> +
> +ALTERNATIVE_NAME = "nc"
> +ALTERNATIVE_LINK = "${bindir}/nc"
> +ALTERNATIVE_PATH = "${bindir}/nc.${PN}"
> +ALTERNATIVE_PRIORITY = "100"
> --
> 1.6.5
>
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list