diff mbox series

[1/1] package/pppd: add linux-pam optional dependency

Message ID 20240506200206.111393-1-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series [1/1] package/pppd: add linux-pam optional dependency | expand

Commit Message

Fabrice Fontaine May 6, 2024, 8:02 p.m. UTC
linux-pam is an optional dependency which is enbled by default since
bump to version 2.5.0 in commit 0c15169f5ae57d88a77df34cc896044a37c9597b
and
https://github.com/ppp-project/ppp/commit/2883dd07101bf851e2ea368f0c04c91aea85cff2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/pppd/pppd.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Thomas Petazzoni May 6, 2024, 8:13 p.m. UTC | #1
On Mon,  6 May 2024 22:02:06 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> linux-pam is an optional dependency which is enbled by default since
> bump to version 2.5.0 in commit 0c15169f5ae57d88a77df34cc896044a37c9597b
> and
> https://github.com/ppp-project/ppp/commit/2883dd07101bf851e2ea368f0c04c91aea85cff2
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/pppd/pppd.mk | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas
Peter Korsgaard May 27, 2024, 1:07 p.m. UTC | #2
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > linux-pam is an optional dependency which is enbled by default since
 > bump to version 2.5.0 in commit 0c15169f5ae57d88a77df34cc896044a37c9597b
 > and
 > https://github.com/ppp-project/ppp/commit/2883dd07101bf851e2ea368f0c04c91aea85cff2

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2024.02.x, thanks.
diff mbox series

Patch

diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk
index 616b843e3d..0a1eaf9209 100644
--- a/package/pppd/pppd.mk
+++ b/package/pppd/pppd.mk
@@ -17,6 +17,13 @@  PPPD_AUTORECONF = YES
 PPPD_INSTALL_STAGING = YES
 PPPD_CONF_OPTS = --enable-multilink
 
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+PPPD_CONF_OPTS += --with-pam=$(STAGING_DIR)/usr
+PPPD_DEPENDENCIES += linux-pam
+else
+PPPD_CONF_OPTS += --without-pam
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 PPPD_CONF_OPTS += \
 	--enable-eaptls \