diff options
Diffstat (limited to 'mail/squirrelmail/pkg')
-rw-r--r-- | mail/squirrelmail/pkg/COMMENT | 1 | ||||
-rw-r--r-- | mail/squirrelmail/pkg/DEINSTALL | 97 | ||||
-rw-r--r-- | mail/squirrelmail/pkg/DESCR | 7 | ||||
-rw-r--r-- | mail/squirrelmail/pkg/INSTALL | 61 | ||||
-rw-r--r-- | mail/squirrelmail/pkg/MESSAGE | 24 | ||||
-rw-r--r-- | mail/squirrelmail/pkg/PLIST | 252 |
6 files changed, 442 insertions, 0 deletions
diff --git a/mail/squirrelmail/pkg/COMMENT b/mail/squirrelmail/pkg/COMMENT new file mode 100644 index 00000000000..5386207393d --- /dev/null +++ b/mail/squirrelmail/pkg/COMMENT @@ -0,0 +1 @@ +PHP4 webmail package diff --git a/mail/squirrelmail/pkg/DEINSTALL b/mail/squirrelmail/pkg/DEINSTALL new file mode 100644 index 00000000000..6c2605fe3f0 --- /dev/null +++ b/mail/squirrelmail/pkg/DEINSTALL @@ -0,0 +1,97 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/01/24 22:44:13 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +RM="@RM@" +RMDIR="@RMDIR@" +TRUE="@TRUE@" + +DATADIR=/var/spool/squirrelmail +SMDIR=${PKG_PREFIX}/@SM_SUBDIR@ +CONFDIR=${SMDIR}/config +CONFFILES="config.php" + +case ${STAGE} in +DEINSTALL) + # Remove configuration files if they don't differ from the default + # config file. + # + FILE=${DATADIR}/data/default_pref + SAMPLEFILE=${SMDIR}/data/default_pref + if diff -q ${FILE} ${SAMPLEFILE} >/dev/null + then + ${RM} -f ${FILE} + fi + ;; + +POST-DEINSTALL) + modified_files='' + for FILE in ${CONFDIR}/config.php ${DATADIR}/data/default_pref + do + if [ -f ${FILE} ] + then + modified_files="${modified_files} ${FILE}" + fi + done + + ${RMDIR} ${CONFDIR} 2>/dev/null || ${TRUE} + ${RMDIR} ${SMDIR} 2>/dev/null || ${TRUE} + ${RMDIR} ${DATADIR}/attachments 2>/dev/null || ${TRUE} + ${RMDIR} ${DATADIR}/data 2>/dev/null || ${TRUE} + ${RMDIR} ${DATADIR} 2>/dev/null || ${TRUE} + + existing_dirs='' + for dir in ${SMDIR} ${DATADIR} + do + if [ -d ${dir} ] + then + existing_dirs="${existing_dirs} ${dir}" + fi + done + + if [ -n "${modified_files}" -o -n "${existing_dirs}" ] + then + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove: +EOF + if [ -n "${modified_files}" ] + then + ${CAT} << EOF + + * the following files: + +EOF + for file in ${modified_files} + do + echo " ${file}" + done + fi + if [ -n "${existing_dirs}" ] + then + ${CAT} << EOF + + * the following directories: + +EOF + for dir in ${existing_dirs} + do + echo " ${dir}" + done + fi + ${CAT} << EOF +=========================================================================== +EOF + fi + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/mail/squirrelmail/pkg/DESCR b/mail/squirrelmail/pkg/DESCR new file mode 100644 index 00000000000..808335f885b --- /dev/null +++ b/mail/squirrelmail/pkg/DESCR @@ -0,0 +1,7 @@ +SquirrelMail is a standards-based webmail package written in PHP4. It +includes built-in pure PHP support for the IMAP and SMTP protocols, and all +pages render in pure HTML 4.0 (with no Javascript) for maximum compatibility +across browsers. It has very few requirements and is very easy to configure +and install. SquirrelMail has a all the functionality you would want from an +email client, including strong MIME support, address books, and folder +manipulation. diff --git a/mail/squirrelmail/pkg/INSTALL b/mail/squirrelmail/pkg/INSTALL new file mode 100644 index 00000000000..6ccecc26790 --- /dev/null +++ b/mail/squirrelmail/pkg/INSTALL @@ -0,0 +1,61 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/01/24 22:44:13 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHGRP="@CHGRP@" +CHMOD="@CHMOD@" +CHOWN="@CHOWN@" +CP="@CP@" +MKDIR="@MKDIR@" + +USER=nobody +GROUP=nobody + +SMDIR=${PKG_PREFIX}/@SM_SUBDIR@ +DATADIR=/var/spool/squirrelmail + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${DATADIR} + ${MKDIR} ${DATADIR}/attachments + ${CHGRP} -R ${GROUP} ${DATADIR}/attachments + ${CHMOD} 730 ${DATADIR}/attachments + ${MKDIR} ${DATADIR}/data + ${CHOWN} -R ${USER}:${GROUP} ${DATADIR}/data + + echo "Installing configuration files:" + FILE=${DATADIR}/data/default_pref + SAMPLEFILE=${SMDIR}/data/default_pref + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${FILE} + fi + ${CAT} << EOF + +=========================================================================== +Please run the SquirrelMail configuration script: + + cd ${SMDIR}/config && ./conf.pl + +to customize the SquirrelMail webmail system for your site. +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/mail/squirrelmail/pkg/MESSAGE b/mail/squirrelmail/pkg/MESSAGE new file mode 100644 index 00000000000..26750448402 --- /dev/null +++ b/mail/squirrelmail/pkg/MESSAGE @@ -0,0 +1,24 @@ +========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2001/01/24 22:44:13 jlam Exp $ + +You will need to make SquirrelMail accessible through your HTTP server. +If you are running Apache and ap-php, then you may either symlink + + @SMDIR@ + +into DocumentRoot, or add the following lines to httpd.conf: + + Alias /mail/ "@SMDIR@" + + <Directory "@SMDIR@"> + Options Indexes MultiViews + AllowOverride None + Order allow,deny + Allow from all + </Directory> + +to make IMAP accounts accessible through: + + http://www.domain.com/mail/ + +========================================================================== diff --git a/mail/squirrelmail/pkg/PLIST b/mail/squirrelmail/pkg/PLIST new file mode 100644 index 00000000000..ef450fa00e1 --- /dev/null +++ b/mail/squirrelmail/pkg/PLIST @@ -0,0 +1,252 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/24 22:44:13 jlam Exp $ +share/squirrelmail/AUTHORS +share/squirrelmail/COPYING +share/squirrelmail/ChangeLog +share/squirrelmail/INSTALL +share/squirrelmail/README +share/squirrelmail/UPGRADE +share/squirrelmail/config/conf.pl +share/squirrelmail/config/config_default.php +share/squirrelmail/config/index.php +share/squirrelmail/configure +share/squirrelmail/data/default_pref +share/squirrelmail/data/index.php +share/squirrelmail/doc/README.russian_apache +share/squirrelmail/doc/addressbook.txt +share/squirrelmail/doc/ie_ssl.txt +share/squirrelmail/doc/index.html +share/squirrelmail/doc/mime.txt +share/squirrelmail/doc/plugin.txt +share/squirrelmail/doc/themes.txt +share/squirrelmail/doc/translating.txt +share/squirrelmail/doc/translating_help.txt +share/squirrelmail/doc/tree.txt +share/squirrelmail/functions/abook_database.php +share/squirrelmail/functions/abook_ldap_server.php +share/squirrelmail/functions/abook_local_file.php +share/squirrelmail/functions/addressbook.php +share/squirrelmail/functions/array.php +share/squirrelmail/functions/auth.php +share/squirrelmail/functions/date.php +share/squirrelmail/functions/display_messages.php +share/squirrelmail/functions/i18n.php +share/squirrelmail/functions/imap.php +share/squirrelmail/functions/imap_general.php +share/squirrelmail/functions/imap_mailbox.php +share/squirrelmail/functions/imap_messages.php +share/squirrelmail/functions/imap_search.php +share/squirrelmail/functions/index.php +share/squirrelmail/functions/mailbox_display.php +share/squirrelmail/functions/mime.php +share/squirrelmail/functions/page_header.php +share/squirrelmail/functions/plugin.php +share/squirrelmail/functions/prefs.php +share/squirrelmail/functions/smtp.php +share/squirrelmail/functions/strings.php +share/squirrelmail/functions/tree.php +share/squirrelmail/functions/url_parser.php +share/squirrelmail/help/ca/FAQ.hlp +share/squirrelmail/help/ca/addresses.hlp +share/squirrelmail/help/ca/basic.hlp +share/squirrelmail/help/ca/compose.hlp +share/squirrelmail/help/ca/folders.hlp +share/squirrelmail/help/ca/main_folder.hlp +share/squirrelmail/help/ca/options.hlp +share/squirrelmail/help/ca/read_mail.hlp +share/squirrelmail/help/ca/search.hlp +share/squirrelmail/help/cs/FAQ.hlp +share/squirrelmail/help/cs/addresses.hlp +share/squirrelmail/help/cs/basic.hlp +share/squirrelmail/help/cs/compose.hlp +share/squirrelmail/help/cs/folders.hlp +share/squirrelmail/help/cs/main_folder.hlp +share/squirrelmail/help/cs/options.hlp +share/squirrelmail/help/cs/read_mail.hlp +share/squirrelmail/help/cs/search.hlp +share/squirrelmail/help/en/FAQ.hlp +share/squirrelmail/help/en/addresses.hlp +share/squirrelmail/help/en/basic.hlp +share/squirrelmail/help/en/compose.hlp +share/squirrelmail/help/en/folders.hlp +share/squirrelmail/help/en/main_folder.hlp +share/squirrelmail/help/en/options.hlp +share/squirrelmail/help/en/read_mail.hlp +share/squirrelmail/help/en/search.hlp +share/squirrelmail/help/index.php +share/squirrelmail/help/ko/FAQ.hlp +share/squirrelmail/help/ko/addresses.hlp +share/squirrelmail/help/ko/basic.hlp +share/squirrelmail/help/ko/compose.hlp +share/squirrelmail/help/ko/folders.hlp +share/squirrelmail/help/ko/main_folder.hlp +share/squirrelmail/help/ko/options.hlp +share/squirrelmail/help/ko/read_mail.hlp +share/squirrelmail/help/ko/search.hlp +share/squirrelmail/help/pl/FAQ.hlp +share/squirrelmail/help/pl/addresses.hlp +share/squirrelmail/help/pl/basic.hlp +share/squirrelmail/help/pl/compose.hlp +share/squirrelmail/help/pl/folders.hlp +share/squirrelmail/help/pl/main_folder.hlp +share/squirrelmail/help/pl/options.hlp +share/squirrelmail/help/pl/read_mail.hlp +share/squirrelmail/help/pl/search.hlp +share/squirrelmail/help/ru/FAQ.hlp +share/squirrelmail/help/ru/addresses.hlp +share/squirrelmail/help/ru/basic.hlp +share/squirrelmail/help/ru/compose.hlp +share/squirrelmail/help/ru/folders.hlp +share/squirrelmail/help/ru/main_folder.hlp +share/squirrelmail/help/ru/options.hlp +share/squirrelmail/help/ru/read_mail.hlp +share/squirrelmail/help/ru/search.hlp +share/squirrelmail/images/down_pointer.gif +share/squirrelmail/images/index.php +share/squirrelmail/images/sm_logo.jpg +share/squirrelmail/images/sort_none.gif +share/squirrelmail/images/up_pointer.gif +share/squirrelmail/index.php +share/squirrelmail/locale/ca/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/ca/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/cs/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/cs/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/da/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/da/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/de/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/de/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/es/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/es/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/fr/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/fr/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/index.php +share/squirrelmail/locale/it/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/it/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/ko/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/ko/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/nl/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/nl/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/no/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/no/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/no_NO_ny/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/no_NO_ny/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/pl/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/pl/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/pt_BR/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/pt_BR/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/ru/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/ru/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/sr/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/sr/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/sv/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/sv/LC_MESSAGES/squirrelmail.po +share/squirrelmail/locale/tw/LC_MESSAGES/squirrelmail.mo +share/squirrelmail/locale/tw/LC_MESSAGES/squirrelmail.po +share/squirrelmail/plugins/README.plugins +share/squirrelmail/plugins/index.php +share/squirrelmail/po/charsetconvert.pl +share/squirrelmail/po/index.php +share/squirrelmail/po/squirrelmail.po +share/squirrelmail/src/addrbook_popup.php +share/squirrelmail/src/addrbook_search.php +share/squirrelmail/src/addrbook_search_html.php +share/squirrelmail/src/addressbook.php +share/squirrelmail/src/compose.php +share/squirrelmail/src/delete_message.php +share/squirrelmail/src/download.php +share/squirrelmail/src/empty_trash.php +share/squirrelmail/src/folders.php +share/squirrelmail/src/folders_create.php +share/squirrelmail/src/folders_delete.php +share/squirrelmail/src/folders_rename_do.php +share/squirrelmail/src/folders_rename_getname.php +share/squirrelmail/src/folders_subscribe.php +share/squirrelmail/src/help.php +share/squirrelmail/src/index.php +share/squirrelmail/src/left_main.php +share/squirrelmail/src/load_prefs.php +share/squirrelmail/src/login.php +share/squirrelmail/src/move_messages.php +share/squirrelmail/src/options.php +share/squirrelmail/src/options_display.php +share/squirrelmail/src/options_folder.php +share/squirrelmail/src/options_highlight.php +share/squirrelmail/src/options_order.php +share/squirrelmail/src/options_personal.php +share/squirrelmail/src/read_body.php +share/squirrelmail/src/redirect.php +share/squirrelmail/src/right_main.php +share/squirrelmail/src/search.php +share/squirrelmail/src/signout.php +share/squirrelmail/src/webmail.php +share/squirrelmail/themes/README.themes +share/squirrelmail/themes/black_bean_burrito_theme.php +share/squirrelmail/themes/bluesnews_theme.php +share/squirrelmail/themes/bluesteel_theme.php +share/squirrelmail/themes/dark_grey_theme.php +share/squirrelmail/themes/deepocean_theme.php +share/squirrelmail/themes/default_theme.php +share/squirrelmail/themes/forest_theme.php +share/squirrelmail/themes/high_contrast_theme.php +share/squirrelmail/themes/ice_theme.php +share/squirrelmail/themes/index.php +share/squirrelmail/themes/maize_theme.php +share/squirrelmail/themes/plain_blue_theme.php +share/squirrelmail/themes/purple_theme.php +share/squirrelmail/themes/sandstorm_theme.php +share/squirrelmail/themes/seaspray_theme.php +share/squirrelmail/themes/servery_theme.php +share/squirrelmail/themes/slashdot_theme.php +@dirrm share/squirrelmail/themes +@dirrm share/squirrelmail/src +@dirrm share/squirrelmail/po +@dirrm share/squirrelmail/plugins +@dirrm share/squirrelmail/locale/tw/LC_MESSAGES +@dirrm share/squirrelmail/locale/tw +@dirrm share/squirrelmail/locale/sv/LC_MESSAGES +@dirrm share/squirrelmail/locale/sv +@dirrm share/squirrelmail/locale/sr/LC_MESSAGES +@dirrm share/squirrelmail/locale/sr +@dirrm share/squirrelmail/locale/ru/LC_MESSAGES +@dirrm share/squirrelmail/locale/ru +@dirrm share/squirrelmail/locale/pt_BR/LC_MESSAGES +@dirrm share/squirrelmail/locale/pt_BR +@dirrm share/squirrelmail/locale/pl/LC_MESSAGES +@dirrm share/squirrelmail/locale/pl +@dirrm share/squirrelmail/locale/no_NO_ny/LC_MESSAGES +@dirrm share/squirrelmail/locale/no_NO_ny +@dirrm share/squirrelmail/locale/no/LC_MESSAGES +@dirrm share/squirrelmail/locale/no +@dirrm share/squirrelmail/locale/nl/LC_MESSAGES +@dirrm share/squirrelmail/locale/nl +@dirrm share/squirrelmail/locale/ko/LC_MESSAGES +@dirrm share/squirrelmail/locale/ko +@dirrm share/squirrelmail/locale/it/LC_MESSAGES +@dirrm share/squirrelmail/locale/it +@dirrm share/squirrelmail/locale/ger/LC_MESSAGES +@dirrm share/squirrelmail/locale/ger +@dirrm share/squirrelmail/locale/fr/LC_MESSAGES +@dirrm share/squirrelmail/locale/fr +@dirrm share/squirrelmail/locale/es/LC_MESSAGES +@dirrm share/squirrelmail/locale/es +@dirrm share/squirrelmail/locale/de/LC_MESSAGES +@dirrm share/squirrelmail/locale/de +@dirrm share/squirrelmail/locale/da/LC_MESSAGES +@dirrm share/squirrelmail/locale/da +@dirrm share/squirrelmail/locale/cs/LC_MESSAGES +@dirrm share/squirrelmail/locale/cs +@dirrm share/squirrelmail/locale/ca/LC_MESSAGES +@dirrm share/squirrelmail/locale/ca +@dirrm share/squirrelmail/locale +@dirrm share/squirrelmail/images +@dirrm share/squirrelmail/help/ru +@dirrm share/squirrelmail/help/pl +@dirrm share/squirrelmail/help/ko +@dirrm share/squirrelmail/help/en +@dirrm share/squirrelmail/help/cs +@dirrm share/squirrelmail/help/ca +@dirrm share/squirrelmail/help +@dirrm share/squirrelmail/functions +@dirrm share/squirrelmail/doc +@dirrm share/squirrelmail/data +@unexec rmdir %D/share/squirrelmail/config 2>/dev/null || true +@unexec rmdir %D/share/squirrelmail 2>/dev/null || true |