tunctl: new package
PATCH 1/1 tunctl: new package
Tunctl is a tool for controlling the TUN/TAP driver in Linux.
--- package/Config.in | 1 + package/tunctl/Config.in | 6 ++++++ package/tunctl/tunctl.hash | 2 ++ package/tunctl/tunctl.mk | 22 ++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 package/tunctl/Config.in create mode 100644 package/tunctl/tunctl.hash create mode 100644 package/tunctl/tunctl.mk
package/Config.in +1 -0
@@ -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"
package/tunctl/Config.in new file +6 -0
@@ -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/
package/tunctl/tunctl.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff tunctl-1.5.tar.gz
package/tunctl/tunctl.mk new file +22 -0
@@ -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) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) tunctl +endef + +define TUNCTL_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/tunctl $(TARGET_DIR)/usr/sbin/tunctl +endef + +$(eval $(generic-package))
Signature · 1 line
1.9.1
PATCH 1/1 tunctl: new package
Hello,
package/tunctl/tunctl.mk line 15
Quoted 9 lines · Sergio Prado
package/tunctl/tunctl.mk new file +9
-0+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) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) tunctl
Using $(TARGET_CONFIGURE_OPTS) is preferred over manually passing CC and LD, so I've changed this and applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 tunctl: new package
Quoted 5 lines
package/tunctl/tunctl.mk line 15
Quoted 2 lines
package/tunctl/tunctl.mk new file +2
-0+define TUNCTL_BUILD_CMDS + $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) tunctlUsing $(TARGET_CONFIGURE_OPTS) is preferred over manually passing CC and LD, so I've changed this and applied. Thanks!
Thanks Thomas!
Should we update the Buildroot manual since it is still using CC and LD in the generic-package tutorial example?
Best regards,
Sergio Prado
Quoted 5 lines
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160725/1fafff3c/attachment.html>
PATCH 1/1 tunctl: new package
Hello,
Quoted 2 lines · Sergio Prado
Should we update the Buildroot manual since it is still using CC and LD in the generic-package tutorial example?
Yes, we probably should. And we should also document somewhere those "useful variables" for packages, so that people know which one they can/should use.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com