ports/106561: New port: mail/squirrelmail-qmailadmin_login-plugin
Gerrit Beine
gerrit.beine at gmx.de
Sun Dec 10 12:00:25 UTC 2006
>Number: 106561
>Category: ports
>Synopsis: New port: mail/squirrelmail-qmailadmin_login-plugin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 10 12:00:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Gerrit Beine
>Release: FreeBSD 6.1-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD freebsd.vmware 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
This plugin for SquirrelMail offers the possibility for using the QmailAdmin cgi interface from SquirrelMail.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# squirrelmail-qmailadmin_login-plugin
# squirrelmail-qmailadmin_login-plugin/Makefile
# squirrelmail-qmailadmin_login-plugin/distinfo
# squirrelmail-qmailadmin_login-plugin/pkg-descr
# squirrelmail-qmailadmin_login-plugin/pkg-plist
# squirrelmail-qmailadmin_login-plugin/files
# squirrelmail-qmailadmin_login-plugin/files/pkg-message.in
#
echo c - squirrelmail-qmailadmin_login-plugin
mkdir -p squirrelmail-qmailadmin_login-plugin > /dev/null 2>&1
echo x - squirrelmail-qmailadmin_login-plugin/Makefile
sed 's/^X//' >squirrelmail-qmailadmin_login-plugin/Makefile << 'END-of-squirrelmail-qmailadmin_login-plugin/Makefile'
X# New ports collection makefile for: squirrelmail-qmailadmin_login-plugin
X# Date created: 9 Dec 2006
X# Whom: Gerrit Beine <gerrit.beine at gmx.de>
X#
X# $FreeBSD$
X
XPORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
XPORTVERSION= 1.1
XCATEGORIES= mail www
XMASTER_SITES= http://www.squirrelmail.org/plugins/
XDISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.3
XDIST_SUBDIR= squirrelmail
X
XMAINTAINER= gerrit.beine at gmx.de
XCOMMENT= Using the QmailAdmin cgi interface from SquirrelMail
X
XRUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
X ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
X
XSQUIRREL_PLUGIN_NAME= qmailadmin_login
X
X.ifdef SQUIRRELDIR
XPLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
XSUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
X.else
X. ifndef WITHOUT_WWWDIR
XSQUIRRELDIR= ${PREFIX}/www/squirrelmail
XPLIST_SUB+= SQUIRRELDIR=www/squirrelmail
XSUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
X. else
XSQUIRRELDIR= ${PREFIX}/squirrelmail
XPLIST_SUB+= SQUIRRELDIR=squirrelmail
XSUB_LIST+= "SQUIRRELDIR=squirrelmail"
X. endif
X.endif
X
XSUB_FILES= pkg-message
X
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
XUSE_PERL5_BUILD= yes
XUSE_PHP= yes
XWANT_PHP_WEB= yes
X
Xpre-everything::
X @${ECHO} ""
X.ifndef WITHOUT_ACTIVATE
X @${ECHO} "Activating plug-in in SquirrelMail after installation."
X @${ECHO} "If you don't want to automatically activate the plug-in set"
X @${ECHO} "WITHOUT_ACTIVATE=yes"
X.else
X @${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
X @${ECHO} "If you want to automatically activate the plug-in unset"
X @${ECHO} "WITHOUT_ACTIVATE"
X.endif
X @${ECHO} ""
X
Xdo-install:
X ${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
X ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
X
Xpost-install:
X.ifndef WITHOUT_ACTIVATE
X.if exists( ${SQUIRRELDIR}/config/config.php )
X @${ECHO} "Activating plug-in in SquirrelMail"
X ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
X.endif
X.else
X @${ECHO} "To activate the plug-in in SquirrelMail use"
X @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
X.endif
X @${ECHO} ""
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-squirrelmail-qmailadmin_login-plugin/Makefile
echo x - squirrelmail-qmailadmin_login-plugin/distinfo
sed 's/^X//' >squirrelmail-qmailadmin_login-plugin/distinfo << 'END-of-squirrelmail-qmailadmin_login-plugin/distinfo'
XMD5 (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = 1555b79e5864d111a16c1504ff6f827e
XSHA256 (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = e7d3b0a03837ae9b9cc3686e18a260891ad75ace4f1920bbabf18aa774e87b73
XSIZE (squirrelmail/qmailadmin_login-1.1-1.4.3.tar.gz) = 11028
END-of-squirrelmail-qmailadmin_login-plugin/distinfo
echo x - squirrelmail-qmailadmin_login-plugin/pkg-descr
sed 's/^X//' >squirrelmail-qmailadmin_login-plugin/pkg-descr << 'END-of-squirrelmail-qmailadmin_login-plugin/pkg-descr'
XThis plugin provides options to integrate QmailAdmin into the SquirrelMail
Xweb interface.
X
XWWW: http://www.squirrelmail.org
END-of-squirrelmail-qmailadmin_login-plugin/pkg-descr
echo x - squirrelmail-qmailadmin_login-plugin/pkg-plist
sed 's/^X//' >squirrelmail-qmailadmin_login-plugin/pkg-plist << 'END-of-squirrelmail-qmailadmin_login-plugin/pkg-plist'
X at unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin qmailadmin_login; fi
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/COPYING
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/INSTALL
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/README
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/ReleaseNotes.txt
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/config_default.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/functions.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/index.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmailadmin_login.pot
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmlogin.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/qmlogin_iframe.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/setup.php
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/version
X%%SQUIRRELDIR%%/plugins/qmailadmin_login/xgetpot
X at dirrm %%SQUIRRELDIR%%/plugins/qmailadmin_login/
X at exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin qmailadmin_login; fi
END-of-squirrelmail-qmailadmin_login-plugin/pkg-plist
echo c - squirrelmail-qmailadmin_login-plugin/files
mkdir -p squirrelmail-qmailadmin_login-plugin/files > /dev/null 2>&1
echo x - squirrelmail-qmailadmin_login-plugin/files/pkg-message.in
sed 's/^X//' >squirrelmail-qmailadmin_login-plugin/files/pkg-message.in << 'END-of-squirrelmail-qmailadmin_login-plugin/files/pkg-message.in'
XFor the port to work properly you must copy the file
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/qmailadmin_login/config_default.php
Xto
X%%PREFIX%%/%%SQUIRRELDIR%%/plugins/qmailadmin_login/config.php
Xand edit the configuration to meet your needs.
END-of-squirrelmail-qmailadmin_login-plugin/files/pkg-message.in
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list