diff options
| author | Lei Yang <lei.yang@windriver.com> | 2013-01-07 01:38:24 +0000 |
|---|---|---|
| committer | Joe MacDonald <joe.macdonald@windriver.com> | 2013-01-07 15:20:37 -0500 |
| commit | 7bbb2e57c3c0e170844d24b69b2986c278977a16 (patch) | |
| tree | 7b49d50c5c70281bea326ed923350aaff63656d0 | |
| parent | a0292fc5fc84ac016392706de0a531e3ca2b03ea (diff) | |
| download | meta-openembedded-7bbb2e57c3c0e170844d24b69b2986c278977a16.tar.gz | |
Add netcat-bsd into meta-networking for meta-virutalization libvirt virt-test
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,and this patch will let
netcat-openbsd with low priority to install
Signed-off-by: Lei Yang <lei.yang@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
3 files changed, 40 insertions, 6 deletions
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 0000000000..f83caee94f --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | require netcat.inc | ||
| 2 | DESCRIPTION = "OpenBSD Netcat" | ||
| 3 | HOMEPAGE = "http://ftp.debian.org" | ||
| 4 | LICENSE = "BSD-3-Clause" | ||
| 5 | PR = "r0" | ||
| 6 | |||
| 7 | SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \ | ||
| 8 | ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch" | ||
| 9 | |||
| 10 | SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e" | ||
| 11 | SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b" | ||
| 12 | SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc" | ||
| 13 | SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/${PN}-${PV}.orig" | ||
| 16 | |||
| 17 | do_configure[noexec] = "1" | ||
| 18 | |||
| 19 | do_compile() { | ||
| 20 | cd ${S} | ||
| 21 | while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series | ||
| 22 | pkgrel=4 | ||
| 23 | oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | install -d ${D}${bindir} | ||
| 28 | install -m 755 ${S}/nc ${D}${bindir}/nc.${PN} | ||
| 29 | } | ||
| 30 | ALTERNATIVE_PRIORITY = "50" | ||
diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc new file mode 100644 index 0000000000..6c815d97e6 --- /dev/null +++ b/meta-networking/recipes-support/netcat/netcat.inc | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | SECTION = "console/network" | ||
| 2 | inherit update-alternatives gettext | ||
| 3 | |||
| 4 | ALTERNATIVE_${PN} = "nc" | ||
| 5 | |||
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 c5ab85d19b..c4f1f331aa 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 @@ | |||
| 1 | require netcat.inc | ||
| 1 | DESCRIPTION = "GNU Netcat" | 2 | DESCRIPTION = "GNU Netcat" |
| 2 | HOMEPAGE = "http://netcat.sourceforge.net" | 3 | HOMEPAGE = "http://netcat.sourceforge.net" |
| 3 | SECTION = "console/network" | ||
| 4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 6 | 6 | ||
| 7 | PR = "r0" | 7 | PR = "r1" |
| 8 | 8 | ||
| 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2" | 9 | SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2" |
| 10 | 10 | ||
| 11 | SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef" | 11 | SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef" |
| 12 | SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb" | 12 | SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb" |
| 13 | 13 | ||
| 14 | inherit autotools update-alternatives gettext | 14 | inherit autotools |
| 15 | 15 | ||
| 16 | do_install_append() { | 16 | do_install_append() { |
| 17 | mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN} | 17 | install -d ${D}${bindir} |
| 18 | mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN} | ||
| 18 | } | 19 | } |
| 19 | |||
| 20 | ALTERNATIVE_${PN} = "nc" | ||
| 21 | ALTERNATIVE_PRIORITY = "100" | 20 | ALTERNATIVE_PRIORITY = "100" |
