diff mbox series

[meta-oe] pam-radius: add recipe

Message ID 20241205125831.3715975-1-yi.zhao@windriver.com
State Accepted
Headers show
Series [meta-oe] pam-radius: add recipe | expand

Commit Message

Yi Zhao Dec. 5, 2024, 12:58 p.m. UTC
The RADIUS authentication PAM module allows any PAM-capable machine to
become a RADIUS client for authentication and accounting requests.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../recipes-extended/pam/pam-radius_3.0.0.bb  | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb b/meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb
new file mode 100644
index 000000000..50a540e46
--- /dev/null
+++ b/meta-oe/recipes-extended/pam/pam-radius_3.0.0.bb
@@ -0,0 +1,30 @@ 
+SUMMARY = "PAM module for RADIUS authentication"
+DESCRIPTION = "This allows any PAM-capable machine to become a RADIUS client for \
+authentication and accounting requests. You will need a RADIUS server to perform \
+the actual authentication."
+HOMEPAGE = "http://freeradius.org/pam_radius_auth/"
+
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cbbd794e2a0a289b9dfcc9f513d1996e"
+
+SRC_URI = "git://github.com/FreeRADIUS/pam_radius.git;protocol=https;branch=master"
+SRCREV="b6442c3e0147f1019990520483fa3a30e4ccf059"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "libpam"
+
+inherit autotools-brokensep features_check
+REQUIRED_DISTRO_FEATURES = "pam"
+
+EXTRA_OECONF = "--disable-developer"
+
+do_install() {
+    install -d ${D}${sysconfdir}
+    install -m 644 ${S}/pam_radius_auth.conf ${D}${sysconfdir}
+    install -d ${D}${base_libdir}/security
+    install -m 644 ${S}/pam_radius_auth.so ${D}${base_libdir}/security
+}
+
+FILES:${PN} += "${base_libdir}/security/*.so"
+FILES:${PN}-dbg += "${base_libdir}/security/.debug"