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 /meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb | |
parent | a0292fc5fc84ac016392706de0a531e3ca2b03ea (diff) | |
download | meta-openembedded-contrib-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>
Diffstat (limited to 'meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb')
-rw-r--r-- | meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb | 30 |
1 files changed, 30 insertions, 0 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 @@ +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.${PN} +} +ALTERNATIVE_PRIORITY = "50" |