diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-11 07:11:19 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-11 07:11:19 +0800 |
commit | 96a1780180fb51edff7009ce973c9e49cd339a2e (patch) | |
tree | 9b673347eb8cc5442558f5d45971034718fcb082 /mail/squirrelmail-qmailadmin_login-plugin | |
parent | 1e4f4a6607f83f0ded2ac1604856df820de448b0 (diff) | |
download | freebsd-ports-gnome-96a1780180fb51edff7009ce973c9e49cd339a2e.tar.gz freebsd-ports-gnome-96a1780180fb51edff7009ce973c9e49cd339a2e.tar.zst freebsd-ports-gnome-96a1780180fb51edff7009ce973c9e49cd339a2e.zip |
This plugin provides options to integrate QmailAdmin into the SquirrelMail
web interface.
WWW: http://www.squirrelmail.org
PR: ports/106561
Submitted by: Gerrit Beine <gerrit.beine at gmx.de>
Diffstat (limited to 'mail/squirrelmail-qmailadmin_login-plugin')
5 files changed, 103 insertions, 0 deletions
diff --git a/mail/squirrelmail-qmailadmin_login-plugin/Makefile b/mail/squirrelmail-qmailadmin_login-plugin/Makefile new file mode 100644 index 000000000000..0aff1bf769ce --- /dev/null +++ b/mail/squirrelmail-qmailadmin_login-plugin/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: squirrelmail-qmailadmin_login-plugin +# Date created: 9 Dec 2006 +# Whom: Gerrit Beine <gerrit.beine@gmx.de> +# +# $FreeBSD$ + +PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin +PORTVERSION= 1.1 +CATEGORIES= mail www +MASTER_SITES= http://www.squirrelmail.org/plugins/ +DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.3 +DIST_SUBDIR= squirrelmail + +MAINTAINER= gerrit.beine@gmx.de +COMMENT= Using the QmailAdmin cgi interface from SquirrelMail + +RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \ + ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin + +SQUIRREL_PLUGIN_NAME= qmailadmin_login + +.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 + +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-qmailadmin_login-plugin/distinfo b/mail/squirrelmail-qmailadmin_login-plugin/distinfo new file mode 100644 index 000000000000..a657924a4e7b --- /dev/null +++ b/mail/squirrelmail-qmailadmin_login-plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = 1555b79e5864d111a16c1504ff6f827e +SHA256 (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = e7d3b0a03837ae9b9cc3686e18a260891ad75ace4f1920bbabf18aa774e87b73 +SIZE (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = 11028 diff --git a/mail/squirrelmail-qmailadmin_login-plugin/files/pkg-message.in b/mail/squirrelmail-qmailadmin_login-plugin/files/pkg-message.in new file mode 100644 index 000000000000..d2f34e38e113 --- /dev/null +++ b/mail/squirrelmail-qmailadmin_login-plugin/files/pkg-message.in @@ -0,0 +1,5 @@ +For the port to work properly you must copy the file +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/qmailadmin_login/config_default.php +to +%%PREFIX%%/%%SQUIRRELDIR%%/plugins/qmailadmin_login/config.php +and edit the configuration to meet your needs. diff --git a/mail/squirrelmail-qmailadmin_login-plugin/pkg-descr b/mail/squirrelmail-qmailadmin_login-plugin/pkg-descr new file mode 100644 index 000000000000..689f36839c10 --- /dev/null +++ b/mail/squirrelmail-qmailadmin_login-plugin/pkg-descr @@ -0,0 +1,4 @@ +This plugin provides options to integrate QmailAdmin into the SquirrelMail +web interface. + +WWW: http://www.squirrelmail.org diff --git a/mail/squirrelmail-qmailadmin_login-plugin/pkg-plist b/mail/squirrelmail-qmailadmin_login-plugin/pkg-plist new file mode 100644 index 000000000000..cb214d02dd21 --- /dev/null +++ b/mail/squirrelmail-qmailadmin_login-plugin/pkg-plist @@ -0,0 +1,16 @@ +@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin qmailadmin_login; fi +%%SQUIRRELDIR%%/plugins/qmailadmin_login/COPYING +%%SQUIRRELDIR%%/plugins/qmailadmin_login/INSTALL +%%SQUIRRELDIR%%/plugins/qmailadmin_login/README +%%SQUIRRELDIR%%/plugins/qmailadmin_login/ReleaseNotes.txt +%%SQUIRRELDIR%%/plugins/qmailadmin_login/config_default.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/functions.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/index.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmailadmin_login.pot +%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmlogin.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmlogin_iframe.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/setup.php +%%SQUIRRELDIR%%/plugins/qmailadmin_login/version +%%SQUIRRELDIR%%/plugins/qmailadmin_login/xgetpot +@dirrm %%SQUIRRELDIR%%/plugins/qmailadmin_login/ +@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin qmailadmin_login; fi |