ports/57654: [new port] www/mod_auth_pam2: Apache 2.0.x authentication module which supports PAM.
Clement Laforet
sheepkiller at cultdeadsheep.org
Mon Oct 6 17:40:17 UTC 2003
>Number: 57654
>Category: ports
>Synopsis: [new port] www/mod_auth_pam2: Apache 2.0.x authentication module which supports PAM.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 06 10:40:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 08:20:10 CEST 2003 clement at lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386
>Description:
The PAM authentication module implements Basic authentication on top of the
Pluggable Authentication Module library. Thereby it supports whatever
authentication method your PAM subsystem has specific support installed &
configured for.
WWW: http://pam.sourceforge.net/mod_auth_pam/
>How-To-Repeat:
N/A.
>Fix:
--- mod_auth_pam2.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mod_auth_pam2
# mod_auth_pam2/Makefile
# mod_auth_pam2/distinfo
# mod_auth_pam2/pkg-descr
# mod_auth_pam2/pkg-plist
# mod_auth_pam2/files
# mod_auth_pam2/files/patch-Makefile
#
echo c - mod_auth_pam2
mkdir -p mod_auth_pam2 > /dev/null 2>&1
echo x - mod_auth_pam2/Makefile
sed 's/^X//' >mod_auth_pam2/Makefile << 'END-of-mod_auth_pam2/Makefile'
X# New ports collection makefile for: mod_auth_pam2
X# Date created: Sun Oct 5
X# Whom: Clement Laforet <sheepkiller at cultdeadsheep.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_auth_pam
XPORTVERSION= 1.1.1
XCATEGORIES= www
XMASTER_SITES= http://pam.sourceforge.net/mod_auth_pam/dist/
XDISTNAME= ${PORTNAME}-2.0-${PORTVERSION}
X
XMAINTAINER= sheepkiller at cotds.org
XCOMMENT= Allows users to use PAM modules for user authentication
X
XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XLATEST_LINK= mod_auth_pam2
X
XUSE_GMAKE= YES
XMAKE_ENV+= APXS=${APXS}
XWRKSRC= ${WRKDIR}/${PORTNAME}
XAPXS?= ${LOCALBASE}/sbin/apxs
X
Xpost-install:
X ${MKDIR} ${EXAMPLESDIR}
X ${INSTALL_DATA} ${WRKSRC}/samples/httpd ${EXAMPLESDIR}/pam-httpd.sample
X
X.include <bsd.port.mk>
END-of-mod_auth_pam2/Makefile
echo x - mod_auth_pam2/distinfo
sed 's/^X//' >mod_auth_pam2/distinfo << 'END-of-mod_auth_pam2/distinfo'
XMD5 (mod_auth_pam-2.0-1.1.1.tar.gz) = ab873520ddd2fee7d480dfd53e464e0a
END-of-mod_auth_pam2/distinfo
echo x - mod_auth_pam2/pkg-descr
sed 's/^X//' >mod_auth_pam2/pkg-descr << 'END-of-mod_auth_pam2/pkg-descr'
XThe PAM authentication module implements Basic authentication on top of the
XPluggable Authentication Module library. Thereby it supports whatever
Xauthentication method your PAM subsystem has specific support installed &
Xconfigured for.
X
XWWW: http://pam.sourceforge.net/mod_auth_pam/
END-of-mod_auth_pam2/pkg-descr
echo x - mod_auth_pam2/pkg-plist
sed 's/^X//' >mod_auth_pam2/pkg-plist << 'END-of-mod_auth_pam2/pkg-plist'
Xlibexec/apache2/mod_auth_pam.so
X at exec %D/sbin/apxs -e -A -n auth_pam %D/%f
Xlibexec/apache2/mod_auth_sys_group.so
X at exec %D/sbin/apxs -e -A -n auth_sys_group %D/%f
X%%EXAMPLESDIR%%/pam-httpd.sample
X at dirrm %%EXAMPLESDIR%%
X at unexec echo "===> If you do not plan on reinstalling mod_auth_pam, you must manually remove"; echo "===> references to it in httpd.conf."
END-of-mod_auth_pam2/pkg-plist
echo c - mod_auth_pam2/files
mkdir -p mod_auth_pam2/files > /dev/null 2>&1
echo x - mod_auth_pam2/files/patch-Makefile
sed 's/^X//' >mod_auth_pam2/files/patch-Makefile << 'END-of-mod_auth_pam2/files/patch-Makefile'
X--- Makefile.orig Sat Aug 24 15:33:12 2002
X+++ Makefile Sun Oct 5 20:41:52 2003
X@@ -1,5 +1,4 @@
X LIBS=-lpam
X-APXS=apxs
X # try this, if you're not root and apxs is in the standard place
X #APXS=/usr/sbin/apxs
X
X@@ -14,8 +13,7 @@
X $(APXS) -c $< $(LIBS)
X
X install: $(TARGETS)
X- $(APXS) -i $(TARGETS)
X- [ -d /etc/pam.d/ -a ! -f /etc/pam.d/httpd ] && install -m 644 -o root -g root samples/httpd /etc/pam.d/
X+ $(APXS) -i -A $(TARGETS)
X
X clean:
X -rm -f $(TARGETS) *~ $(SOURCES:.c=.slo) $(SOURCES:.c=.lo) $(SOURCES:.c=.so) $(SOURCES:.c=.o)
END-of-mod_auth_pam2/files/patch-Makefile
exit
--- mod_auth_pam2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list