ntpd: Supports apk version semantics
authorHirokazu MORIKAWA <morikw2@gmail.com>
Sun, 17 Nov 2024 18:50:13 +0000 (20:50 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Nov 2024 18:50:13 +0000 (20:50 +0200)
See: https://github.com/openwrt/packages/issues/23706

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
(cherry picked from commit de9f4eb3245892469de9563eb077a9250cbb3ddd)

net/ntpd/Makefile

index 343bb740ddaec8a629ad5b1fc64dc9d3216f4752..d9d02d213fea8b09bcd402b9cce8e71c01ae458d 100644 (file)
@@ -8,12 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ntp
-PKG_VERSION:=4.2.8p17
-PKG_RELEASE:=2
+PKG_REALVERSION:=4.2.8p17
+PKG_VERSION:=$(subst p,_p,$(PKG_REALVERSION))
+PKG_RELEASE:=3
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_REALVERSION).tar.gz
 PKG_SOURCE_URL:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
 PKG_HASH:=103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REALVERSION)
 
 PKG_LICENSE:=NTP
 PKG_LICENSE_FILES:=COPYRIGHT html/copyright.html