2022-02-14 18:36:12 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=opendoas
|
|
|
|
PKG_VERSION:=6.8.2
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=3
|
2022-02-14 18:36:12 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/Duncaen/OpenDoas/releases/download/v$(PKG_VERSION)
|
|
|
|
PKG_HASH:=4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
|
2024-01-31 04:27:53 +08:00
|
|
|
PKG_LICENSE:=ISC BSD-3-Clause
|
2022-02-14 18:36:12 +08:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/opendoas
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Portable OpenBSD doas to execute commands as another user
|
|
|
|
URL:=https://github.com/Duncaen/OpenDoas
|
2022-08-16 21:02:49 +08:00
|
|
|
DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam
|
2022-02-14 18:36:12 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/opendoas/description
|
|
|
|
OpenDoas: a portable version of OpenBSD's doas command
|
|
|
|
|
|
|
|
doas is a minimal replacement for the venerable sudo. It was initially
|
|
|
|
written by Ted Unangst of the OpenBSD project to provide 95% of the features
|
|
|
|
of sudo with a fraction of the codebase.
|
|
|
|
endef
|
|
|
|
|
2022-09-15 08:21:50 +08:00
|
|
|
CONFIGURE_ARGS += $(if $(CONFIG_BUSYBOX_CONFIG_PAM),--with,--without)-pam
|
|
|
|
|
2022-02-14 18:36:12 +08:00
|
|
|
define Package/opendoas/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/doas $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,opendoas))
|