xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/tunctl/tunctl.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Tool for controlling the Linux TUN/TAP driver"
2*4882a593SmuzhiyunSECTION = "net"
3*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://tunctl.c;beginline=1;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/tunctl/tunctl-${PV}.tar.gz \
7*4882a593Smuzhiyun           file://makefile-add-ldflags.patch \
8*4882a593Smuzhiyun          "
9*4882a593Smuzhiyun
10*4882a593Smuzhiyundo_compile() {
11*4882a593Smuzhiyun    oe_runmake tunctl
12*4882a593Smuzhiyun}
13*4882a593Smuzhiyun
14*4882a593Smuzhiyundo_install() {
15*4882a593Smuzhiyun    install -d ${D}/${sbindir}
16*4882a593Smuzhiyun    install -m 755 tunctl ${D}/${sbindir}
17*4882a593Smuzhiyun}
18