diff options
Diffstat (limited to 'mail/squirrelmail-devel/files')
7 files changed, 0 insertions, 228 deletions
diff --git a/mail/squirrelmail-devel/files/111.clean-squirrelmail b/mail/squirrelmail-devel/files/111.clean-squirrelmail deleted file mode 100644 index ef343546bdaf..000000000000 --- a/mail/squirrelmail-devel/files/111.clean-squirrelmail +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/mail/squirrelmail-devel/files/Attic/111.clean-squirrelmail,v 1.1 2006-03-20 16:17:46 garga Exp $ -# -# This script copied from /etc/periodic/daily/110.clean-tmps,v 1.6.2.4 2002/10/13 19:59:01 -# -# Perform attachment directory cleaning so that long-lived systems -# don't end up with excessively old files there. -# - -# Define these variables in either /etc/periodic.conf or -# /etc/periodic.conf.local to override the default values. -# -# 111.clean-squirrelmail -clean_squirrelmail_enable="NO" # Delete squirrelmail attachments -clean_squirrelmail_dirs="/var/spool/squirrelmail/attach" # Delete under here -clean_squirrelmail_days="10" # If not accessed for -clean_squirrelmail_ignore="quota.user quota.group" # Don't delete these -clean_squirrelmail_verbose="YES" # Mention files deleted - -# If there is a global system configuration file, suck it in. -# -if [ -r /etc/defaults/periodic.conf ] -then - . /etc/defaults/periodic.conf - source_periodic_confs -fi - -case "$clean_squirrelmail_enable" in - [Yy][Ee][Ss]) - if [ -z "$clean_squirrelmail_days" ] - then - echo '$clean_squirrelmail_enable is set but' \ - '$clean_squirrelmail_days is not' - rc=2 - else - echo "" - echo "Removing old SquirrelMail Attachment files:" - - set -f noglob - args="-atime +$clean_squirrelmail_days -mtime +$clean_squirrelmail_days" - args="${args} -ctime +$clean_squirrelmail_days" - [ -n "$clean_squirrelmail_ignore" ] && - args="$args "`echo " ${clean_squirrelmail_ignore% }" | - sed 's/[ ][ ]*/ ! -name /g'` - case "$clean_squirrelmail_verbose" in - [Yy][Ee][Ss]) - print=-print;; - *) - print=;; - esac - - rc=$(for dir in $clean_squirrelmail_dirs - do - [ ."${dir#/}" != ."$dir" -a -d $dir ] && cd $dir && { - find -d . -type f $args -delete $print - find -d . ! -name . -type d -empty -mtime \ - +$clean_squirrelmail_days -delete $print - } | sed "s,^\\., $dir," - done | tee /dev/stderr | wc -l) - [ -z "$print" ] && rc=0 - [ $rc -gt 1 ] && rc=1 - set -f glob - fi;; - - *) rc=0;; -esac - -exit $rc diff --git a/mail/squirrelmail-devel/files/patch-class-deliver-Deliver_SMTP.class.php b/mail/squirrelmail-devel/files/patch-class-deliver-Deliver_SMTP.class.php deleted file mode 100644 index d3d024faf4a1..000000000000 --- a/mail/squirrelmail-devel/files/patch-class-deliver-Deliver_SMTP.class.php +++ /dev/null @@ -1,12 +0,0 @@ ---- class/deliver/Deliver_SMTP.class.php.orig Sat Jan 28 21:24:07 2006 -+++ class/deliver/Deliver_SMTP.class.php Mon Nov 13 16:26:14 2006 -@@ -69,7 +69,7 @@ - $this->authPop($host, '', $user, $pass); - } - -- $rfc822_header = $message->rfc822_header; -+ $rfc822_header = unserialize(serialize($message->rfc822_header)); - - $from = $rfc822_header->from[0]; - $to = $rfc822_header->to; - diff --git a/mail/squirrelmail-devel/files/patch-config-config_default.php b/mail/squirrelmail-devel/files/patch-config-config_default.php deleted file mode 100644 index eb383602f30e..000000000000 --- a/mail/squirrelmail-devel/files/patch-config-config_default.php +++ /dev/null @@ -1,21 +0,0 @@ ---- config/config_default.php.orig Sun Feb 12 02:03:10 2006 -+++ config/config_default.php Wed Mar 15 20:09:20 2006 -@@ -469,7 +469,7 @@ - * - * @global string $data_dir - */ --$data_dir = '/var/local/squirrelmail/data'; -+$data_dir = '/var/spool/squirrelmail/pref/'; - - /** - * Attachments directory -@@ -488,7 +488,7 @@ - * + It should probably be another directory than data_dir. - * @global string $attachment_dir - */ --$attachment_dir = $data_dir; -+$attachment_dir = '/var/spool/squirrelmail/attach/'; - - /** - * Hash level used for data directory. - diff --git a/mail/squirrelmail-devel/files/patch-functions-imap_messages.php b/mail/squirrelmail-devel/files/patch-functions-imap_messages.php deleted file mode 100644 index 99bae8349db3..000000000000 --- a/mail/squirrelmail-devel/files/patch-functions-imap_messages.php +++ /dev/null @@ -1,12 +0,0 @@ ---- functions/imap_messages.php.orig Sun Feb 12 20:21:50 2006 -+++ functions/imap_messages.php Mon Jan 22 20:14:11 2007 -@@ -923,7 +923,7 @@ - if ($read) { - if (preg_match('/.+FLAGS\s\((.*)\)\s/AUi',$read[0],$regs)) { - if (trim($regs[1])) { -- $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY'); -+ $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY); - } - } - } else { - diff --git a/mail/squirrelmail-devel/files/pkg-deinstall.in b/mail/squirrelmail-devel/files/pkg-deinstall.in deleted file mode 100644 index 2e207f5df027..000000000000 --- a/mail/squirrelmail-devel/files/pkg-deinstall.in +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -#set -vx - -PKG_BATCH=${BATCH:=NO} - -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - -checkfile() { - diff -bBqw $1 $2 >/dev/null 2>&1 - case $? in - 0) # config file exists, but is the same - rm $1 - ;; - 1) # config file exists and differs - ;; - *) # no config file exists - ;; - esac -} - -case $2 in - DEINSTALL) - cd ${PKG_PREFIX} - checkfile /var/spool/squirrelmail/prefs/default_pref \ - %%SQUIRRELDEVELDIR%%/config/default_pref - ;; - POST-DEINSTALL) - if [ "${PKG_BATCH}" = "NO" ]; then - echo "If you are no longer going to use SquirrelMail" - echo "you should remove the /var/spool/squirrelmail" - echo "directory with:" - echo - echo " rm -rf /var/spool/squirrelmail" - fi - ;; - -esac diff --git a/mail/squirrelmail-devel/files/pkg-install.in b/mail/squirrelmail-devel/files/pkg-install.in deleted file mode 100644 index 7f4228d40d9f..000000000000 --- a/mail/squirrelmail-devel/files/pkg-install.in +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -PKG_BATCH=${BATCH:=NO} -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - -case $2 in -PRE-INSTALL) - USER=www - GROUP=${USER} - UID=80 - GID=${UID} - - if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi - fi - - if ! pw usershow "${USER}" 2>/dev/null 1>&2; then - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" \ - -c "World Wide Web Owner"; \ - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi - - exit 0 - ;; -POST-INSTALL) - if [ "${PKG_BATCH}" = "NO" ]; then - install -d -o www -g www -m 0755 /var/spool/squirrelmail - install -d -o www -g www -m 0730 /var/spool/squirrelmail/attach - install -d -o www -g www -m 0750 /var/spool/squirrelmail/pref - if [ ! -f /var/spool/squirrelmail/pref/default_pref ]; then - cp -rp %%SQUIRRELDEVELDIR%%/config/default_pref \ - /var/spool/squirrelmail/pref/default_pref - else - echo "" - echo "An older version of default_pref exists in" - echo "/var/spool/squirrelmail/pref, you may want to" - echo "compare it with the one in %%SQUIRRELDEVELDIR%%/config" - fi - fi - ;; -esac diff --git a/mail/squirrelmail-devel/files/pkg-message.in b/mail/squirrelmail-devel/files/pkg-message.in deleted file mode 100644 index f45ee9687c89..000000000000 --- a/mail/squirrelmail-devel/files/pkg-message.in +++ /dev/null @@ -1,18 +0,0 @@ - -You now need to add an alias to apache's httpd.conf pointing to -%%SQUIRRELDEVELDIR%% in order to access SquirrelMail from -your web browser, or create a VirtualHost with DocumentRoot set -to that directory. - -For SquirrelMail to work properly you will need to make sure the -following option is set in your php.ini file: -file_uploads = On - -If you have problems with SquirrelMail saying "you must login" after -you just have, the following php.ini option may help: -session.auto_start = 1 - -In order to do your administrative configuration you need to -cd %%SQUIRRELDEVELDIR%% && ./configure -SquirrelMail will not work until this has been done. - |