Add a first implementation of a source feed checkout
[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_VERSION:=$(LINUX_VERSION)
14 PKG_RELEASE:=1
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ifenslave
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=@LINUX_2_6 +kmod-bonding
24 TITLE:=A utility to manipulate kernel ethernet bonding devices
25 DESCRIPTION:=ifenslave is needed to add/remove interfaces to/from ethernet bond devices
26 URL:=http://www.kernel.org
27 endef
28
29 define Build/Prepare
30 $(CP) $(LINUX_DIR)/Documentation/networking/ifenslave.c $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Compile
34 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/ifenslave.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
35 endef
36
37 define Package/ifenslave/install
38 mkdir -p $(1)/sbin
39 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin
40 endef
41
42 $(eval $(call BuildPackage,ifenslave))
This page took 0.039055 seconds and 5 git commands to generate.