Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libpam-radius-auth: new package
@ 2015-08-19 20:46 giovanni.zantedeschi
  2015-08-28  9:03 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: giovanni.zantedeschi @ 2015-08-19 20:46 UTC (permalink / raw)
  To: buildroot

From: "Giovanni Zantedeschi" <giovanni.zantedeschi@datacom.ind.br>

Signed-off-by: Giovanni Zantedeschi <giovanni.zantedeschi@datacom.ind.br>
---
 package/Config.in                                |  1 +
 package/libpam-radius-auth/Config.in             |  6 ++++++
 package/libpam-radius-auth/libpam-radius-auth.mk | 25 ++++++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 package/libpam-radius-auth/Config.in
 create mode 100644 package/libpam-radius-auth/libpam-radius-auth.mk

diff --git a/package/Config.in b/package/Config.in
index 47d14d7..a4e9e13 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1074,6 +1074,7 @@ menu "Other"
 	source "package/libical/Config.in"
 	source "package/liblinear/Config.in"
 	source "package/libnspr/Config.in"
+	source "package/libpam-radius-auth/Config.in"
 	source "package/libpfm4/Config.in"
 	source "package/libplatform/Config.in"
 	source "package/libplist/Config.in"
diff --git a/package/libpam-radius-auth/Config.in b/package/libpam-radius-auth/Config.in
new file mode 100644
index 0000000..f77fc1a
--- /dev/null
+++ b/package/libpam-radius-auth/Config.in
@@ -0,0 +1,6 @@
+ config BR2_PACKAGE_LIBPAM_RADIUS_AUTH
+        bool "libpam-radius-auth"
+        help
+          Lib needed to use pam-radius and FreeRadius
+
+          http://freeradius.org/pam_radius_auth/
diff --git a/package/libpam-radius-auth/libpam-radius-auth.mk b/package/libpam-radius-auth/libpam-radius-auth.mk
new file mode 100644
index 0000000..8603903
--- /dev/null
+++ b/package/libpam-radius-auth/libpam-radius-auth.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# libpam-radius-auth
+#
+################################################################################
+
+LIBPAM_RADIUS_AUTH_VERSION = release_1_4_0
+LIBPAM_RADIUS_AUTH_SITE = https://github.com/FreeRADIUS/pam_radius.git
+LIBPAM_RADIUS_AUTH_SITE_METHOD = git
+
+LIBPAM_RADIUS_AUTH_INSTALL_STAGING = YES
+LIBPAM_RADIUS_AUTH_AUTORECONF = YES
+LIBPAM_RADIUS_AUTH_LICENSE = GPLv2+
+LIBPAM_RADIUS_AUTH_LICENSE_FILES = LICENSE
+LIBPAM_RADIUS_AUTH_MAKE_OPTS = CC="$(TARGET_CC)" LD="$(TARGET_LD)"
+
+define LIBPAM_RADIUS_AUTH_INSTALL_STAGING_CMDS
+    $(INSTALL) -D -m 0755 $(@D)/pam_radius_auth.so* $(STAGING_DIR)/lib/security/
+endef
+
+define LIBPAM_RADIUS_AUTH_INSTALL_TARGET_CMDS
+    $(INSTALL) -D -m 0755 $(@D)/pam_radius_auth.so* $(TARGET_DIR)/lib/security/
+endef
+
+$(eval $(autotools-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] libpam-radius-auth: new package
  2015-08-19 20:46 [Buildroot] [PATCH 1/1] libpam-radius-auth: new package giovanni.zantedeschi
@ 2015-08-28  9:03 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-08-28  9:03 UTC (permalink / raw)
  To: buildroot

Giovanni,

Thanks for this patch!

On Wed, 19 Aug 2015 17:46:48 -0300, giovanni.zantedeschi wrote:
> From: "Giovanni Zantedeschi" <giovanni.zantedeschi@datacom.ind.br>
> 
> Signed-off-by: Giovanni Zantedeschi <giovanni.zantedeschi@datacom.ind.br>
> ---
>  package/Config.in                                |  1 +
>  package/libpam-radius-auth/Config.in             |  6 ++++++
>  package/libpam-radius-auth/libpam-radius-auth.mk | 25 ++++++++++++++++++++++++
>  3 files changed, 32 insertions(+)
>  create mode 100644 package/libpam-radius-auth/Config.in
>  create mode 100644 package/libpam-radius-auth/libpam-radius-auth.mk

I've applied it to the next branch, but I had to do quite a bit of
changes beforehand:

    [Thomas:
      - make libpam-radius-auth depend on linux-pam (since it's a
        linux-pam plugin, it needs some header files from linux-pam) by
        adding a "if BR2_PACKAGE_LINUX_PAM...endif" block in
        package/Config.in. This way, we will be grouping all the Linux PAM
        plugins together.
      - Fix the indententation in the Config.in file.
      - Use a better Config.in help text, copy/pasted from the website.
      - Use a tarball instead of github. This allows to remove
        AUTORECONF=YES.
      - Add linux-pam as a dependency.
      - Use $(TARGET_CONFIGURE_OPTS) instead of passing just CC/LD, but
        pass it in the environment rather than as options so that the
        CFLAGS/LDFLAGS added by the package Makefile are still taken into
        account.
      - Use mkdir -p + cp -dpfr instead of $(INSTALL) -D since we are
        copying multiple files.
      - Add a hash file.]

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-28  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 20:46 [Buildroot] [PATCH 1/1] libpam-radius-auth: new package giovanni.zantedeschi
2015-08-28  9:03 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox