isc-dhcp: Use apk-compatible versioning
authorRobert Marko <robimarko@gmail.com>
Tue, 12 Nov 2024 17:09:17 +0000 (18:09 +0100)
committerRobert Marko <robimarko@gmail.com>
Wed, 13 Nov 2024 10:03:43 +0000 (11:03 +0100)
Adjust isc-dhcp versioning to be compatible with APK.

Signed-off-by: Robert Marko <robimarko@gmail.com>
net/isc-dhcp/Makefile

index 87a6416b75356695e9dbd51762bdc74819df9b21..c1458f336259a6ce1e0d3ed33b81de119da2f8ef 100644 (file)
@@ -9,7 +9,8 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=isc-dhcp
 UPSTREAM_NAME:=dhcp
-PKG_VERSION:=4.4.3-P1
+PKG_REALVERSION:=4.4.3-P1
+PKG_VERSION:=4.4.3_p1
 PKG_RELEASE:=8
 
 PKG_LICENSE:=BSD-3-Clause
@@ -17,16 +18,16 @@ PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>
 PKG_CPE_ID:=cpe:/a:isc:dhcp
 
-PKG_SOURCE:=$(UPSTREAM_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/$(PKG_VERSION) \
-               http://ftp.funet.fi/pub/mirrors/ftp.isc.org/isc/dhcp/$(PKG_VERSION) \
-               http://ftp.iij.ad.jp/pub/network/isc/dhcp/$(PKG_VERSION)
+PKG_SOURCE:=$(UPSTREAM_NAME)-$(PKG_REALVERSION).tar.gz
+PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/$(PKG_REALVERSION) \
+               http://ftp.funet.fi/pub/mirrors/ftp.isc.org/isc/dhcp/$(PKG_REALVERSION) \
+               http://ftp.iij.ad.jp/pub/network/isc/dhcp/$(PKG_REALVERSION)
 PKG_HASH:=0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21dc73c7
 
 PKG_FIXUP:=autoreconf
 PKG_BUILD_PARALLEL:=1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(UPSTREAM_NAME)-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(UPSTREAM_NAME)-$(PKG_REALVERSION)
 
 include $(INCLUDE_DIR)/package.mk