2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/gkernel
16 PKG_MD5SUM
:=e0f617779a58b77af061a9e5178d0b25
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/ethtool
25 TITLE
:=Display or change ethernet card settings
26 URL
:=http
://sourceforge.net
/projects
/gkernel
/
29 define Package
/ethtool
/description
30 ethtool is used for querying settings of an ethernet device and changing them.
33 define Build
/Configure
34 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
37 $(call Build
/Configure
/Default
, \
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 SPECIAL_CFLAGS
="-pthread $(TARGET_LDFLAGS)"
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
49 define Package
/ethtool
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ethtool
$(1)/usr
/sbin
/
54 $(eval
$(call BuildPackage
,ethtool
))