You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

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