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
15 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/ifenslave
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
33 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/ifenslave \
34 $(LINUX_DIR
)/Documentation
/networking
/ifenslave.c
37 define Package
/ifenslave
/install
38 $(INSTALL_DIR
) $(1)/sbin
39 $(CP
) $(PKG_BUILD_DIR
)/ifenslave
$(1)/sbin
/
42 $(eval
$(call BuildPackage
,ifenslave
))