f7b5799c27bca6d1670d917f486055de2b9996e4
[openwrt/svn-archive/archive.git] / net / ethtool / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ethtool
12 PKG_VERSION:=3
13 PKG_RELEASE:=0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/gkernel
17 PKG_MD5SUM:=b4e71f7fa2629250677eefcb338442c5
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ethtool
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Display or change ethernet card settings
29 DESCRIPTION:=\
30 ethtool is used for querying settings of an ethernet device and changing them.
31 URL:=http://sourceforge.net/projects/gkernel/
32 endef
33
34 # uses GNU configure
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 all install
40 endef
41
42 define Package/ethtool/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin
45 endef
46
47 $(eval $(call BuildPackage,ethtool))