summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2008-06-28 06:51:41 +0000
committerAlin Năstac <mrness@gentoo.org>2008-06-28 06:51:41 +0000
commitd670ba95e5d51b2f0f8848b3ebec5b5730d2d8fd (patch)
treea25073edaada7acb87b285b6e3da1c8774ad315f /sys-auth
parentClean old versions (diff)
downloadgentoo-2-d670ba95e5d51b2f0f8848b3ebec5b5730d2d8fd.tar.gz
gentoo-2-d670ba95e5d51b2f0f8848b3ebec5b5730d2d8fd.tar.bz2
gentoo-2-d670ba95e5d51b2f0f8848b3ebec5b5730d2d8fd.zip
Initial import from bug #211062.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pam_radius/ChangeLog11
-rw-r--r--sys-auth/pam_radius/Manifest6
-rw-r--r--sys-auth/pam_radius/files/pam_radius-1.3.17-gentoo.patch56
-rw-r--r--sys-auth/pam_radius/files/server23
-rw-r--r--sys-auth/pam_radius/metadata.xml6
-rw-r--r--sys-auth/pam_radius/pam_radius-1.3.17.ebuild38
6 files changed, 140 insertions, 0 deletions
diff --git a/sys-auth/pam_radius/ChangeLog b/sys-auth/pam_radius/ChangeLog
new file mode 100644
index 000000000000..a605b4db4f07
--- /dev/null
+++ b/sys-auth/pam_radius/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-auth/pam_radius
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_radius/ChangeLog,v 1.1 2008/06/28 06:51:40 mrness Exp $
+
+*pam_radius-1.3.17 (28 Jun 2008)
+
+ 28 Jun 2008; Alin Năstac <mrness@gentoo.org>
+ +files/pam_radius-1.3.17-gentoo.patch, +files/server, +metadata.xml,
+ +pam_radius-1.3.17.ebuild:
+ Initial import from bug #211062.
+
diff --git a/sys-auth/pam_radius/Manifest b/sys-auth/pam_radius/Manifest
new file mode 100644
index 000000000000..b6c79cbb1c4f
--- /dev/null
+++ b/sys-auth/pam_radius/Manifest
@@ -0,0 +1,6 @@
+AUX pam_radius-1.3.17-gentoo.patch 2095 RMD160 d0e492fe8e69c8ec880b3372a186aada7fb7c891 SHA1 cd49bd06188b77178c189d4f31abfbf6198015d9 SHA256 bcd84b2401dfec6201e3a648d9a141b684cf532a2c420ef58f26009cc1cfddd5
+AUX server 955 RMD160 1358a2c61a525330e265f47dd51dd8d625e25680 SHA1 ce41716ea814d9359b0b4a67fbfbc5c738a4f033 SHA256 1f936dd73ae61d305f18be2ca3465531f2ce9cdad3e393dd8f2a807db6e08c03
+DIST pam_radius-1.3.17.tar.gz 31341 RMD160 c3873d5a4275170420f98c2f37def0593293f463 SHA1 7623ca1b636bba729c69c3f50254b856bb4519a7 SHA256 60ee863cbea797be46eff8b9d568af057c6e54335bdb19a6bd2cadde389d7dca
+EBUILD pam_radius-1.3.17.ebuild 908 RMD160 35644ee48d83b8d4e56bea6f64caa93028c0eabc SHA1 374dd01ba1a630eb9edbc8872ac80e83cc3d0532 SHA256 0e108d3f56a16dd4767f8fc0ef9899a71d0a312a734387a8cce44db828f2f9be
+MISC ChangeLog 338 RMD160 552b26b3fa49d0dca84fe46234bf2b1f2b18117d SHA1 f894ca296e2f36b168f3fa6dda49747874744814 SHA256 01bf09d9279ef2b7bf00355eddbeaadd677e12d4bf9bbdc58ff0965b4951c415
+MISC metadata.xml 359 RMD160 6c932f2515d10ee7519a06f75d13e5a668680a94 SHA1 5856252cc5aa7570668975d304af079129c83cdc SHA256 d4ffea49f4f0cbe9ebc32f850bc1f49d78c878bffed9fb60f63b4774631f82ad
diff --git a/sys-auth/pam_radius/files/pam_radius-1.3.17-gentoo.patch b/sys-auth/pam_radius/files/pam_radius-1.3.17-gentoo.patch
new file mode 100644
index 000000000000..fa493e6d6e9d
--- /dev/null
+++ b/sys-auth/pam_radius/files/pam_radius-1.3.17-gentoo.patch
@@ -0,0 +1,56 @@
+diff -Nru pam_radius-1.3.17.orig/Makefile pam_radius-1.3.17/Makefile
+--- pam_radius-1.3.17.orig/Makefile 2008-06-28 08:43:43.000000000 +0200
++++ pam_radius-1.3.17/Makefile 2008-06-28 08:42:57.000000000 +0200
+@@ -8,6 +8,7 @@
+
+ VERSION=1.3.17
+
++LD=$(CC)
+ ######################################################################
+ #
+ # If we're really paranoid, use these flags
+@@ -15,7 +16,7 @@
+ #
+ # If you're not using GCC, then you'll have to change the CFLAGS.
+ #
+-CFLAGS = -Wall -fPIC
++CFLAGS += -Wall -fPIC -fno-strict-aliasing
+ #
+ # On Irix, use this with MIPSPRo C Compiler, and don't forget to export CC=cc
+ # gcc on Irix does not work yet for pam_radius
+@@ -55,7 +56,7 @@
+ # gcc -shared pam_radius_auth.o md5.o -lpam -lc -o pam_radius_auth.so
+ #
+ pam_radius_auth.so: pam_radius_auth.o md5.o
+- ld -Bshareable pam_radius_auth.o md5.o -lpam -o pam_radius_auth.so
++ $(LD) $(LDFLAGS) -shared $(CFLAGS) pam_radius_auth.o md5.o -lpam -o pam_radius_auth.so
+
+ ######################################################################
+ #
+diff -Nru pam_radius-1.3.17.orig/pam_radius_auth.c pam_radius-1.3.17/pam_radius_auth.c
+--- pam_radius-1.3.17.orig/pam_radius_auth.c 2007-03-26 11:36:13.000000000 +0200
++++ pam_radius-1.3.17/pam_radius_auth.c 2008-06-28 08:43:24.000000000 +0200
+@@ -1062,7 +1062,7 @@
+ pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc,CONST char **argv)
+ {
+ CONST char *user;
+- CONST char **userinfo;
++ CONST char *userinfo;
+ char *password = NULL;
+ CONST char *rhost;
+ char *resp2challenge = NULL;
+diff -Nru pam_radius-1.3.17.orig/USAGE pam_radius-1.3.17/USAGE
+--- pam_radius-1.3.17.orig/USAGE 2008-06-28 08:43:43.000000000 +0200
++++ pam_radius-1.3.17/USAGE 2008-06-28 08:42:57.000000000 +0200
+@@ -3,9 +3,9 @@
+
+ The pam configuration can be:
+ ...
+-auth sufficient /lib/security/pam_radius_auth.so [options]
++auth sufficient pam_radius_auth.so [options]
+ ...
+-account sufficient /lib/security/pam_radius_auth.so
++account sufficient pam_radius_auth.so
+
+ ---------------------------------------------------------------------------
+
diff --git a/sys-auth/pam_radius/files/server b/sys-auth/pam_radius/files/server
new file mode 100644
index 000000000000..4c31e60ae856
--- /dev/null
+++ b/sys-auth/pam_radius/files/server
@@ -0,0 +1,23 @@
+# This is pam_radius_auth configuration file.
+#
+# There are 3 fields per line in this file. There may be multiple
+# lines. Blank lines or lines beginning with '#' are treated as
+# comments, and are ignored. The fields are:
+#
+# server[:port] secret [timeout]
+#
+# the port name or number is optional. The default port name is
+# "radius", and is looked up from /etc/services The timeout field is
+# optional. The default timeout is 3 seconds.
+#
+# If multiple RADIUS server lines exist, they are tried in order. The
+# first server to return success or failure causes the module to return
+# success or failure. Only if a server fails to response is it skipped,
+# and the next server in turn is used.
+#
+# The timeout field controls how many seconds the module waits before
+# deciding that the server has failed to respond.
+#
+# server[:port] shared_secret timeout (s)
+# 127.0.0.1 secret 1
+# other-server other-secret 3
diff --git a/sys-auth/pam_radius/metadata.xml b/sys-auth/pam_radius/metadata.xml
new file mode 100644
index 000000000000..37c84e9ded05
--- /dev/null
+++ b/sys-auth/pam_radius/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-dialup</herd>
+ <longdescription>This is the PAM to RADIUS authentication module. It allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests.</longdescription>
+</pkgmetadata>
diff --git a/sys-auth/pam_radius/pam_radius-1.3.17.ebuild b/sys-auth/pam_radius/pam_radius-1.3.17.ebuild
new file mode 100644
index 000000000000..dd37e0838f95
--- /dev/null
+++ b/sys-auth/pam_radius/pam_radius-1.3.17.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_radius/pam_radius-1.3.17.ebuild,v 1.1 2008/06/28 06:51:40 mrness Exp $
+
+inherit eutils pam
+
+DESCRIPTION="PAM RADIUS authentication module"
+HOMEPAGE="http://www.freeradius.org/pam_radius_auth/"
+SRC_URI="ftp://ftp.freeradius.org/pub/radius/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_install() {
+ dopammod pam_radius_auth.so
+
+ insopts -m600
+ insinto /etc/raddb
+ doins "${FILESDIR}"/server
+
+ dodoc README Changelog USAGE
+}
+
+pkg_postinst() {
+ elog "Before you can use this you'll have to add RADIUS servers to /etc/raddb/server."
+ elog "The usage of pam_radius_auth module is explained in /usr/share/doc/${PF}/USAGE."
+}