add a workaround for a wds related crash
[openwrt.git] / package / ifenslave / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ifenslave
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/ifenslave
18 SECTION:=net
19 CATEGORY:=Network
20 DEPENDS:=@LINUX_2_6 +kmod-bonding
21 TITLE:=A utility to manipulate kernel ethernet bonding devices
22 DESCRIPTION:=ifenslave is needed to add/remove interfaces to/from ethernet bond devices
23 VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
24 URL:=http://www.kernel.org
25 endef
26
27 define Build/Prepare
28 $(CP) $(LINUX_DIR)/Documentation/networking/ifenslave.c $(PKG_BUILD_DIR)/
29 endef
30
31 define Build/Compile
32 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/ifenslave.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
33 endef
34
35 define Package/ifenslave/install
36 $(INSTALL_DIR) $(1)/sbin
37 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
38 endef
39
40 $(eval $(call BuildPackage,ifenslave))
This page took 0.041945 seconds and 5 git commands to generate.