mtr: update to 0.93

Update mtr to 0.93
Add size optimization options
ath79 ipk size: 31.9k -> 31.4k

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
(cherry picked from commit ad5615737a)
This commit is contained in:
DENG Qingfang 2019-12-10 20:04:47 +08:00 committed by Josef Schlehofer
parent 5fe674a86e
commit b8bd94ef81
No known key found for this signature in database
GPG Key ID: B950216FE4329F4C
1 changed files with 7 additions and 16 deletions

View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mtr
PKG_VERSION:=0.92
PKG_RELEASE:=6
PKG_VERSION:=0.93
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.bitwizard.nl/mtr/files
PKG_HASH:=f2979db9e2f41aa8e6574e7771767c9afe111d9213814eb47f5e1e71876e4382
PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr
PKG_HASH:=229c673d637bd7dbb96471623785a47e85da0b1944978200c949994c1e6af10d
PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
@ -23,20 +23,8 @@ PKG_CPE_ID:=cpe:/a:matt_kimball_and_roger_wolff:mtr
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
# Creation of .tarball-version is an attempt to make it explicit to configure
# script the program version. See discussions at link [1] for more details
#
# [1] mtr: add autoreconf, https://github.com/openwrt/packages/pull/6962#issuecomment-419156300
#
define Build/Prepare
$(call Build/Prepare/Default)
echo "$(PKG_VERSION)" >$(PKG_BUILD_DIR)/.tarball-version
endef
define Package/mtr
SECTION:=net
CATEGORY:=Network
@ -56,6 +44,9 @@ define Package/mtr/description
running statistics about each machine.
endef
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
CONFIGURE_ARGS += \
--without-gtk \
$(call autoconf_bool,CONFIG_IPV6,ipv6)