xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/nicstat/nicstat_1.95.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "nicstat is a Solaris and Linux command-line that prints out network \
2*4882a593Smuzhiyunstatistics for all network interface cards (NICs), including packets, kilobytes \
3*4882a593Smuzhiyunper second, average packet sizes and more."
4*4882a593SmuzhiyunHOMEPAGE = "http://nicstat.sourceforge.net"
5*4882a593SmuzhiyunLICENSE = "Artistic-2.0"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4a94da2a1f918b217ef5156634fc9e0"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRC_URI = "http://softlayer-sng.dl.sourceforge.net/project/${BPN}/${BP}.tar.gz \
9*4882a593Smuzhiyun           file://0001-nicstat.c-Do-not-define-uint64_t-and-uint32_t.patch \
10*4882a593Smuzhiyun           "
11*4882a593SmuzhiyunSRC_URI[md5sum] = "9a0b87bbc670c1e738e5b40c7afd184d"
12*4882a593SmuzhiyunSRC_URI[sha256sum] = "c4cc33f8838f4523f27c3d7584eedbe59f4c587f0821612f5ac2201adc18b367"
13*4882a593Smuzhiyun
14*4882a593Smuzhiyundo_compile() {
15*4882a593Smuzhiyun    ${CC} ${CFLAGS} ${LDFLAGS} -o nicstat nicstat.c
16*4882a593Smuzhiyun}
17*4882a593Smuzhiyundo_install() {
18*4882a593Smuzhiyun    install -d ${D}/${bindir}/
19*4882a593Smuzhiyun    install -d ${D}/${mandir}/
20*4882a593Smuzhiyun    install -m 0755 ${S}/nicstat ${D}${bindir}/
21*4882a593Smuzhiyun    install -m 0644 ${S}/nicstat.1 ${D}/${mandir}/
22*4882a593Smuzhiyun}
23