Date: Sun, 30 Jan 2011 16:56:33 +1100 From: Lawrence Stewart <lstewart@freebsd.org> To: ashish@FreeBSD.org Cc: freebsd-ports@freebsd.org Subject: Adding a PAM config option to net-im/ejabberd Message-ID: <4D44FD91.7070607@freebsd.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040406070202080300030402
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi Ashish,
What do you think about applying the attached patch to the ejabberd
port? It installs some parts required to allow ejabberd to auth against
PAM and is working great for me.
Cheers,
Lawrence
--------------040406070202080300030402
Content-Type: text/plain;
name="ejabberd_withpam.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ejabberd_withpam.patch"
--- Makefile 2010-10-25 08:55:04.000000000 +1100
+++ Makefile.withpam 2011-01-10 01:52:36.000000000 +1100
@@ -23,7 +23,8 @@
USE_RC_SUBR= ${PORTNAME}
NOPRECIOUSMAKEVARS= yes
-OPTIONS= ODBC "Enable ODBC support" off
+OPTIONS= ODBC "Enable ODBC support" off \
+ PAM "Enable PAM auth support" off
MAKE_ENV= PORTVERSION=${PORTVERSION}
CONFIGURE_ARGS+=--localstatedir=/var
@@ -55,6 +56,13 @@
PLIST_SUB+= ODBC="@comment "
.endif
+.if defined(WITH_PAM)
+CONFIGURE_ARGS+=--enable-pam
+PLIST_SUB+= PAM=""
+.else
+PLIST_SUB+= PAM="@comment "
+.endif
+
.if defined(NOPORTDOCS)
MAKE_ARGS+= NOPORTDOCS=${NOPORTDOCS}
.endif
--- pkg-plist 2010-10-01 02:22:15.000000000 +1000
+++ pkg-plist.withpam 2011-01-10 01:50:56.000000000 +1100
@@ -58,6 +58,8 @@
%%ODBC%%lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/%%PORTNAME%%_odbc.beam
%%ODBC%%lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/%%PORTNAME%%_odbc_sup.beam
%%ODBC%%lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/odbc_queries.beam
+%%PAM%%lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/epam.beam
+%%PAM%%lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/priv/bin/epam
lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/dynamic_compile.beam
lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/ejabberd_captcha.beam
lib/erlang/lib/%%PORTNAME%%-%%PORTVERSION%%/ebin/ejabberd_commands.beam
--------------040406070202080300030402--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D44FD91.7070607>
