[Packages] net/wifidog:
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ethtool
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Display or change ethernet card settings
28 URL:=http://sourceforge.net/projects/gkernel/
29 endef
30
31 define Package/ethtool/description
32 ethtool is used for querying settings of an ethernet device and changing them.
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/ethtool/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,ethtool))