Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / utils / opendoas / Makefile
index 0019b5643bfd5e66f1e4cd3a3d5bb6e79a3e77c6..23882d521d3fe6dae86f8be3bcd411933000be69 100644 (file)
@@ -22,6 +22,7 @@ define Package/opendoas
   CATEGORY:=Utilities
   TITLE:=Portable OpenBSD doas to execute commands as another user
   URL:=https://github.com/Duncaen/OpenDoas
+  DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam
 endef
 
 define Package/opendoas/description
@@ -32,6 +33,8 @@ define Package/opendoas/description
  of sudo with a fraction of the codebase.
 endef
 
+CONFIGURE_ARGS += $(if $(CONFIG_BUSYBOX_CONFIG_PAM),--with,--without)-pam
+
 define Package/opendoas/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/doas $(1)/usr/bin/