tunctl: new package

Tunctl is a tool for controlling the TUN/TAP driver in Linux.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
[Thomas: use $(TARGET_CONFIGURE_OPTS).]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Sergio Prado 2016-07-23 11:18:50 -03:00 committed by Thomas Petazzoni
parent ab03eaedf8
commit 689b2b74ef
4 changed files with 31 additions and 0 deletions

View file

@ -1575,6 +1575,7 @@ endif
source "package/tn5250/Config.in"
source "package/tor/Config.in"
source "package/transmission/Config.in"
source "package/tunctl/Config.in"
source "package/tvheadend/Config.in"
source "package/udpcast/Config.in"
source "package/ulogd/Config.in"

6
package/tunctl/Config.in Normal file
View file

@ -0,0 +1,6 @@
config BR2_PACKAGE_TUNCTL
bool "tunctl"
help
Tunctl is a tool for controlling the TUN/TAP driver in Linux.
https://sourceforge.net/projects/tunctl/

View file

@ -0,0 +1,2 @@
# Locally computed:
sha256 aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff tunctl-1.5.tar.gz

22
package/tunctl/tunctl.mk Normal file
View file

@ -0,0 +1,22 @@
################################################################################
#
# tunctl
#
################################################################################
TUNCTL_VERSION = 1.5
TUNCTL_SOURCE = tunctl-$(TUNCTL_VERSION).tar.gz
TUNCTL_SITE = http://downloads.sourceforge.net/project/tunctl/tunctl/$(TUNCTL_VERSION)
TUNCTL_LICENSE = GPLv2
TUNCTL_LICENSE_FILES = tunctl.c
define TUNCTL_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) tunctl
endef
define TUNCTL_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/tunctl $(TARGET_DIR)/usr/sbin/tunctl
endef
$(eval $(generic-package))