Date: Sun, 10 Dec 2006 11:53:08 GMT From: Gerrit Beine<gerrit.beine@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/106562: New port: mail/squirrelmail-sasql-plugin Message-ID: <200612101153.kBABr8Ga040751@www.freebsd.org> Resent-Message-ID: <200612101200.kBAC0N3T075804@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 106562 >Category: ports >Synopsis: New port: mail/squirrelmail-sasql-plugin >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 Dec 10 12:00:23 GMT 2006 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612101153.kBABr8Ga040751>