xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/memstat/memstat_1.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Display virtual memory allocation"
2*4882a593SmuzhiyunDESCRIPTION = "Lists all the processes, executables, and shared libraries \
3*4882a593Smuzhiyunthat are using up virtual memory. It's helpful to see how the shared memory \
4*4882a593Smuzhiyunis used and which 'old' libs are loaded. \
5*4882a593Smuzhiyun"
6*4882a593SmuzhiyunHOMEPAGE = "http://memstattool.sourceforge.net/"
7*4882a593SmuzhiyunSECTION = "devtool"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunS = "${WORKDIR}/memstattool"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \
16*4882a593Smuzhiyun           file://0001-Include-limits.h-for-PATH_MAX-definition.patch \
17*4882a593Smuzhiyun           "
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSRC_URI[md5sum] = "2c3acc0c62b2a18f6601b84e54aa7462"
20*4882a593SmuzhiyunSRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94"
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_install:append(){
23*4882a593Smuzhiyun    install -d ${D}${bindir}
24*4882a593Smuzhiyun    install -m 0755 memstat ${D}${bindir}
25*4882a593Smuzhiyun    install -d ${D}${sysconfdir}
26*4882a593Smuzhiyun    install -m 0755 memstat.conf ${D}${sysconfdir}
27*4882a593Smuzhiyun    install -d ${D}${mandir}/man1
28*4882a593Smuzhiyun    install -m 0644 memstat.1 ${D}${mandir}/man1
29*4882a593Smuzhiyun    install -d ${D}${docdir}/${BPN}
30*4882a593Smuzhiyun    install -m 0644 memstat-tutorial.txt ${D}${docdir}/${BPN}
31*4882a593Smuzhiyun}
32