diff options
author | pav <pav@FreeBSD.org> | 2005-07-23 06:32:25 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-07-23 06:32:25 +0800 |
commit | 7e7960a6949b60e89e4e961a82dd69afecc18ad4 (patch) | |
tree | 0dd726d2c0dd01cd1c52f8804abbc903f639d13a /mail/squirrelmail-compatibility-plugin | |
parent | 499a0bb3fe34160f757e8cfdbc9dcc468bd6464b (diff) | |
download | freebsd-ports-gnome-7e7960a6949b60e89e4e961a82dd69afecc18ad4.tar.gz freebsd-ports-gnome-7e7960a6949b60e89e4e961a82dd69afecc18ad4.tar.zst freebsd-ports-gnome-7e7960a6949b60e89e4e961a82dd69afecc18ad4.zip |
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 <alexander@wittig.name>
Diffstat (limited to 'mail/squirrelmail-compatibility-plugin')
-rw-r--r-- | mail/squirrelmail-compatibility-plugin/Makefile | 69 | ||||
-rw-r--r-- | mail/squirrelmail-compatibility-plugin/distinfo | 2 | ||||
-rw-r--r-- | mail/squirrelmail-compatibility-plugin/pkg-descr | 10 | ||||
-rw-r--r-- | mail/squirrelmail-compatibility-plugin/pkg-plist | 45 |
4 files changed, 126 insertions, 0 deletions
diff --git a/mail/squirrelmail-compatibility-plugin/Makefile b/mail/squirrelmail-compatibility-plugin/Makefile new file mode 100644 index 000000000000..df4e4482cf9b --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: squirrelmail-compatibility-plugin +# Date created: 3 Jul 2005 +# Whom: Alexander Wittig <alexander@wittig.name> +# +# $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 <bsd.port.mk> diff --git a/mail/squirrelmail-compatibility-plugin/distinfo b/mail/squirrelmail-compatibility-plugin/distinfo new file mode 100644 index 000000000000..92169787266b --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin/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-plugin/pkg-descr b/mail/squirrelmail-compatibility-plugin/pkg-descr new file mode 100644 index 000000000000..a37b1c7a2078 --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin/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-plugin/pkg-plist b/mail/squirrelmail-compatibility-plugin/pkg-plist new file mode 100644 index 000000000000..a0c2c6b6e25a --- /dev/null +++ b/mail/squirrelmail-compatibility-plugin/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 |