replace a few unnecessary $(shell) calls
[openwrt/mini2440.git] / package / ifenslave / Makefile
blob117d1cfdaba3aff763db6e8250a8855583fc263d
2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id$
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
12 PKG_NAME:=ifenslave
13 PKG_RELEASE:=1
15 include $(INCLUDE_DIR)/package.mk
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 VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
23 URL:=http://www.kernel.org
24 endef
26 define Package/ifenslave/description
27 ifenslave is needed to add/remove interfaces to/from ethernet bond devices.
28 endef
30 define Build/Prepare
31 endef
33 define Build/Compile
34 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ifenslave \
35 $(LINUX_DIR)/Documentation/networking/ifenslave.c
36 endef
38 define Package/ifenslave/install
39 $(INSTALL_DIR) $(1)/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifenslave $(1)/sbin/
41 endef
43 $(eval $(call BuildPackage,ifenslave))