diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-16 07:57:24 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-16 07:57:24 +0000 |
commit | 8913efef6a90c1f8167b654140eb43c2d1b5ee9b (patch) | |
tree | a47daf0faa48932b8d0d7877374f730adde4acc8 | |
parent | a3029f739ecd1f1ce03595750b430ecdeab9d924 (diff) | |
download | pkgsrc-8913efef6a90c1f8167b654140eb43c2d1b5ee9b.tar.gz |
SquirrelMail spell-checker plugin
This is a spell checker with a JavaScript interface. It supports multiple
languages, user dictionaries, and even encryption to protect the users'
privacy. Note that it may not work with older browsers that are not
JavaScript capable.
-rw-r--r-- | mail/sq-squirrelspell/Makefile | 45 | ||||
-rw-r--r-- | mail/sq-squirrelspell/distinfo | 4 | ||||
-rw-r--r-- | mail/sq-squirrelspell/pkg/DEINSTALL | 93 | ||||
-rw-r--r-- | mail/sq-squirrelspell/pkg/DESCR | 4 | ||||
-rw-r--r-- | mail/sq-squirrelspell/pkg/INSTALL | 52 | ||||
-rw-r--r-- | mail/sq-squirrelspell/pkg/PLIST | 36 |
6 files changed, 234 insertions, 0 deletions
diff --git a/mail/sq-squirrelspell/Makefile b/mail/sq-squirrelspell/Makefile new file mode 100644 index 00000000000..b881900ae8c --- /dev/null +++ b/mail/sq-squirrelspell/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $ + +DISTNAME= squirrelspell.0.3.5-1.0.6 +PKGNAME= sq-squirrelspell-0.3.5 +WRKSRC= ${WRKDIR}/squirrelspell +CATEGORIES= mail +MASTER_SITES= http://www.squirrelmail.org/plugins/ + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://mricon.com/xmlparse/SM/index.xml +COMMENT= SquirrelMail spell-checker plugin + +DEPENDS+= ispell-base-[0-9]*:../../textproc/ispell-base +DEPENDS+= php-mcrypt>=4.0.4.1:../../www/php4-mcrypt +DEPENDS+= squirrelmail>=1.0.6:../../mail/squirrelmail + +SMDIR= ${PREFIX}/share/squirrelmail + +NO_CONFIGURE= # defined +NO_BUILD= # defined + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +pre-install: + ${SED} -e "s|@SMDIR@|${SMDIR:S/^${PREFIX}\///}|g" \ + -e "s|@CAT@|${CAT}|g" \ + -e "s|@RM@|${RM}|g" \ + -e "s|@RMDIR@|${RMDIR}|g" \ + -e "s|@TRUE@|${TRUE}|g" \ + ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} -e "s|@SMDIR@|${SMDIR:S/^${PREFIX}\///}|g" \ + -e "s|@CAT@|${CAT}|g" \ + -e "s|@CHMOD@|${CHMOD}|g" \ + -e "s|@CP@|${CP}|g" \ + ${PKGDIR}/INSTALL > ${INSTALL_FILE} + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL + +do-install: + ${CP} -R ${WRKSRC} ${SMDIR}/plugins + +post-install: + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/sq-squirrelspell/distinfo b/mail/sq-squirrelspell/distinfo new file mode 100644 index 00000000000..4198ed28d6f --- /dev/null +++ b/mail/sq-squirrelspell/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $ + +SHA1 (squirrelspell.0.3.5-1.0.6.tar.gz) = 3c639618d663141de6f3131ede1457855630004c +Size (squirrelspell.0.3.5-1.0.6.tar.gz) = 20273 bytes diff --git a/mail/sq-squirrelspell/pkg/DEINSTALL b/mail/sq-squirrelspell/pkg/DEINSTALL new file mode 100644 index 00000000000..69ea198f63e --- /dev/null +++ b/mail/sq-squirrelspell/pkg/DEINSTALL @@ -0,0 +1,93 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +RM="@RM@" +RMDIR="@RMDIR@" +TRUE="@TRUE@" + +SMDIR=${PKG_PREFIX}/@SMDIR@ +CONFDIR=${SMDIR}/plugins/squirrelspell +SAMPLECONFDIR=${CONFDIR} + +case ${STAGE} in +DEINSTALL) + # Remove configuration files if they don't differ from the default + # config file. + # + FILE=${CONFDIR}/sqspell_config.php + SAMPLEFILE=${CONFDIR}/sqspell_config.dist + if diff -q ${FILE} ${SAMPLEFILE} >/dev/null + then + ${RM} -f ${FILE} + fi + ;; + +POST-DEINSTALL) + modified_files='' + for FILE in \ + ${CONFDIR}/sqspell_config.php + do + if [ -f ${FILE} ] + then + modified_files="${modified_files} ${FILE}" + fi + done + + ${RMDIR} ${CONFDIR} 2>/dev/null || ${TRUE} + + existing_dirs='' + for dir in ${CONFDIR} + 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/sq-squirrelspell/pkg/DESCR b/mail/sq-squirrelspell/pkg/DESCR new file mode 100644 index 00000000000..090c1a6b623 --- /dev/null +++ b/mail/sq-squirrelspell/pkg/DESCR @@ -0,0 +1,4 @@ +This is a spell checker with a JavaScript interface. It supports multiple +languages, user dictionaries, and even encryption to protect the users' +privacy. Note that it may not work with older browsers that are not +JavaScript capable. diff --git a/mail/sq-squirrelspell/pkg/INSTALL b/mail/sq-squirrelspell/pkg/INSTALL new file mode 100644 index 00000000000..b00c964d6ac --- /dev/null +++ b/mail/sq-squirrelspell/pkg/INSTALL @@ -0,0 +1,52 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" + +SMDIR=${PKG_PREFIX}/@SMDIR@ +CONFDIR=${SMDIR}/plugins/squirrelspell +SAMPLECONFDIR=${CONFDIR} + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + echo "Installing configuration files:" + FILE=${CONFDIR}/sqspell_config.php + SAMPLEFILE=${CONFDIR}/sqspell_config.dist + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${FILE} + fi + ${CAT} << EOF + +=========================================================================== +To enable the ${PKGNAME} plugin, please run the SquirrelMail +configuration script: + + cd ${SMDIR}/config && ./conf.pl + +You may also wish to customize: + + ${CONFDIR}/sqspell_config.php +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/mail/sq-squirrelspell/pkg/PLIST b/mail/sq-squirrelspell/pkg/PLIST new file mode 100644 index 00000000000..499619dbf22 --- /dev/null +++ b/mail/sq-squirrelspell/pkg/PLIST @@ -0,0 +1,36 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/16 07:57:24 jlam Exp $ +share/squirrelmail/plugins/squirrelspell/INSTALL +share/squirrelmail/plugins/squirrelspell/doc/CRYPTO +share/squirrelmail/plugins/squirrelspell/doc/ChangeLog +share/squirrelmail/plugins/squirrelspell/doc/PRIVACY +share/squirrelmail/plugins/squirrelspell/doc/README +share/squirrelmail/plugins/squirrelspell/doc/UPGRADING +share/squirrelmail/plugins/squirrelspell/doc/index.php +share/squirrelmail/plugins/squirrelspell/index.php +share/squirrelmail/plugins/squirrelspell/js/WHATISTHIS +share/squirrelmail/plugins/squirrelspell/js/check_me.js +share/squirrelmail/plugins/squirrelspell/js/crypto_settings.js +share/squirrelmail/plugins/squirrelspell/js/decrypt_error.js +share/squirrelmail/plugins/squirrelspell/js/index.php +share/squirrelmail/plugins/squirrelspell/js/init.js +share/squirrelmail/plugins/squirrelspell/modules/WHATISTHIS +share/squirrelmail/plugins/squirrelspell/modules/check_me.mod.php +share/squirrelmail/plugins/squirrelspell/modules/crypto.mod.php +share/squirrelmail/plugins/squirrelspell/modules/crypto_badkey.mod.php +share/squirrelmail/plugins/squirrelspell/modules/edit_dic.mod.php +share/squirrelmail/plugins/squirrelspell/modules/enc_setup.mod.php +share/squirrelmail/plugins/squirrelspell/modules/forget_me.mod.php +share/squirrelmail/plugins/squirrelspell/modules/forget_me_not.mod.php +share/squirrelmail/plugins/squirrelspell/modules/index.php +share/squirrelmail/plugins/squirrelspell/modules/init.mod.php +share/squirrelmail/plugins/squirrelspell/modules/lang_change.mod.php +share/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod.php +share/squirrelmail/plugins/squirrelspell/modules/options_main.mod.php +share/squirrelmail/plugins/squirrelspell/setup.php +share/squirrelmail/plugins/squirrelspell/sqspell_config.dist +share/squirrelmail/plugins/squirrelspell/sqspell_functions.php +share/squirrelmail/plugins/squirrelspell/sqspell_interface.php +share/squirrelmail/plugins/squirrelspell/sqspell_options.php +@dirrm share/squirrelmail/plugins/squirrelspell/modules +@dirrm share/squirrelmail/plugins/squirrelspell/js +@dirrm share/squirrelmail/plugins/squirrelspell/doc |