ports/126218: New port: www/mod_auth_openid An authentication module for the Apache 2 webserver with OpenID

Sutra Zhou zhoushuqun at gmail.com
Sun Aug 3 16:50:02 UTC 2008


>Number:         126218
>Category:       ports
>Synopsis:       New port: www/mod_auth_openid An authentication module for the Apache 2 webserver with OpenID
>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:   Sun Aug 03 16:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sutra Zhou
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD www.redv.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat Jun 28 22:40:44 CST 2008     sutra at www.redv.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
mod_auth_openid is an authentication module for the Apache 2 webserver.
It handles the functions of an OpenID consumer as specified in the OpenID
2.0 specification.

WWW: http://trac.butterfat.net/public/mod_auth_openid
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	/usr/ports/www/mod_auth_openid/
#	/usr/ports/www/mod_auth_openid/Makefile
#	/usr/ports/www/mod_auth_openid/distinfo
#	/usr/ports/www/mod_auth_openid/pkg-descr
#	/usr/ports/www/mod_auth_openid/pkg-plist
#	/usr/ports/www/mod_auth_openid/pkg-deinstall
#
echo c - /usr/ports/www/mod_auth_openid/
mkdir -p /usr/ports/www/mod_auth_openid/ > /dev/null 2>&1
echo x - /usr/ports/www/mod_auth_openid/Makefile
sed 's/^X//' >/usr/ports/www/mod_auth_openid/Makefile << 'END-of-/usr/ports/www/mod_auth_openid/Makefile'
X# New ports collection makefile for:	mod_auth_openid
X# Date created:				3 August 2008
X# Whom:					Sutra Zhou <zhoushuqun at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_auth_openid
XPORTVERSION=	0.3
XCATEGORIES=	www
XMASTER_SITES=	http://butterfat.net/releases/mod_auth_openid/
X
XMAINTAINER=	zhoushuqun at gmail.com
XCOMMENT=	An authentication module for the Apache 2 webserver with OpenID
X
XLIB_DEPENDS=	opkele:${PORTSDIR}/devel/libopkele \
X		sqlite3:${PORTSDIR}/databases/sqlite34
X
XUSE_APACHE=	2.0+
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--with-pcre=${LOCALBASE}
X
XCFLAGS+=	-I${LOCALBASE}/include
X
X.include <bsd.port.mk>
END-of-/usr/ports/www/mod_auth_openid/Makefile
echo x - /usr/ports/www/mod_auth_openid/distinfo
sed 's/^X//' >/usr/ports/www/mod_auth_openid/distinfo << 'END-of-/usr/ports/www/mod_auth_openid/distinfo'
XMD5 (mod_auth_openid-0.3.tar.gz) = 6467856c05662eb6f1c24cbf7057a21b
XSHA256 (mod_auth_openid-0.3.tar.gz) = 99476b7984214c0a01d124a654f9f5a2b9c77dab5d5d1f719c448a6f77038295
XSIZE (mod_auth_openid-0.3.tar.gz) = 336753
END-of-/usr/ports/www/mod_auth_openid/distinfo
echo x - /usr/ports/www/mod_auth_openid/pkg-descr
sed 's/^X//' >/usr/ports/www/mod_auth_openid/pkg-descr << 'END-of-/usr/ports/www/mod_auth_openid/pkg-descr'
Xmod_auth_openid is an authentication module for the Apache 2 webserver.
XIt handles the functions of an OpenID consumer as specified in the OpenID
X2.0 specification.
X
XWWW: http://trac.butterfat.net/public/mod_auth_openid
END-of-/usr/ports/www/mod_auth_openid/pkg-descr
echo x - /usr/ports/www/mod_auth_openid/pkg-plist
sed 's/^X//' >/usr/ports/www/mod_auth_openid/pkg-plist << 'END-of-/usr/ports/www/mod_auth_openid/pkg-plist'
Xlibexec/apache22/mod_auth_openid.so
END-of-/usr/ports/www/mod_auth_openid/pkg-plist
echo x - /usr/ports/www/mod_auth_openid/pkg-deinstall
sed 's/^X//' >/usr/ports/www/mod_auth_openid/pkg-deinstall << 'END-of-/usr/ports/www/mod_auth_openid/pkg-deinstall'
X#!/bin/sh
X#
X# Try to de-activate authopenid_module in the installed httpd.conf and warn
X# if this fails.
X#
X# $FreeBSD$
X#
X
Xif [ "$2" != "POST-DEINSTALL" ]; then
X	exit 0
Xfi
X
XTMPDIR=${TMPDIR:=/tmp}
XPKG_TMPDIR=${PKG_TMPDIR:=${TMPDIR}}
X
Xapxscmd=${PKG_PREFIX}/sbin/apxs
Xtmpdir=${PKG_TMPDIR}/deinstmod_dav_svn.$$
X
Xif [ ! -x ${apxscmd} ]; then
X	echo Can\'t find the apxs program: ${apxscmd}.
X	exit 1
Xfi
X
Xconfdir=`${apxscmd} -q SYSCONFDIR`
X
Xif [ ! -d ${confdir} ]; then
X	echo Can\'t find Apache conf dir: ${confdir}
X	exit 1
Xfi
X
Xif [ -f ${confdir}/httpd.conf ]; then
X	conffile=httpd.conf
Xfi
Xif [ -f ${confdir}/httpd.conf.default ]; then
X	conffile="${conffile} httpd.conf.default"
Xfi
Xif [ -z "${conffile}" ]; then
X	echo Can\'t find either of ${confdir}/httpd.conf or
X	echo ${confdir}/httpd.conf.default.
X	exit 1
Xfi
X
Xif ! mkdir ${tmpdir}; then
X	echo Can\'t create temporary directory: ${tmpdir}
X	exit 1
Xfi
X
Xfor i in ${conffile}; do
X	awk '{if (!/^LoadModule authopenid_module/) \
X	    print $0}' < ${confdir}/$i > ${tmpdir}/$i
X	echo Removing authopenid_module from $i in config dir: ${confdir}
X	cat ${tmpdir}/$i > ${confdir}/$i
Xdone
X
Xrm -rf ${tmpdir}
X
Xexit 0
END-of-/usr/ports/www/mod_auth_openid/pkg-deinstall
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list