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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
13 PKG_VERSION
:=$(LINUX_VERSION
)
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/ifenslave
21 DEPENDS
:=@LINUX_2_6
+kmod-bonding
22 TITLE
:=A utility to manipulate kernel ethernet bonding devices
23 DESCRIPTION
:=ifenslave is needed to add
/remove interfaces to
/from ethernet bond devices
24 URL
:=http
://www.kernel.org
28 $(CP
) $(LINUX_DIR
)/Documentation
/networking
/ifenslave.c
$(PKG_BUILD_DIR
)/
32 $(TARGET_CC
) $(TARGET_CFLAGS
) $(PKG_BUILD_DIR
)/ifenslave.c
-o
$(PKG_BUILD_DIR
)/$(PKG_NAME
)
35 define Package
/ifenslave
/install
36 $(INSTALL_DIR
) $(1)/sbin
37 $(CP
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/sbin
/
40 $(eval
$(call BuildPackage
,ifenslave
))