Add init files and iptables rule for ptunnel to work (#2863)
[openwrt/svn-archive/archive.git] / net / ethtool / Makefile
index 0dfd624f1a8aaa6c84c4c35643ccf42db5b27914..c9e023e02e42684d0a57c19bd85d646e5a49c5ab 100644 (file)
@@ -15,7 +15,6 @@ PKG_RELEASE:=0
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/gkernel
 PKG_MD5SUM:=b4e71f7fa2629250677eefcb338442c5
-PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@@ -26,11 +25,13 @@ define Package/ethtool
   SECTION:=net
   CATEGORY:=Network
   TITLE:=Display or change ethernet card settings
-  DESCRIPTION:=\
-       ethtool is used for querying settings of an ethernet device and changing them.
   URL:=http://sourceforge.net/projects/gkernel/
 endef
 
+define Package/ethtool/description
+       ethtool is used for querying settings of an ethernet device and changing them.
+endef
+
 # uses GNU configure
 
 define Build/Compile
@@ -41,7 +42,7 @@ endef
 
 define Package/ethtool/install
        $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ethtool $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,ethtool))