sudo: modify version to Alpine Linux one
authorRosen Penev <rosenp@gmail.com>
Mon, 12 Aug 2024 02:13:38 +0000 (19:13 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 17 Aug 2024 01:40:31 +0000 (18:40 -0700)
The goal here is compatibility with APK.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
admin/sudo/Makefile
admin/sudo/test.sh

index 1adb14de6063e64efabc7010fc4ecbf07f82aab5..9d67bd04b7b98c7fc337e307bc3514263d738a35 100644 (file)
@@ -8,12 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sudo
-PKG_VERSION:=1.9.15p5
+PKG_REALVERSION:=1.9.15p5
+PKG_VERSION:=$(subst p,_p,$(PKG_REALVERSION))
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_REALVERSION).tar.gz
 PKG_SOURCE_URL:=https://www.sudo.ws/dist
 PKG_HASH:=558d10b9a1991fb3b9fa7fa7b07ec4405b7aefb5b3cb0b0871dbc81e3a88e558
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REALVERSION)
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 
index 9d20c085b3fc3e899bc15cfb7585683dceb38f41..da24851fb731bde3081933e55af5851a99ace942 100644 (file)
@@ -2,6 +2,6 @@
 
 case "$1" in
        sudo)
-               sudo --version | grep "$2"
+               sudo --version | grep "${2//_p/p}"
                ;;
 esac