source: trunk/package/ifenslave/Makefile @ 7509

Last change on this file since 7509 was 7509, checked in by kaloz, 10 years ago

fix the annoying error on package scan

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 997 bytes
Line 
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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=ifenslave
13PKG_RELEASE:=1
14
15include $(INCLUDE_DIR)/package.mk
16
17define 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  DESCRIPTION:=ifenslave is needed to add/remove interfaces to/from ethernet bond devices
23  VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
24  URL:=http://www.kernel.org
25endef
26
27define Build/Prepare
28        $(CP) $(LINUX_DIR)/Documentation/networking/ifenslave.c  $(PKG_BUILD_DIR)/
29endef
30
31define Build/Compile
32        $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/ifenslave.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
33endef
34
35define Package/ifenslave/install
36        $(INSTALL_DIR) $(1)/sbin
37        $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
38endef
39
40$(eval $(call BuildPackage,ifenslave))
Note: See TracBrowser for help on using the repository browser.