78f962f3b61f85089fa518e5e68073644efb9b7d
[feed/packages.git] / utils / opendoas / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=opendoas
4 PKG_VERSION:=6.8.2
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://github.com/Duncaen/OpenDoas/releases/download/v$(PKG_VERSION)
9 PKG_HASH:=4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0
10
11 PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
12 PKG_LICENSE:=ISC, BSD-3-Clause
13 PKG_LICENSE_FILES:=LICENSE
14
15 PKG_INSTALL:=1
16 PKG_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/opendoas
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Portable OpenBSD doas to execute commands as another user
24 URL:=https://github.com/Duncaen/OpenDoas
25 DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam
26 endef
27
28 define Package/opendoas/description
29 OpenDoas: a portable version of OpenBSD's doas command
30
31 doas is a minimal replacement for the venerable sudo. It was initially
32 written by Ted Unangst of the OpenBSD project to provide 95% of the features
33 of sudo with a fraction of the codebase.
34 endef
35
36 define Package/opendoas/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(CP) $(PKG_INSTALL_DIR)/usr/bin/doas $(1)/usr/bin/
39 endef
40
41 $(eval $(call BuildPackage,opendoas))