* [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
@ 2013-01-06 8:20 lei.yang
2013-01-06 11:58 ` David Nyström
0 siblings, 1 reply; 9+ messages in thread
From: lei.yang @ 2013-01-06 8:20 UTC (permalink / raw)
To: openembedded-devel, Joe.MacDonald, meta-virtualization,
bruce.ashfield, david.c.nystrom
From: Lei Yang <lei.yang@windriver.com>
The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on
Lei
Signed-off-by: Lei Yang <lei.yang@windriver.com>
---
.../recipes-support/netcat/netcat-openbsd_1.89.bb | 29 ++++++++++++++++++++
meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
.../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
3 files changed, 40 insertions(+), 6 deletions(-)
create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \
+ ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
+}
diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc
new file mode 100644
index 0000000..4098668
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat.inc
@@ -0,0 +1,6 @@
+SECTION = "console/network"
+inherit update-alternatives gettext
+
+ALTERNATIVE_${PN} = "nc"
+ALTERNATIVE_PRIORITY = "100"
+
diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
index c5ab85d..e09202b 100644
--- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
+++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
@@ -1,21 +1,20 @@
+require netcat.inc
DESCRIPTION = "GNU Netcat"
HOMEPAGE = "http://netcat.sourceforge.net"
-SECTION = "console/network"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-PR = "r0"
+PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
-inherit autotools update-alternatives gettext
+inherit autotools
do_install_append() {
- mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+ install -d ${D}${bindir}
+ mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}
-ALTERNATIVE_${PN} = "nc"
-ALTERNATIVE_PRIORITY = "100"
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-06 8:20 lei.yang
@ 2013-01-06 11:58 ` David Nyström
2013-01-06 12:06 ` Martin Jansa
0 siblings, 1 reply; 9+ messages in thread
From: David Nyström @ 2013-01-06 11:58 UTC (permalink / raw)
To: lei.yang; +Cc: meta-virtualization, openembedded-devel, Joe.MacDonald
On 01/06/2013 09:20 AM, lei.yang@windriver.com wrote:
> From: Lei Yang <lei.yang@windriver.com>
>
> The netcat-openbsd in meta-virtualization layer has bugs.
> This update version will fix "nc: Protocol no available." error.
> As bruce point, we want to keep netcat in the meta-networking,
> which meta-virtualization will depend on
>
> Lei
>
> Signed-off-by: Lei Yang <lei.yang@windriver.com>
> ---
> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29 ++++++++++++++++++++
> meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
> 3 files changed, 40 insertions(+), 6 deletions(-)
> create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
>
> diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> new file mode 100644
> index 0000000..9fe406c
> --- /dev/null
> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> @@ -0,0 +1,29 @@
> +require netcat.inc
> +DESCRIPTION = "OpenBSD Netcat"
> +HOMEPAGE = "http://ftp.debian.org"
> +LICENSE = "BSD-3-Clause"
> +PR = "r0"
> +
> +SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \
> + ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
> +
> +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
> +SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
> +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
> +SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
> +
> +S = "${WORKDIR}/${PN}-${PV}.orig"
> +
> +do_configure[noexec] = "1"
> +
> +do_compile() {
> + cd ${S}
> + while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
> + pkgrel=4
> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
> +}
> +
> +do_install() {
> + install -d ${D}${bindir}
> + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> +}
> diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc
> new file mode 100644
> index 0000000..4098668
> --- /dev/null
> +++ b/meta-networking/recipes-support/netcat/netcat.inc
> @@ -0,0 +1,6 @@
> +SECTION = "console/network"
> +inherit update-alternatives gettext
> +
> +ALTERNATIVE_${PN} = "nc"
> +ALTERNATIVE_PRIORITY = "100"
This means that both versions of netcat have alt. prio 100. what happens
when both are installed on the rootfs at the same time. where does the
symlink point ?
What does bitbake make of this ?
> +
> diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> index c5ab85d..e09202b 100644
> --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> @@ -1,21 +1,20 @@
> +require netcat.inc
> DESCRIPTION = "GNU Netcat"
> HOMEPAGE = "http://netcat.sourceforge.net"
> -SECTION = "console/network"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>
> -PR = "r0"
> +PR = "r1"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
>
> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
> SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
>
> -inherit autotools update-alternatives gettext
> +inherit autotools
>
> do_install_append() {
> - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> + install -d ${D}${bindir}
> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> }
>
> -ALTERNATIVE_${PN} = "nc"
> -ALTERNATIVE_PRIORITY = "100"
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-06 11:58 ` David Nyström
@ 2013-01-06 12:06 ` Martin Jansa
2013-01-06 14:27 ` lei yang
0 siblings, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2013-01-06 12:06 UTC (permalink / raw)
To: openembedded-devel; +Cc: meta-virtualization, Joe.MacDonald
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
On Sun, Jan 06, 2013 at 12:58:47PM +0100, David Nyström wrote:
> On 01/06/2013 09:20 AM, lei.yang@windriver.com wrote:
> > +SECTION = "console/network"
> > +inherit update-alternatives gettext
> > +
> > +ALTERNATIVE_${PN} = "nc"
> > +ALTERNATIVE_PRIORITY = "100"
>
> This means that both versions of netcat have alt. prio 100. what happens
> when both are installed on the rootfs at the same time. where does the
> symlink point ?
The one installed later (at least for opkg implementation).
So it's better to change it to different number.
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-06 12:06 ` Martin Jansa
@ 2013-01-06 14:27 ` lei yang
0 siblings, 0 replies; 9+ messages in thread
From: lei yang @ 2013-01-06 14:27 UTC (permalink / raw)
To: openembedded-devel; +Cc: meta-virtualization, Joe.MacDonald
On Sun, Jan 6, 2013 at 4:06 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Sun, Jan 06, 2013 at 12:58:47PM +0100, David Nyström wrote:
>> On 01/06/2013 09:20 AM, lei.yang@windriver.com wrote:
>> > +SECTION = "console/network"
>> > +inherit update-alternatives gettext
>> > +
>> > +ALTERNATIVE_${PN} = "nc"
>> > +ALTERNATIVE_PRIORITY = "100"
>>
>> This means that both versions of netcat have alt. prio 100. what happens
>> when both are installed on the rootfs at the same time. where does the
>> symlink point ?
>
> The one installed later (at least for opkg implementation).
> So it's better to change it to different number.
>
Thanks, I will update this
Lei
> Cheers,
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
[not found] <1357449457-2669-1-git-send-email-lei.yang@windriver.com>
@ 2013-01-07 1:46 ` Joe MacDonald
2013-01-07 2:03 ` Lei Yang
2013-01-07 3:21 ` Bruce Ashfield
0 siblings, 2 replies; 9+ messages in thread
From: Joe MacDonald @ 2013-01-07 1:46 UTC (permalink / raw)
To: lei.yang; +Cc: meta-virtualization, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 4685 bytes --]
[[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)] On 13.01.06 (Sun 13:17) lei.yang@windriver.com wrote:
> From: Lei Yang <lei.yang@windriver.com>
>
> The netcat-openbsd in meta-virtualization layer has bugs.
> This update version will fix "nc: Protocol no available." error.
> As bruce point, we want to keep netcat in the meta-networking,
> which meta-virtualization will depend on
That's fine with me if that works for him, and having both netcat
versions available is fine, I personally prefer the obsd one. I'll keep
an eye out for your next version with the per-recipe alternative
priorities.
I didn't notice the discussion with Bruce, though, so at the risk of
re-stating what you guys have already agreed upon, this will mean you're
at least going to be cloning meta-oe to use meta-virtualization.
meta-networking isn't a standalone layer for the most part. I maintain
a read-only subtree project on github that is meta-networking separated
from the rest of meta-oe, but it necessarily trails the meta-networking
in meta-oe.
I'm fine with the new recipe, just wanted to make sure you had all the
information you needed.
-J.
>
> Lei
>
> Signed-off-by: Lei Yang <lei.yang@windriver.com>
> ---
> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29 ++++++++++++++++++++
> meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
> 3 files changed, 40 insertions(+), 6 deletions(-)
> create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
>
> diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> new file mode 100644
> index 0000000..9fe406c
> --- /dev/null
> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> @@ -0,0 +1,29 @@
> +require netcat.inc
> +DESCRIPTION = "OpenBSD Netcat"
> +HOMEPAGE = "http://ftp.debian.org"
> +LICENSE = "BSD-3-Clause"
> +PR = "r0"
> +
> +SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \
> + ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
> +
> +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
> +SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
> +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
> +SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
> +
> +S = "${WORKDIR}/${PN}-${PV}.orig"
> +
> +do_configure[noexec] = "1"
> +
> +do_compile() {
> + cd ${S}
> + while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
> + pkgrel=4
> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
> +}
> +
> +do_install() {
> + install -d ${D}${bindir}
> + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> +}
> diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc
> new file mode 100644
> index 0000000..4098668
> --- /dev/null
> +++ b/meta-networking/recipes-support/netcat/netcat.inc
> @@ -0,0 +1,6 @@
> +SECTION = "console/network"
> +inherit update-alternatives gettext
> +
> +ALTERNATIVE_${PN} = "nc"
> +ALTERNATIVE_PRIORITY = "100"
> +
> diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> index c5ab85d..e09202b 100644
> --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> @@ -1,21 +1,20 @@
> +require netcat.inc
> DESCRIPTION = "GNU Netcat"
> HOMEPAGE = "http://netcat.sourceforge.net"
> -SECTION = "console/network"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>
> -PR = "r0"
> +PR = "r1"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
>
> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
> SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
>
> -inherit autotools update-alternatives gettext
> +inherit autotools
>
> do_install_append() {
> - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> + install -d ${D}${bindir}
> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> }
>
> -ALTERNATIVE_${PN} = "nc"
> -ALTERNATIVE_PRIORITY = "100"
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-07 1:46 ` [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test) Joe MacDonald
@ 2013-01-07 2:03 ` Lei Yang
2013-01-07 2:08 ` [meta-virtualization] " Lei Yang
2013-01-07 3:21 ` Bruce Ashfield
1 sibling, 1 reply; 9+ messages in thread
From: Lei Yang @ 2013-01-07 2:03 UTC (permalink / raw)
To: Joe MacDonald, bruce.ashfield; +Cc: meta-virtualization, openembedded-devel
On 01/07/2013 09:46 AM, Joe MacDonald wrote:
> [[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)] On 13.01.06 (Sun 13:17) lei.yang@windriver.com wrote:
>
>> From: Lei Yang<lei.yang@windriver.com>
>>
>> The netcat-openbsd in meta-virtualization layer has bugs.
>> This update version will fix "nc: Protocol no available." error.
>> As bruce point, we want to keep netcat in the meta-networking,
>> which meta-virtualization will depend on
> That's fine with me if that works for him, and having both netcat
> versions available is fine, I personally prefer the obsd one. I'll keep
> an eye out for your next version with the per-recipe alternative
> priorities.
>
> I didn't notice the discussion with Bruce, though, so at the risk of
> re-stating what you guys have already agreed upon, this will mean you're
> at least going to be cloning meta-oe to use meta-virtualization.
> meta-networking isn't a standalone layer for the most part. I maintain
> a read-only subtree project on github that is meta-networking separated
> from the rest of meta-oe, but it necessarily trails the meta-networking
> in meta-oe.
Wait Bruce's comments
Lei
> I'm fine with the new recipe, just wanted to make sure you had all the
> information you needed.
> -J.
>
>> Lei
>>
>> Signed-off-by: Lei Yang<lei.yang@windriver.com>
>> ---
>> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29 ++++++++++++++++++++
>> meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
>> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
>> 3 files changed, 40 insertions(+), 6 deletions(-)
>> create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
>>
>> diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>> new file mode 100644
>> index 0000000..9fe406c
>> --- /dev/null
>> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>> @@ -0,0 +1,29 @@
>> +require netcat.inc
>> +DESCRIPTION = "OpenBSD Netcat"
>> +HOMEPAGE = "http://ftp.debian.org"
>> +LICENSE = "BSD-3-Clause"
>> +PR = "r0"
>> +
>> +SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \
>> + ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
>> +
>> +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
>> +SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
>> +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
>> +SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
>> +
>> +S = "${WORKDIR}/${PN}-${PV}.orig"
>> +
>> +do_configure[noexec] = "1"
>> +
>> +do_compile() {
>> + cd ${S}
>> + while read line; do patch -p1<debian/patches/$line; done<debian/patches/series
>> + pkgrel=4
>> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>> +}
>> +
>> +do_install() {
>> + install -d ${D}${bindir}
>> + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>> +}
>> diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc
>> new file mode 100644
>> index 0000000..4098668
>> --- /dev/null
>> +++ b/meta-networking/recipes-support/netcat/netcat.inc
>> @@ -0,0 +1,6 @@
>> +SECTION = "console/network"
>> +inherit update-alternatives gettext
>> +
>> +ALTERNATIVE_${PN} = "nc"
>> +ALTERNATIVE_PRIORITY = "100"
>> +
>> diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>> index c5ab85d..e09202b 100644
>> --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>> +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>> @@ -1,21 +1,20 @@
>> +require netcat.inc
>> DESCRIPTION = "GNU Netcat"
>> HOMEPAGE = "http://netcat.sourceforge.net"
>> -SECTION = "console/network"
>> LICENSE = "GPLv2"
>> LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>>
>> -PR = "r0"
>> +PR = "r1"
>>
>> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
>>
>> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
>> SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
>>
>> -inherit autotools update-alternatives gettext
>> +inherit autotools
>>
>> do_install_append() {
>> - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
>> + install -d ${D}${bindir}
>> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
>> }
>>
>> -ALTERNATIVE_${PN} = "nc"
>> -ALTERNATIVE_PRIORITY = "100"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-07 2:03 ` Lei Yang
@ 2013-01-07 2:08 ` Lei Yang
2013-01-07 2:09 ` Joe MacDonald
0 siblings, 1 reply; 9+ messages in thread
From: Lei Yang @ 2013-01-07 2:08 UTC (permalink / raw)
To: lei.yang, Joe MacDonald; +Cc: meta-virtualization, openembedded-devel
On 01/07/2013 10:03 AM, Lei Yang wrote:
> On 01/07/2013 09:46 AM, Joe MacDonald wrote:
>> [[meta-networking][PATCH] Add netcat-openbsd for virtualization
>> (libvirt virt-test)] On 13.01.06 (Sun 13:17) lei.yang@windriver.com
>> wrote:
>>
>>> From: Lei Yang<lei.yang@windriver.com>
>>>
>>> The netcat-openbsd in meta-virtualization layer has bugs.
>>> This update version will fix "nc: Protocol no available." error.
>>> As bruce point, we want to keep netcat in the meta-networking,
>>> which meta-virtualization will depend on
>> That's fine with me if that works for him, and having both netcat
>> versions available is fine, I personally prefer the obsd one. I'll keep
Do I need send a V2 for update the openbsd's priority ?
Lei
>> an eye out for your next version with the per-recipe alternative
>> priorities.
>>
>> I didn't notice the discussion with Bruce, though, so at the risk of
>> re-stating what you guys have already agreed upon, this will mean you're
>> at least going to be cloning meta-oe to use meta-virtualization.
>> meta-networking isn't a standalone layer for the most part. I maintain
>> a read-only subtree project on github that is meta-networking separated
>> from the rest of meta-oe, but it necessarily trails the meta-networking
>> in meta-oe.
>
> Wait Bruce's comments
>
> Lei
>
>
>
>> I'm fine with the new recipe, just wanted to make sure you had all the
>> information you needed.
>> -J.
>>
>>> Lei
>>>
>>> Signed-off-by: Lei Yang<lei.yang@windriver.com>
>>> ---
>>> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29
>>> ++++++++++++++++++++
>>> meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
>>> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
>>> 3 files changed, 40 insertions(+), 6 deletions(-)
>>> create mode 100644
>>> meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>>> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
>>>
>>> diff --git
>>> a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>>> b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>>> new file mode 100644
>>> index 0000000..9fe406c
>>> --- /dev/null
>>> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
>>> @@ -0,0 +1,29 @@
>>> +require netcat.inc
>>> +DESCRIPTION = "OpenBSD Netcat"
>>> +HOMEPAGE = "http://ftp.debian.org"
>>> +LICENSE = "BSD-3-Clause"
>>> +PR = "r0"
>>> +
>>> +SRC_URI =
>>> "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
>>> \
>>> +
>>> ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
>>> +
>>> +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
>>> +SRC_URI[netcat.sha256sum] =
>>> "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
>>> +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
>>> +SRC_URI[netcat-patch.sha256sum] =
>>> "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
>>> +
>>> +S = "${WORKDIR}/${PN}-${PV}.orig"
>>> +
>>> +do_configure[noexec] = "1"
>>> +
>>> +do_compile() {
>>> + cd ${S}
>>> + while read line; do patch -p1<debian/patches/$line;
>>> done<debian/patches/series
>>> + pkgrel=4
>>> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>>> +}
>>> +
>>> +do_install() {
>>> + install -d ${D}${bindir}
>>> + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>>> +}
>>> diff --git a/meta-networking/recipes-support/netcat/netcat.inc
>>> b/meta-networking/recipes-support/netcat/netcat.inc
>>> new file mode 100644
>>> index 0000000..4098668
>>> --- /dev/null
>>> +++ b/meta-networking/recipes-support/netcat/netcat.inc
>>> @@ -0,0 +1,6 @@
>>> +SECTION = "console/network"
>>> +inherit update-alternatives gettext
>>> +
>>> +ALTERNATIVE_${PN} = "nc"
>>> +ALTERNATIVE_PRIORITY = "100"
>>> +
>>> diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>>> b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>>> index c5ab85d..e09202b 100644
>>> --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>>> +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
>>> @@ -1,21 +1,20 @@
>>> +require netcat.inc
>>> DESCRIPTION = "GNU Netcat"
>>> HOMEPAGE = "http://netcat.sourceforge.net"
>>> -SECTION = "console/network"
>>> LICENSE = "GPLv2"
>>> LIC_FILES_CHKSUM =
>>> "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
>>>
>>> -PR = "r0"
>>> +PR = "r1"
>>>
>>> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
>>>
>>> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
>>> SRC_URI[sha256sum] =
>>> "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
>>>
>>> -inherit autotools update-alternatives gettext
>>> +inherit autotools
>>>
>>> do_install_append() {
>>> - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
>>> + install -d ${D}${bindir}
>>> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
>>> }
>>>
>>> -ALTERNATIVE_${PN} = "nc"
>>> -ALTERNATIVE_PRIORITY = "100"
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-07 2:08 ` [meta-virtualization] " Lei Yang
@ 2013-01-07 2:09 ` Joe MacDonald
0 siblings, 0 replies; 9+ messages in thread
From: Joe MacDonald @ 2013-01-07 2:09 UTC (permalink / raw)
To: Lei Yang; +Cc: meta-virtualization, openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 5961 bytes --]
[Re: [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)] On 13.01.07 (Mon 10:08) Lei Yang wrote:
> On 01/07/2013 10:03 AM, Lei Yang wrote:
> >On 01/07/2013 09:46 AM, Joe MacDonald wrote:
> >>[[meta-networking][PATCH] Add netcat-openbsd for virtualization
> >>(libvirt virt-test)] On 13.01.06 (Sun 13:17)
> >>lei.yang@windriver.com wrote:
> >>
> >>>From: Lei Yang<lei.yang@windriver.com>
> >>>
> >>>The netcat-openbsd in meta-virtualization layer has bugs.
> >>>This update version will fix "nc: Protocol no available." error.
> >>>As bruce point, we want to keep netcat in the meta-networking,
> >>>which meta-virtualization will depend on
> >>That's fine with me if that works for him, and having both netcat
> >>versions available is fine, I personally prefer the obsd one. I'll keep
>
> Do I need send a V2 for update the openbsd's priority ?
I don't think so. What priorities do you propose for each, though?
That's worth sending to the list, I think, since I know there are
strongly held opinions on each side of the netcat debate as to which is
superior. :-)
-J.
>
> Lei
>
> >>an eye out for your next version with the per-recipe alternative
> >>priorities.
> >>
> >>I didn't notice the discussion with Bruce, though, so at the risk of
> >>re-stating what you guys have already agreed upon, this will mean you're
> >>at least going to be cloning meta-oe to use meta-virtualization.
> >>meta-networking isn't a standalone layer for the most part. I maintain
> >>a read-only subtree project on github that is meta-networking separated
> >>from the rest of meta-oe, but it necessarily trails the meta-networking
> >>in meta-oe.
> >
> >Wait Bruce's comments
> >
> >Lei
> >
> >
> >
> >>I'm fine with the new recipe, just wanted to make sure you had all the
> >>information you needed.
> >>-J.
> >>
> >>>Lei
> >>>
> >>>Signed-off-by: Lei Yang<lei.yang@windriver.com>
> >>>---
> >>> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29
> >>>++++++++++++++++++++
> >>> meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
> >>> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
> >>> 3 files changed, 40 insertions(+), 6 deletions(-)
> >>> create mode 100644
> >>>meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> >>> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
> >>>
> >>>diff --git
> >>>a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> >>>b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> >>>new file mode 100644
> >>>index 0000000..9fe406c
> >>>--- /dev/null
> >>>+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> >>>@@ -0,0 +1,29 @@
> >>>+require netcat.inc
> >>>+DESCRIPTION = "OpenBSD Netcat"
> >>>+HOMEPAGE = "http://ftp.debian.org"
> >>>+LICENSE = "BSD-3-Clause"
> >>>+PR = "r0"
> >>>+
> >>>+SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
> >>>\
> >>>+ ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
> >>>+
> >>>+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
> >>>+SRC_URI[netcat.sha256sum] =
> >>>"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
> >>>+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
> >>>+SRC_URI[netcat-patch.sha256sum] =
> >>>"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
> >>>+
> >>>+S = "${WORKDIR}/${PN}-${PV}.orig"
> >>>+
> >>>+do_configure[noexec] = "1"
> >>>+
> >>>+do_compile() {
> >>>+ cd ${S}
> >>>+ while read line; do patch -p1<debian/patches/$line;
> >>>done<debian/patches/series
> >>>+ pkgrel=4
> >>>+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
> >>>+}
> >>>+
> >>>+do_install() {
> >>>+ install -d ${D}${bindir}
> >>>+ install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> >>>+}
> >>>diff --git a/meta-networking/recipes-support/netcat/netcat.inc
> >>>b/meta-networking/recipes-support/netcat/netcat.inc
> >>>new file mode 100644
> >>>index 0000000..4098668
> >>>--- /dev/null
> >>>+++ b/meta-networking/recipes-support/netcat/netcat.inc
> >>>@@ -0,0 +1,6 @@
> >>>+SECTION = "console/network"
> >>>+inherit update-alternatives gettext
> >>>+
> >>>+ALTERNATIVE_${PN} = "nc"
> >>>+ALTERNATIVE_PRIORITY = "100"
> >>>+
> >>>diff --git
> >>>a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> >>>b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> >>>index c5ab85d..e09202b 100644
> >>>--- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> >>>+++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> >>>@@ -1,21 +1,20 @@
> >>>+require netcat.inc
> >>> DESCRIPTION = "GNU Netcat"
> >>> HOMEPAGE = "http://netcat.sourceforge.net"
> >>>-SECTION = "console/network"
> >>> LICENSE = "GPLv2"
> >>> LIC_FILES_CHKSUM =
> >>>"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> >>>
> >>>-PR = "r0"
> >>>+PR = "r1"
> >>>
> >>> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
> >>>
> >>> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
> >>> SRC_URI[sha256sum] =
> >>>"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
> >>>
> >>>-inherit autotools update-alternatives gettext
> >>>+inherit autotools
> >>>
> >>> do_install_append() {
> >>>- mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> >>>+ install -d ${D}${bindir}
> >>>+ mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> >>> }
> >>>
> >>>-ALTERNATIVE_${PN} = "nc"
> >>>-ALTERNATIVE_PRIORITY = "100"
> >
> >_______________________________________________
> >meta-virtualization mailing list
> >meta-virtualization@yoctoproject.org
> >https://lists.yoctoproject.org/listinfo/meta-virtualization
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)
2013-01-07 1:46 ` [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test) Joe MacDonald
2013-01-07 2:03 ` Lei Yang
@ 2013-01-07 3:21 ` Bruce Ashfield
1 sibling, 0 replies; 9+ messages in thread
From: Bruce Ashfield @ 2013-01-07 3:21 UTC (permalink / raw)
To: Joe MacDonald; +Cc: meta-virtualization@yoctoproject.org, openembedded-devel
On Sun, Jan 6, 2013 at 8:46 PM, Joe MacDonald
<Joe.MacDonald@windriver.com>wrote:
> [[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt
> virt-test)] On 13.01.06 (Sun 13:17) lei.yang@windriver.com wrote:
>
> > From: Lei Yang <lei.yang@windriver.com>
> >
> > The netcat-openbsd in meta-virtualization layer has bugs.
> > This update version will fix "nc: Protocol no available." error.
> > As bruce point, we want to keep netcat in the meta-networking,
> > which meta-virtualization will depend on
>
> That's fine with me if that works for him, and having both netcat
> versions available is fine, I personally prefer the obsd one. I'll keep
> an eye out for your next version with the per-recipe alternative
> priorities.
>
> I didn't notice the discussion with Bruce, though, so at the risk of
> re-stating what you guys have already agreed upon, this will mean you're
> at least going to be cloning meta-oe to use meta-virtualization.
> meta-networking isn't a standalone layer for the most part. I maintain
> a read-only subtree project on github that is meta-networking separated
> from the rest of meta-oe, but it necessarily trails the meta-networking
> in meta-oe.
>
This all sounds good to me. I see the other thread where you've indicated
you'll
merge the obsd netcat, and like you say there, that's the important part.
The summary of the conversation (on meta-virt) was the big item I was trying
to avoid was having two supported netcat variants in different layers with
no
obvious (to the casual observer) reason why there were two layers that
contained "netcat". I didn't expect this to move to oe-dev quite so fast,
or
I would have gotten around to giving my own heads up!
There are two ideas about how to consume obsd netcat if it comes from
meta-networking, depend directly on the layer (whether it be the
meta-oe, or your read only github/standalone variant) or to use the layer
combo tools to track what you merge to meta-networking within meta-virt.
We'll just document the requirement(s) in the READMEs once everything
is nailed down.
Either approach I mention above will work, and while we do want to keep
dependencies low, I'm inclined to use the layer dependency approach, since
there are bound to be more parts of meta-networking that will be required
as the virtualization usecases progress.
Right now, I'm not too concerned about a meta-oe dependency (but I'm just
one voice), but it is good to know that there's the github option as well.
And
there's the fallback of the layer combo-tooling as well.
If anyone has experience to offer here .. it would be appreciated, since
there's
no sense causing ourselves undo pain and suffering.
Cheers,
Bruce
>
> I'm fine with the new recipe, just wanted to make sure you had all the
> information you needed.
>
> -J.
>
> >
> > Lei
> >
> > Signed-off-by: Lei Yang <lei.yang@windriver.com>
> > ---
> > .../recipes-support/netcat/netcat-openbsd_1.89.bb | 29
> ++++++++++++++++++++
> > meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
> > .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++----
> > 3 files changed, 40 insertions(+), 6 deletions(-)
> > create mode 100644 meta-networking/recipes-support/netcat/
> netcat-openbsd_1.89.bb
> > create mode 100644 meta-networking/recipes-support/netcat/netcat.inc
> >
> > diff --git a/meta-networking/recipes-support/netcat/
> netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/
> netcat-openbsd_1.89.bb
> > new file mode 100644
> > index 0000000..9fe406c
> > --- /dev/null
> > +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
> > @@ -0,0 +1,29 @@
> > +require netcat.inc
> > +DESCRIPTION = "OpenBSD Netcat"
> > +HOMEPAGE = "http://ftp.debian.org"
> > +LICENSE = "BSD-3-Clause"
> > +PR = "r0"
> > +
> > +SRC_URI =
> "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
> \
> > +
> ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
> > +
> > +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
> > +SRC_URI[netcat.sha256sum] =
> "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
> > +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
> > +SRC_URI[netcat-patch.sha256sum] =
> "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
> > +
> > +S = "${WORKDIR}/${PN}-${PV}.orig"
> > +
> > +do_configure[noexec] = "1"
> > +
> > +do_compile() {
> > + cd ${S}
> > + while read line; do patch -p1 <debian/patches/$line; done
> <debian/patches/series
> > + pkgrel=4
> > + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
> > +}
> > +
> > +do_install() {
> > + install -d ${D}${bindir}
> > + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> > +}
> > diff --git a/meta-networking/recipes-support/netcat/netcat.inc
> b/meta-networking/recipes-support/netcat/netcat.inc
> > new file mode 100644
> > index 0000000..4098668
> > --- /dev/null
> > +++ b/meta-networking/recipes-support/netcat/netcat.inc
> > @@ -0,0 +1,6 @@
> > +SECTION = "console/network"
> > +inherit update-alternatives gettext
> > +
> > +ALTERNATIVE_${PN} = "nc"
> > +ALTERNATIVE_PRIORITY = "100"
> > +
> > diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bbb/meta-networking/recipes-support/netcat/
> netcat_0.7.1.bb
> > index c5ab85d..e09202b 100644
> > --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> > +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
> > @@ -1,21 +1,20 @@
> > +require netcat.inc
> > DESCRIPTION = "GNU Netcat"
> > HOMEPAGE = "http://netcat.sourceforge.net"
> > -SECTION = "console/network"
> > LICENSE = "GPLv2"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> >
> > -PR = "r0"
> > +PR = "r1"
> >
> > SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"
> >
> > SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
> > SRC_URI[sha256sum] =
> "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"
> >
> > -inherit autotools update-alternatives gettext
> > +inherit autotools
> >
> > do_install_append() {
> > - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> > + install -d ${D}${bindir}
> > + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
> > }
> >
> > -ALTERNATIVE_${PN} = "nc"
> > -ALTERNATIVE_PRIORITY = "100"
> --
> -Joe MacDonald.
> :wq
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-01-07 3:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1357449457-2669-1-git-send-email-lei.yang@windriver.com>
2013-01-07 1:46 ` [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test) Joe MacDonald
2013-01-07 2:03 ` Lei Yang
2013-01-07 2:08 ` [meta-virtualization] " Lei Yang
2013-01-07 2:09 ` Joe MacDonald
2013-01-07 3:21 ` Bruce Ashfield
2013-01-06 8:20 lei.yang
2013-01-06 11:58 ` David Nyström
2013-01-06 12:06 ` Martin Jansa
2013-01-06 14:27 ` lei yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox