ports/99892: [NEW PORT] mail/squirrelmail-timeout_user-plugin: Automatically logs a user out if they're idle for a set amount of time

Thomas Abthorpe thomas at goodking.ca
Fri Jul 7 19:20:27 UTC 2006


>Number:         99892
>Category:       ports
>Synopsis:       [NEW PORT] mail/squirrelmail-timeout_user-plugin: Automatically logs a user out if they're idle for a set amount of time
>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:   Fri Jul 07 19:20:25 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Abthorpe
>Release:        FreeBSD 6.1-RELEASE-p2 i386
>Organization:
GoodKing.Ca
>Environment:
System: FreeBSD stjames.stthomasanglican.org 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #27: Sat Jun 24 23:38:22 EDT 2006
>Description:
This automatically logs a user out if they're idle for a set amount
of time. We define 'idle' as having not refreshed the right-hand
frame. The administrator can set a standard time for all users or
allow users to set their own timeout values.

WWW:    http://www.squirrelmail.org/plugin_view.php?id=38

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- squirrelmail-timeout_user-plugin-1.1.1.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:
#
#	squirrelmail-timeout_user-plugin
#	squirrelmail-timeout_user-plugin/pkg-descr
#	squirrelmail-timeout_user-plugin/Makefile
#	squirrelmail-timeout_user-plugin/pkg-plist
#	squirrelmail-timeout_user-plugin/distinfo
#
echo c - squirrelmail-timeout_user-plugin
mkdir -p squirrelmail-timeout_user-plugin > /dev/null 2>&1
echo x - squirrelmail-timeout_user-plugin/pkg-descr
sed 's/^X//' >squirrelmail-timeout_user-plugin/pkg-descr << 'END-of-squirrelmail-timeout_user-plugin/pkg-descr'
XThis automatically logs a user out if they're idle for a set amount
Xof time. We define 'idle' as having not refreshed the right-hand
Xframe. The administrator can set a standard time for all users or
Xallow users to set their own timeout values.
X
XWWW:    http://www.squirrelmail.org/plugin_view.php?id=38
END-of-squirrelmail-timeout_user-plugin/pkg-descr
echo x - squirrelmail-timeout_user-plugin/Makefile
sed 's/^X//' >squirrelmail-timeout_user-plugin/Makefile << 'END-of-squirrelmail-timeout_user-plugin/Makefile'
X# New ports collection makefile for:	squirrelmail-timeout_user-plugin
X# Date created:		2006-07-07
X# Whom:			Thomas Abthorpe <thomas at goodking.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION=	1.1.1
XCATEGORIES=	mail www
XMASTER_SITES=	http://www.squirrelmail.org/plugins/
XDISTNAME=	${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-0.5
XDIST_SUBDIR=	squirrelmail
X
XMAINTAINER=	thomas at goodking.ca
XCOMMENT=	Automatically logs a user out if they're idle for a set amount of time
X
XRUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
X		${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
X
XSQUIRREL_PLUGIN_NAME=	timeout_user
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-squirrelmail-timeout_user-plugin/Makefile
echo x - squirrelmail-timeout_user-plugin/pkg-plist
sed 's/^X//' >squirrelmail-timeout_user-plugin/pkg-plist << 'END-of-squirrelmail-timeout_user-plugin/pkg-plist'
X at unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin pupdate; fi
X%%SQUIRRELDIR%%/plugins/timeout_user/version
X%%SQUIRRELDIR%%/plugins/timeout_user/README
X%%SQUIRRELDIR%%/plugins/timeout_user/index.php
X%%SQUIRRELDIR%%/plugins/timeout_user/setup.php
X%%SQUIRRELDIR%%/plugins/timeout_user/INSTALL
X%%SQUIRRELDIR%%/plugins/timeout_user/functions.php
X%%SQUIRRELDIR%%/plugins/timeout_user/config.php
X at dirrm %%SQUIRRELDIR%%/plugins/timeout_user
X at exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin pupdate; fi
END-of-squirrelmail-timeout_user-plugin/pkg-plist
echo x - squirrelmail-timeout_user-plugin/distinfo
sed 's/^X//' >squirrelmail-timeout_user-plugin/distinfo << 'END-of-squirrelmail-timeout_user-plugin/distinfo'
XMD5 (squirrelmail/timeout_user-1.1.1-0.5.tar.gz) = 43bf06a6f07da5354e87701681c5eba7
XSHA256 (squirrelmail/timeout_user-1.1.1-0.5.tar.gz) = 086486fbcad56bdd52067c6b95ac73fdfa8bfd47c467af0ceabeb4bd04142bc8
XSIZE (squirrelmail/timeout_user-1.1.1-0.5.tar.gz) = 4101
END-of-squirrelmail-timeout_user-plugin/distinfo
exit
--- squirrelmail-timeout_user-plugin-1.1.1.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list