aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-compatibility-plugin1
diff options
context:
space:
mode:
Diffstat (limited to 'mail/squirrelmail-compatibility-plugin1')
-rw-r--r--mail/squirrelmail-compatibility-plugin1/Makefile69
-rw-r--r--mail/squirrelmail-compatibility-plugin1/distinfo2
-rw-r--r--mail/squirrelmail-compatibility-plugin1/pkg-descr10
-rw-r--r--mail/squirrelmail-compatibility-plugin1/pkg-plist45
4 files changed, 126 insertions, 0 deletions
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 <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-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