Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2006 18:32:11 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        Pav Lucistnik <pav@FreeBSD.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/95752: [NEW PORT] mail/squirrelmail-login_auth-plugin: auto login based on HTTP auth
Message-ID:  <D0D5B79B-13B0-4EA4-ADD1-B164E477DB1D@lassitu.de>
In-Reply-To: <200604151608.k3FG8YRk059402@freefall.freebsd.org>
References:  <200604151608.k3FG8YRk059402@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-2--692193009
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

> This shar is corrupted. Please resend. Take special care to  
> preserve any tabs.

Any better with this attachment?


--Apple-Mail-2--692193009
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; x-unix-mode=0644;
	name="squirrelmail-login_auth-plugin.shar.txt"
Content-Disposition: attachment;
	filename=squirrelmail-login_auth-plugin.shar.txt

# 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:
#
#	mail/squirrelmail-login_auth-plugin
#	mail/squirrelmail-login_auth-plugin/pkg-plist
#	mail/squirrelmail-login_auth-plugin/pkg-descr
#	mail/squirrelmail-login_auth-plugin/distinfo
#	mail/squirrelmail-login_auth-plugin/Makefile
#
echo c - mail/squirrelmail-login_auth-plugin
mkdir -p mail/squirrelmail-login_auth-plugin > /dev/null 2>&1
echo x - mail/squirrelmail-login_auth-plugin/pkg-plist
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/pkg-plist << 'END-of-mail/squirrelmail-login_auth-plugin/pkg-plist'
X@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin login_auth; fi
X%%SQUIRRELDIR%%/plugins/login_auth/COPYING
X%%SQUIRRELDIR%%/plugins/login_auth/INSTALL
X%%SQUIRRELDIR%%/plugins/login_auth/README
X%%SQUIRRELDIR%%/plugins/login_auth/functions.php
X%%SQUIRRELDIR%%/plugins/login_auth/index.php
X%%SQUIRRELDIR%%/plugins/login_auth/setup.php
X%%SQUIRRELDIR%%/plugins/login_auth/version
X@dirrm %%SQUIRRELDIR%%/plugins/login_auth/
X@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin login_auth; fi
END-of-mail/squirrelmail-login_auth-plugin/pkg-plist
echo x - mail/squirrelmail-login_auth-plugin/pkg-descr
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/pkg-descr << 'END-of-mail/squirrelmail-login_auth-plugin/pkg-descr'
XIf you keep SquirrelMail behind a password-protected directory on your web
Xserver and if PHP has access to the username and password, this plugin will
Xbypass the login screen and use the provided username/password.
X
XIf this plugin enabled and the information isn't present, it doesn't crash
Xor produce error messages. It just doesn't automatically log you in. If the
Xuser/pass information does not work for the IMAP server, this still displays
Xthe login form, just in case the web server password and IMAP password are
Xnot synchronized.
X
XWWW: http://www.squirrelmail.org/plugin_view.php?id=34
END-of-mail/squirrelmail-login_auth-plugin/pkg-descr
echo x - mail/squirrelmail-login_auth-plugin/distinfo
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/distinfo << 'END-of-mail/squirrelmail-login_auth-plugin/distinfo'
XMD5 (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = cec2ad5fa53c29e82f58239afe8c2ec2
XSHA256 (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = 619eb5e423234e1a6ce7545605f28e0064147730503897f3fc2109f25a7f8e84
XSIZE (squirrelmail/login_auth-2.0-1.4.0.tar.gz) = 10319
END-of-mail/squirrelmail-login_auth-plugin/distinfo
echo x - mail/squirrelmail-login_auth-plugin/Makefile
sed 's/^X//' >mail/squirrelmail-login_auth-plugin/Makefile << 'END-of-mail/squirrelmail-login_auth-plugin/Makefile'
X# New ports collection makefile for:		squirrelmail-wetteronline-plugin
X# Date created:		14 April 2006
X# Whom:		Stefan Bethke <stb@lassitu.de>
X#
X# $FreeBSD$
X
XPORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION=		2.0
XCATEGORIES=		mail www
XMASTER_SITES=		http://www.squirrelmail.org/plugins/ \
X					http://alkoholix.tallence.de/www.squirrelmail.org/plugins/
XDISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.0
XDIST_SUBDIR=		squirrelmail
X
XMAINTAINER=		stb@lassitu.de
XCOMMENT=		Automatically log in user based on HTTP authentication
X
XRUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
X
XSQUIRREL_PLUGIN_NAME=	login_auth
X
X.ifdef SQUIRRELDIR
XPLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
XSUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
X.else
X.	ifndef WITHOUT_WWWDIR
XSQUIRRELDIR=		${PREFIX}/www/squirrelmail
XPLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
XSUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
X.	else
XSQUIRRELDIR=		${PREFIX}/squirrelmail
XPLIST_SUB+=		SQUIRRELDIR=squirrelmail
XSUB_LIST+=		"SQUIRRELDIR=squirrelmail"
X.	endif
X.endif
X
XNO_BUILD=		yes
XNO_WRKSUBDIR=		yes
XUSE_PERL5_BUILD=	yes
XUSE_PHP=		yes
XWANT_PHP_WEB=		yes
X
Xpre-everything::
X	@${ECHO} ""
X.ifndef WITHOUT_ACTIVATE
X	@${ECHO} "Activating plug-in in SquirrelMail after installation."
X	@${ECHO} "If you don't want to automatically activate the plug-in set"
X	@${ECHO} "WITHOUT_ACTIVATE=yes"
X.else
X	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
X	@${ECHO} "If you want to automatically activate the plug-in unset"
X	@${ECHO} "WITHOUT_ACTIVATE"
X.endif
X	@${ECHO} ""
X
Xdo-install:
X	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
X	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
X
Xpost-install:
X.ifndef WITHOUT_ACTIVATE
X.if exists( ${SQUIRRELDIR}/config/config.php )
X	@${ECHO} "Activating plug-in in SquirrelMail"
X	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
X.endif
X.else
X	@${ECHO} "To activate the plug-in in SquirrelMail use"
X	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
X.endif
X	@${ECHO} ""
X
X.include <bsd.port.mk>
END-of-mail/squirrelmail-login_auth-plugin/Makefile
exit


--Apple-Mail-2--692193009
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



-- 
Stefan Bethke <stb@lassitu.de>   Fon +49 170 346 0140



--Apple-Mail-2--692193009--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D0D5B79B-13B0-4EA4-ADD1-B164E477DB1D>