tunneldigger: set PKG_SOURCE_DATE
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 26 Sep 2023 18:14:57 +0000 (20:14 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 27 Sep 2023 16:16:53 +0000 (18:16 +0200)
opkg requires monotonically increasing version numbers to know which
version of a package is newer. As git commit IDs do not satisfy this
condition, PKG_SOURCE_DATE must be set to the date of the referenced
commit, resulting in the complete version number '2021-03-08-4f72b305-1'.

As the source date also becomes part of the paths inside the download
archive, the source hash must be updated as well.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit 0a3e5dd122abb92f215369eeb0a957114b61746f)

net/tunneldigger/Makefile

index 8cab922f06957ebf30f12e75fe337cfa39eec86d..f314bf2bfe25ad03250c9bde0698cf31ccb950b1 100644 (file)
@@ -5,8 +5,9 @@ PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=https://github.com/wlanslovenija/tunneldigger.git
 PKG_SOURCE_PROTO:=git
+PKG_SOURCE_DATE:=2021-03-08
 PKG_SOURCE_VERSION:=4f72b30578ac3dbc5482f4a54054bf870355bdf5
-PKG_MIRROR_HASH:=babc71c757b757026f63e298bd4bd0edceae220827fff5cfad0af3f04ed529c7
+PKG_MIRROR_HASH:=f4f7bbb5782771c4f775f60a52a9ecf0636ce929d89688f671ee4eb6bedb9f91
 
 PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
 PKG_LICENSE:=AGPL-3.0