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