blob: ee92fd611899c5c89de7353ca7295ea4074aaed7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=veth
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://w3.epca.com.ve/projects/veth
PKG_MD5SUM:=11536388d9c76552a4b736638a458361
include $(INCLUDE_DIR)/package.mk
define Package/veth
SECTION:=net
CATEGORY:=Network
DEPENDS:=+kmod-tun
TITLE:=Virtual Ethernet Device for Linux
URL:=http://w3.epca.com.ve/projects/veth/
endef
define Package/veth/description
VETH is a daemon that virtualizes a ethernet card in Linux.
The virtualization is done via Universal TUN/TAP Driver.
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/veth \
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)"
endef
define Package/veth/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/veth/vethd $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,veth))
|