[packages] polipo: solve a bunch of "sh: bad number" errors in init script, always...
[openwrt/svn-archive/archive.git] / net / ethtool / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ethtool
11 PKG_VERSION:=2.6.35
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/gkernel
16 PKG_MD5SUM:=e0f617779a58b77af061a9e5178d0b25
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ethtool
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Display or change ethernet card settings
26 URL:=http://sourceforge.net/projects/gkernel/
27 endef
28
29 define Package/ethtool/description
30 ethtool is used for querying settings of an ethernet device and changing them.
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
35 ./autogen.sh \
36 );
37 $(call Build/Configure/Default, \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 SPECIAL_CFLAGS="-pthread $(TARGET_LDFLAGS)"
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 install
47 endef
48
49 define Package/ethtool/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,ethtool))