[oe] [PATCH v2] nicstat : add new recipe

Martin Jansa martin.jansa at gmail.com
Wed Nov 19 14:35:32 UTC 2014


On Tue, Nov 18, 2014 at 01:52:49PM +0800, Li xin wrote:
> nicstat is a tool that prints out network statistics for all network
> interface cards (NICs), including packets, kilobytes per second,
> average packet sizes and more.
> 
> Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
> ---
>  meta-oe/recipes-extended/nicstat/nicstat_1.95.bb | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/nicstat/nicstat_1.95.bb
> 
> diff --git a/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb b/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb
> new file mode 100644
> index 0000000..142c164
> --- /dev/null
> +++ b/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb
> @@ -0,0 +1,19 @@
> +DESCRIPTION = "nicstat is a Solaris and Linux command-line that prints out network \
> +statistics for all network interface cards (NICs), including packets, kilobytes \
> +per second, average packet sizes and more."
> +HOMEPAGE = "http://nicstat.sourceforge.net"
> +LICENSE = "Artistic-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4a94da2a1f918b217ef5156634fc9e0"
> +SRC_URI = "http://softlayer-sng.dl.sourceforge.net/project/nicstat/${PN}-${PV}.tar.gz"

nicstat -> ${BPN}
${PN}-${PV} -> ${BP}

> +SRC_URI[md5sum] = "9a0b87bbc670c1e738e5b40c7afd184d"
> +SRC_URI[sha256sum] = "c4cc33f8838f4523f27c3d7584eedbe59f4c587f0821612f5ac2201adc18b367"
> +
> +do_compile() {
> +	${CC} ${CFLAGS} ${LDFLAGS} -o nicstat nicstat.c
> +}
> +do_install() {
> +     	install -d ${D}/${bindir}/
> +	install -d ${D}/${mandir}/
> +     	install -m 0755 ${S}/nicstat ${D}${bindir}/
> +	install -m 0644 ${S}/nicstat.1 ${D}/${mandir}/

use 4 spaces for indentation, no tabs and definitely no mix of tabs and
spaces

I've fixed this when cherry-picking to master-next

> +}
> -- 
> 1.8.4.2
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20141119/5dee0c8b/attachment-0002.sig>


More information about the Openembedded-devel mailing list