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