From: Nicolas Thill Date: Sat, 28 Oct 2006 20:54:33 +0000 (+0000) Subject: use target optimization flags, Makefile cleanup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bec6c933c2a8614ce6d1b358275cdc366315f546;p=openwrt%2Fsvn-archive%2Farchive.git use target optimization flags, Makefile cleanup SVN-Revision: 5324 --- diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile index 86e5414164..7051b5be78 100644 --- a/net/vnstat/Makefile +++ b/net/vnstat/Makefile @@ -11,14 +11,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vnstat PKG_VERSION:=1.4 PKG_RELEASE:=1 -PKG_MD5SUM:=9184f79b5e60499bc059f670032291e5 -PKG_SOURCE_URL:=http://humdi.net/vnstat PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://humdi.net/vnstat +PKG_MD5SUM:=9184f79b5e60499bc059f670032291e5 PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk @@ -26,16 +25,23 @@ define Package/vnstat SECTION:=net CATEGORY:=Network TITLE:=Console-based network traffic monitor - DESCRIPTION:=vnStat is a network traffic monitor for Linux that keeps a log of daily\\\ - network traffic for the selected interface(s). vnStat isn't a packet\\\ - sniffer. The traffic information is analyzed from the /proc -filesystem,\\\ - so vnStat can be used without root permissions.\\\ + DESCRIPTION:=\ + vnStat is a network traffic monitor for Linux that keeps a log of daily \\\ + network traffic for the selected interface(s). vnStat isn't a packet \\\ + sniffer. The traffic information is analyzed from the /proc -filesystem, \\\ + so vnStat can be used without root permissions. URL:=http://humdi.net/vnstat/ endef +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" +endef + define Package/vnstat/install install -d -m0755 $(1)/usr/bin - $(CP) $(PKG_BUILD_DIR)/src/vnstat $(1)/usr/bin/ + install -m0755 $(PKG_BUILD_DIR)/src/vnstat $(1)/usr/bin/ endef $(eval $(call BuildPackage,vnstat))