Adding a PAM config option to net-im/ejabberd
Lawrence Stewart
lstewart at freebsd.org
Sun Jan 30 06:13:32 UTC 2011
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
-------------- next part --------------
--- 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
More information about the freebsd-ports
mailing list