2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=b4e71f7fa2629250677eefcb338442c5
16 PKG_SOURCE_URL
:=@SF
/gkernel
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/ethtool
28 TITLE
:=Display or change ethernet card settings
29 DESCRIPTION
:=ethtool is used for querying settings of an ethernet device and changing them
30 URL
:=http
://sourceforge.net
/projects
/gkernel
/
34 rm -rf
$(PKG_INSTALL_DIR
)
35 mkdir
-p
$(PKG_INSTALL_DIR
)
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 DESTDIR
="$(PKG_INSTALL_DIR)" \
42 define Package
/ethtool
/install
43 install -d
-m0755
$(1)/usr
/sbin
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
47 $(eval
$(call BuildPackage
,ethtool
))