opendoas: avoid libpam dependency

Package is failing to build because it picks up libpam dependency
regardless of `BUSYBOX_CONFIG_PAM`.

Use configure args --with-pam, --without-pam to assert the option.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 8cb0ed95dd)
This commit is contained in:
Eneas U de Queiroz 2022-09-14 21:21:50 -03:00 committed by Josef Schlehofer
parent 53c0a2767c
commit e1d7992559
No known key found for this signature in database
GPG Key ID: B950216FE4329F4C
1 changed files with 2 additions and 0 deletions

View File

@ -33,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/