diff options
author | Thomas Abthorpe <tabthorpe@FreeBSD.org> | 2008-01-05 15:17:56 +0000 |
---|---|---|
committer | Thomas Abthorpe <tabthorpe@FreeBSD.org> | 2008-01-05 15:17:56 +0000 |
commit | 52c0ccce694031d132c67ff3ff4979abaa4cfe33 (patch) | |
tree | 9d5cf4cb840d70ead2b3fa12d09e5faef9f8726b /mail/squirrelmail-calendar_sql_backend-plugin | |
parent | 4df50967cef875bcd474c77b8b19a992c9e1f76e (diff) | |
download | ports-52c0ccce694031d132c67ff3ff4979abaa4cfe33.tar.gz ports-52c0ccce694031d132c67ff3ff4979abaa4cfe33.zip |
Notes
Diffstat (limited to 'mail/squirrelmail-calendar_sql_backend-plugin')
5 files changed, 105 insertions, 0 deletions
diff --git a/mail/squirrelmail-calendar_sql_backend-plugin/Makefile b/mail/squirrelmail-calendar_sql_backend-plugin/Makefile new file mode 100644 index 000000000000..83514b0bc505 --- /dev/null +++ b/mail/squirrelmail-calendar_sql_backend-plugin/Makefile @@ -0,0 +1,79 @@ +# New ports collection makefile for: squirrelmail-calendar_sql_backend-plugin +# Date created: 02 Jan 2008 +# Whom: Gerrit Beine <gerrit.beine@gmx.de> +# +# $FreeBSD$ + +PORTNAME= calendar_sql_backend +PORTVERSION= 1.1 +CATEGORIES= mail www +MASTER_SITES= http://www.squirrelmail.org/plugins/ +PKGNAMEPREFIX= squirrelmail- +PKGNAMESUFFIX= -plugin +DISTNAME= ${PORTNAME}-${PORTVERSION}-2.0 +DIST_SUBDIR= squirrelmail + +MAINTAINER= gerrit.beine@gmx.de +COMMENT= SQL backend for SquirrelMail Calendar plugin + +RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \ + ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB + +SQUIRREL_PLUGIN_NAME= ${PORTNAME} + +.ifdef SQUIRRELDIR +PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR} +SUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}" +.else +. ifndef WITHOUT_WWWDIR +SQUIRRELDIR= ${PREFIX}/www/squirrelmail +PLIST_SUB+= SQUIRRELDIR=www/squirrelmail +SUB_LIST+= "SQUIRRELDIR=www/squirrelmail" +. else +SQUIRRELDIR= ${PREFIX}/squirrelmail +PLIST_SUB+= SQUIRRELDIR=squirrelmail +SUB_LIST+= "SQUIRRELDIR=squirrelmail" +. endif +.endif + +SUB_FILES= pkg-message + +NO_BUILD= yes +NO_WRKSUBDIR= yes +USE_PERL5_BUILD= yes +USE_PHP= yes +WANT_PHP_WEB= yes + +PEARDIR= ${PREFIX}/share/pear + +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: +.ifndef WITHOUT_ACTIVATE +.if exists( ${SQUIRRELDIR}/config/config.php ) + @${ECHO} "Activating plug-in in SquirrelMail" + ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME} +.endif +.else + @${ECHO} "To activate the plug-in in SquirrelMail use" + @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}" +.endif + @${ECHO} "" + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/mail/squirrelmail-calendar_sql_backend-plugin/distinfo b/mail/squirrelmail-calendar_sql_backend-plugin/distinfo new file mode 100644 index 000000000000..f76a3cdd5596 --- /dev/null +++ b/mail/squirrelmail-calendar_sql_backend-plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (squirrelmail/calendar_sql_backend-1.1-2.0.tar.gz) = 09342e3e38e832811ebbcb0ffe95d453 +SHA256 (squirrelmail/calendar_sql_backend-1.1-2.0.tar.gz) = f9bce038b646e6c89f3292354a6e09db669452a6a5c347e352c7b82f60e72759 +SIZE (squirrelmail/calendar_sql_backend-1.1-2.0.tar.gz) = 21085 diff --git a/mail/squirrelmail-calendar_sql_backend-plugin/files/pkg-message.in b/mail/squirrelmail-calendar_sql_backend-plugin/files/pkg-message.in new file mode 100644 index 000000000000..640a3dce5e14 --- /dev/null +++ b/mail/squirrelmail-calendar_sql_backend-plugin/files/pkg-message.in @@ -0,0 +1,5 @@ +For the port to work properly you must copy the file +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/calendar_sql_backend/config.sample.php +to +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/calendar_sql_backend/config.php +and edit the configuration to meet your needs. diff --git a/mail/squirrelmail-calendar_sql_backend-plugin/pkg-descr b/mail/squirrelmail-calendar_sql_backend-plugin/pkg-descr new file mode 100644 index 000000000000..e750cb534343 --- /dev/null +++ b/mail/squirrelmail-calendar_sql_backend-plugin/pkg-descr @@ -0,0 +1,4 @@ +This plugin implements a SQL-based backend for user calendar data for +the SquirrelMail Calendar plugin + +WWW: http://www.squirrelmail.org/plugin_view.php?id=247 diff --git a/mail/squirrelmail-calendar_sql_backend-plugin/pkg-plist b/mail/squirrelmail-calendar_sql_backend-plugin/pkg-plist new file mode 100644 index 000000000000..494b8b273f20 --- /dev/null +++ b/mail/squirrelmail-calendar_sql_backend-plugin/pkg-plist @@ -0,0 +1,14 @@ +@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/COPYING +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/INSTALL +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/README +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/calendar_functions.php +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/config.php.sample +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/event_functions.php +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/functions.php +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/index.php +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/make_release.sh +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/setup.php +%%SQUIRRELDIR%%/plugins/calendar_sql_backend/version +@dirrmtry %%SQUIRRELDIR%%/plugins/calendar_sql_backend/ +@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi |