Browse Source

Merge pull request #14638 from nmeyerhans/iputils-20210202

iputils: bump to 20210202 and fix version reporting
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
d367563230
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 6 deletions
  1. +6
    -6
      net/iputils/Makefile
  2. +24
    -0
      net/iputils/patches/001_version_fix.patch

+ 6
- 6
net/iputils/Makefile View File

@ -9,13 +9,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=iputils PKG_NAME:=iputils
PKG_VERSION:=20200821
PKG_VERSION:=20210202
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/iputils/iputils/tar.gz/s$(PKG_VERSION)?
PKG_HASH:=f265da0d02dd2259efd8c57a9c2e0c8bb3361abb14639fcffb26707be5783a5b
PKG_BUILD_DIR:=$(BUILD_DIR)/iputils-s$(PKG_VERSION)
PKG_SOURCE_URL:=https://codeload.github.com/iputils/iputils/tar.gz/$(PKG_VERSION)?
PKG_HASH:=3f557ecfd2ace873801231d2c1f42de73ced9fbc1ef3a438d847688b5fb0e8ab
PKG_BUILD_DIR:=$(BUILD_DIR)/iputils-$(PKG_VERSION)
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net> PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
PKG_LICENSE:=BSD-3-Clause PKG_LICENSE:=BSD-3-Clause
@ -141,8 +141,8 @@ define Package/iputils-tftpd/description
endef endef
define Package/iputils-tftpd/install define Package/iputils-tftpd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//tftpd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tftpd $(1)/usr/sbin/
endef endef
$(eval $(call BuildPackage,iputils-ping)) $(eval $(call BuildPackage,iputils-ping))


+ 24
- 0
net/iputils/patches/001_version_fix.patch View File

@ -0,0 +1,24 @@
Description: set a static version string rather than discern it from git
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,7 @@ add_project_arguments(
conf = configuration_data()
conf.set_quoted('PACKAGE_NAME', meson.project_name())
+conf.set('VCS_TAG', meson.project_version())
conf.set('_GNU_SOURCE', 1, description : 'Enable GNU extensions on systems that have them.')
build_arping = get_option('BUILD_ARPING')
@@ -207,10 +208,10 @@ foreach h : [
endif
endforeach
-git_version_h = vcs_tag(
+git_version_h = configure_file(
input : 'git-version.h.meson',
output : 'git-version.h',
- fallback : meson.project_version()
+ configuration: conf
)
config_h = configure_file(

Loading…
Cancel
Save