From af0091d41c0ac718396643cae567615b58e27348 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 22 Jul 2005 22:32:25 +0000 Subject: This plugin for the SquirrelMail WebMailer is the first of several ports I have written for some squirrelmail plugins. About the Plugin: It provides a standard API for other plugins and has no functionality in and of itself. PR: ports/83606 Submitted by: Alexander Wittig --- mail/squirrelmail-compatibility-plugin1/Makefile | 69 +++++++++++++++++++++++ mail/squirrelmail-compatibility-plugin1/distinfo | 2 + mail/squirrelmail-compatibility-plugin1/pkg-descr | 10 ++++ mail/squirrelmail-compatibility-plugin1/pkg-plist | 45 +++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 mail/squirrelmail-compatibility-plugin1/Makefile create mode 100644 mail/squirrelmail-compatibility-plugin1/distinfo create mode 100644 mail/squirrelmail-compatibility-plugin1/pkg-descr create mode 100644 mail/squirrelmail-compatibility-plugin1/pkg-plist (limited to 'mail/squirrelmail-compatibility-plugin1') diff --git a/mail/squirrelmail-compatibility-plugin1/Makefile b/mail/squirrelmail-compatibility-plugin1/Makefile new file mode 100644 index 000000000000..df4e4482cf9b --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin1/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: squirrelmail-compatibility-plugin +# Date created: 3 Jul 2005 +# Whom: Alexander Wittig +# +# $FreeBSD$ + +PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin +PORTVERSION= 2.0 +CATEGORIES= mail www +MASTER_SITES= http://www.squirrelmail.org/plugins/ +DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION} +DIST_SUBDIR= squirrelmail + +MAINTAINER= alexander@wittig.name +COMMENT= Required by many plugins for compatibility with SquirrelMail + +RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail + +SQUIRREL_PLUGIN_NAME= compatibility + +.ifdef SQUIRRELDIR +PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR} +.else +. ifndef WITHOUT_WWWDIR +SQUIRRELDIR= ${PREFIX}/www/squirrelmail +PLIST_SUB+= SQUIRRELDIR=www/squirrelmail +. else +SQUIRRELDIR= ${PREFIX}/squirrelmail +PLIST_SUB+= SQUIRRELDIR=squirrelmail +. endif +.endif + +NO_BUILD= yes +NO_WRKSUBDIR= yes +USE_PERL5_BUILD= yes +WANT_PHP_WEB= yes + +pre-everything:: + @${ECHO} "" +.ifndef WITHOUT_ACTIVATE + @${ECHO} "Activating plug-in in SquirrelMail after installation." + @${ECHO} "If you don't want to automatically activate the plug-in set" + @${ECHO} "WITHOUT_ACTIVATE=yes" +.else + @${ECHO} "NOT Activating plug-in in SquirrelMail after installation." + @${ECHO} "If you want to automatically activate the plug-in unset" + @${ECHO} "WITHOUT_ACTIVATE" +.endif + @${ECHO} "" + +do-install: + ${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} + +post-install: + @${ECHO} "Patching SquirrelMail for compatibility plugin" + @${ECHO} "" + ${PATCH} -sN -p0 -d ${SQUIRRELDIR}/plugins < ${SQUIRRELDIR}/plugins/compatibility/patches/compatibility_patch-1.4.4.diff + @${ECHO} "" + +.ifndef WITHOUT_ACTIVATE + @${ECHO} "Activating plug-in in SquirrelMail" + ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME} +.else + @${ECHO} "To activate the plug-in in SquirrelMail use" + @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}" +.endif + +.include diff --git a/mail/squirrelmail-compatibility-plugin1/distinfo b/mail/squirrelmail-compatibility-plugin1/distinfo new file mode 100644 index 000000000000..92169787266b --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin1/distinfo @@ -0,0 +1,2 @@ +MD5 (squirrelmail/compatibility-2.0.tar.gz) = 8e3c8fc99a6669a1d9de911c2194dc31 +SIZE (squirrelmail/compatibility-2.0.tar.gz) = 15306 diff --git a/mail/squirrelmail-compatibility-plugin1/pkg-descr b/mail/squirrelmail-compatibility-plugin1/pkg-descr new file mode 100644 index 000000000000..a37b1c7a2078 --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin1/pkg-descr @@ -0,0 +1,10 @@ +SquirrelMail Plug-in that provdies a standard API for plugin authors who need +certain functionalities that may not be available in older versions of +SquirrelMail. SquirrelMail administrators only need to download this plugin if +any of the plugins they have require it. +This plugin has no functionality in and of itself. + +WWW: http://www.squirrelmail.org + +- Alexander Wittig +alexander@wittig.name diff --git a/mail/squirrelmail-compatibility-plugin1/pkg-plist b/mail/squirrelmail-compatibility-plugin1/pkg-plist new file mode 100644 index 000000000000..a0c2c6b6e25a --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin1/pkg-plist @@ -0,0 +1,45 @@ +@unexec %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin compatibility +@unexec mv -f %D/%%SQUIRRELDIR%%/include/validate.php.orig %D/%%SQUIRRELDIR%%/include/validate.php +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.1 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.5.1 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.5 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.4 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.3 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.2 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.5.2 +@exec mkdir -p %D/%%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.0 +%%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.11/global.php +%%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.10/global.php +%%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.9/global.php +%%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.8/global.php +%%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.7/global.php +%%SQUIRRELDIR%%/plugins/compatibility/patches/compatibility_patch-1.4.4.diff +%%SQUIRRELDIR%%/plugins/compatibility/patches/compatibility_patch-1.2.11.diff +%%SQUIRRELDIR%%/plugins/compatibility/README +%%SQUIRRELDIR%%/plugins/compatibility/index.php +%%SQUIRRELDIR%%/plugins/compatibility/version +%%SQUIRRELDIR%%/plugins/compatibility/setup.php +%%SQUIRRELDIR%%/plugins/compatibility/COPYING +%%SQUIRRELDIR%%/plugins/compatibility/make_release.sh +%%SQUIRRELDIR%%/plugins/compatibility/getpot +%%SQUIRRELDIR%%/plugins/compatibility/INSTALL +%%SQUIRRELDIR%%/plugins/compatibility/compatibility.pot +%%SQUIRRELDIR%%/plugins/compatibility/functions.php +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.1 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.5.1 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.5 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.4 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.3 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.2 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.5.2 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.4.0 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.11 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.10 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.9 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.8 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes/1.2.7 +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/includes +@dirrm %%SQUIRRELDIR%%/plugins/compatibility/patches +@dirrm %%SQUIRRELDIR%%/plugins/compatibility +@exec patch -sN -p0 -d %D/%%SQUIRRELDIR%%/plugins < %D/%%SQUIRRELDIR%%/plugins/compatibility/patches/compatibility_patch-1.4.4.diff +@exec %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin compatibility -- cgit v1.2.3