Root/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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=ifenslave
12PKG_RELEASE:=1
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/ifenslave
17  SECTION:=net
18  CATEGORY:=Network
19  DEPENDS:=@LINUX_2_6 +kmod-bonding
20  TITLE:=A utility to manipulate kernel ethernet bonding devices
21  VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
22  URL:=http://www.kernel.org
23endef
24
25define Package/ifenslave/description
26 ifenslave is needed to add/remove interfaces to/from ethernet bond devices.
27endef
28
29define Build/Prepare
30endef
31
32define Build/Compile
33    $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ifenslave \
34        $(LINUX_DIR)/Documentation/networking/ifenslave.c
35endef
36
37define Package/ifenslave/install
38    $(INSTALL_DIR) $(1)/sbin
39    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifenslave $(1)/sbin/
40endef
41
42$(eval $(call BuildPackage,ifenslave))
43

Archive Download this file



interactive