From nobody@FreeBSD.org  Sun Dec 10 11:53:09 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 044C016A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Dec 2006 11:53:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ED64243CA4
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Dec 2006 11:51:58 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBABr8TA040752
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Dec 2006 11:53:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBABr8Ga040751;
	Sun, 10 Dec 2006 11:53:08 GMT
	(envelope-from nobody)
Message-Id: <200612101153.kBABr8Ga040751@www.freebsd.org>
Date: Sun, 10 Dec 2006 11:53:08 GMT
From: Gerrit Beine<gerrit.beine@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: mail/squirrelmail-sasql-plugin
X-Send-Pr-Version: www-3.0

>Number:         106562
>Category:       ports
>Synopsis:       New port: mail/squirrelmail-sasql-plugin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 10 12:00:23 GMT 2006
>Closed-Date:    Sun Dec 10 23:11:58 GMT 2006
>Last-Modified:  Sun Dec 10 23:20:15 GMT 2006
>Originator:     Gerrit Beine
>Release:        FreeBSD 6.1-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD freebsd.vmware 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
This plugin for SquirrelMail offers the possibility for editing SpamAssassin settings stored in an SQL DB.
>How-To-Repeat:

>Fix:
# 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-sasql-plugin
#	squirrelmail-sasql-plugin/Makefile
#	squirrelmail-sasql-plugin/distinfo
#	squirrelmail-sasql-plugin/pkg-descr
#	squirrelmail-sasql-plugin/pkg-plist
#	squirrelmail-sasql-plugin/files
#	squirrelmail-sasql-plugin/files/pkg-message.in
#	squirrelmail-sasql-plugin/files/patch-sasql_hooks.php
#
echo c - squirrelmail-sasql-plugin
mkdir -p squirrelmail-sasql-plugin > /dev/null 2>&1
echo x - squirrelmail-sasql-plugin/Makefile
sed 's/^X//' >squirrelmail-sasql-plugin/Makefile << 'END-of-squirrelmail-sasql-plugin/Makefile'
X# New ports collection makefile for:		squirrelmail-sasql-plugin
X# Date created:		9 Dec 2006
X# Whom:		Gerrit Beine <gerrit.beine@gmx.de>
X#
X# $FreeBSD$
X
XPORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION=		3.2.0
XCATEGORIES=		mail www
XMASTER_SITES=		http://www.squirrelmail.org/plugins/
XDISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
XDIST_SUBDIR=		squirrelmail
X
XMAINTAINER=		gerrit.beine@gmx.de
XCOMMENT=		Edit SpamAssassin settings stored in an SQL DB
X
XRUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
X			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin \
X			${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
X
XSQUIRREL_PLUGIN_NAME=	sasql
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
XSUB_FILES=		pkg-message
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
Xpost-patch:
X	@${RM} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/*.orig ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/.cvsignore
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	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-squirrelmail-sasql-plugin/Makefile
echo x - squirrelmail-sasql-plugin/distinfo
sed 's/^X//' >squirrelmail-sasql-plugin/distinfo << 'END-of-squirrelmail-sasql-plugin/distinfo'
XMD5 (squirrelmail/sasql-3.2.0.tar.gz) = a492922e5b0d2245d4e9bc255a7c5755
XSHA256 (squirrelmail/sasql-3.2.0.tar.gz) = af4d0b37116a532b5a2398620ad7be4b914966e3957da1f2df51f968a1597a56
XSIZE (squirrelmail/sasql-3.2.0.tar.gz) = 41392
END-of-squirrelmail-sasql-plugin/distinfo
echo x - squirrelmail-sasql-plugin/pkg-descr
sed 's/^X//' >squirrelmail-sasql-plugin/pkg-descr << 'END-of-squirrelmail-sasql-plugin/pkg-descr'
XThe SASql SquirrelMail plugin lets users change a pre-defined set of
XSpamAssassin settings when those settings are stored in a SQL DB rather than
Xa config file. This is very useful in a virtual user setting when the users
Xdon't have home directories or access to them.
X
XWWW: http://www.squirrelmail.org
END-of-squirrelmail-sasql-plugin/pkg-descr
echo x - squirrelmail-sasql-plugin/pkg-plist
sed 's/^X//' >squirrelmail-sasql-plugin/pkg-plist << 'END-of-squirrelmail-sasql-plugin/pkg-plist'
X@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin sasql; fi
X%%SQUIRRELDIR%%/plugins/sasql/contrib/README
X%%SQUIRRELDIR%%/plugins/sasql/contrib/adodb.patch
X%%SQUIRRELDIR%%/plugins/sasql/contrib/xgetpo
X%%SQUIRRELDIR%%/plugins/sasql/README
X%%SQUIRRELDIR%%/plugins/sasql/README.dspam
X%%SQUIRRELDIR%%/plugins/sasql/README.policyd
X%%SQUIRRELDIR%%/plugins/sasql/TODO
X%%SQUIRRELDIR%%/plugins/sasql/bayes_stats.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/divider.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/dspam.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/dspam_conf.php
X%%SQUIRRELDIR%%/plugins/sasql/dspam_primer.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/end_section.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/index.php
X%%SQUIRRELDIR%%/plugins/sasql/move_to.php
X%%SQUIRRELDIR%%/plugins/sasql/policyd.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/policyd_conf-dist.php
X%%SQUIRRELDIR%%/plugins/sasql/policyd_docs.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/process-spam.pl
X%%SQUIRRELDIR%%/plugins/sasql/purge.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/sa_abooksync.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/sa_opts-dist.php
X%%SQUIRRELDIR%%/plugins/sasql/sa_settings.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/sa_whitelist.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/sasql.pot
X%%SQUIRRELDIR%%/plugins/sasql/sasql_api.php
X%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php.dist
X%%SQUIRRELDIR%%/plugins/sasql/sasql_db.php
X%%SQUIRRELDIR%%/plugins/sasql/sasql_hooks.php
X%%SQUIRRELDIR%%/plugins/sasql/sasql_options.php
X%%SQUIRRELDIR%%/plugins/sasql/sasql_wblist.php
X%%SQUIRRELDIR%%/plugins/sasql/setup.php
X%%SQUIRRELDIR%%/plugins/sasql/start_section.inc.php
X%%SQUIRRELDIR%%/plugins/sasql/version
X@dirrm %%SQUIRRELDIR%%/plugins/sasql/contrib
X@dirrm %%SQUIRRELDIR%%/plugins/sasql/
X@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin sasql; fi
END-of-squirrelmail-sasql-plugin/pkg-plist
echo c - squirrelmail-sasql-plugin/files
mkdir -p squirrelmail-sasql-plugin/files > /dev/null 2>&1
echo x - squirrelmail-sasql-plugin/files/pkg-message.in
sed 's/^X//' >squirrelmail-sasql-plugin/files/pkg-message.in << 'END-of-squirrelmail-sasql-plugin/files/pkg-message.in'
XFor the port to work properly you must copy the file
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php.dist
Xto
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php
Xand edit the configuration to meet your needs.
END-of-squirrelmail-sasql-plugin/files/pkg-message.in
echo x - squirrelmail-sasql-plugin/files/patch-sasql_hooks.php
sed 's/^X//' >squirrelmail-sasql-plugin/files/patch-sasql_hooks.php << 'END-of-squirrelmail-sasql-plugin/files/patch-sasql_hooks.php'
Xdiff -Nur sasql.orig/sasql_hooks.php sasql/sasql_hooks.php
X--- sasql.orig/sasql_hooks.php	2006-11-09 21:29:21.000000000 +0100
X+++ sasql/sasql_hooks.php	2006-12-10 12:13:12.000000000 +0100
X@@ -74,23 +74,23 @@
X 
X     if (!sqimap_mailbox_exists($imap_stream, $mailbox)) {
X       sqimap_mailbox_create($imap_stream, $mailbox, '');
X-      if ($imap_server_type == 'cyrus') {
X+      if ($imap_server_type == 'cyrus' || $imap_server_type == 'courier') {
X 	$boxes = sqimap_mailbox_list($imap_stream);
X       } else {
X 	$boxes = sqimap_mailbox_list($imap_stream, true);
X       }
X-      session_register($boxes, 'boxesnew');
X+      sqsession_register($boxes, 'boxesnew');
X       // echo "<foo sasql created: $box />";
X     }
X 
X     if (!sqimap_mailbox_is_subscribed($imap_stream, $mailbox)) {
X       sqimap_subscribe($imap_stream, $mailbox);
X-      if ($imap_server_type == 'cyrus') {
X+      if ($imap_server_type == 'cyrus' || $imap_server_type == 'courier') {
X 	$boxes = sqimap_mailbox_list($imap_stream);
X       } else {
X 	$boxes = sqimap_mailbox_list($imap_stream, true);
X       }
X-      session_register($boxes, 'boxesnew');
X+      sqsession_register($boxes, 'boxesnew');
X       // echo "<foo sasql subscried: $box />";
X     }
X   }
END-of-squirrelmail-sasql-plugin/files/patch-sasql_hooks.php
exit


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun Dec 10 12:07:06 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106562 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Dec 10 23:11:56 UTC 2006 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106562 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/106562: commit references a PR
Date: Sun, 10 Dec 2006 23:13:27 +0000 (UTC)

 miwi        2006-12-10 23:11:46 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail                 Makefile 
   Added files:
     mail/squirrelmail-sasql-plugin Makefile distinfo pkg-descr 
                                    pkg-plist 
     mail/squirrelmail-sasql-plugin/files patch-sasql_hooks.php 
                                          pkg-message.in 
   Log:
   The SASql SquirrelMail plugin lets users change a pre-defined set of
   SpamAssassin settings when those settings are stored in a SQL DB rather than
   a config file. This is very useful in a virtual user setting when the users
   don't have home directories or access to them.
   
   WWW: http://www.squirrelmail.org
   
   PR:             ports/106562
   Submitted by:   Gerrit Beine <gerrit.beine at gmx.de>
   
   Revision  Changes    Path
   1.815     +1 -0      ports/mail/Makefile
   1.1       +79 -0     ports/mail/squirrelmail-sasql-plugin/Makefile (new)
   1.1       +3 -0      ports/mail/squirrelmail-sasql-plugin/distinfo (new)
   1.1       +31 -0     ports/mail/squirrelmail-sasql-plugin/files/patch-sasql_hooks.php (new)
   1.1       +5 -0      ports/mail/squirrelmail-sasql-plugin/files/pkg-message.in (new)
   1.1       +6 -0      ports/mail/squirrelmail-sasql-plugin/pkg-descr (new)
   1.1       +38 -0     ports/mail/squirrelmail-sasql-plugin/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
