aboutsummaryrefslogtreecommitdiffstats
path: root/security/mailzu
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-08-15 03:54:33 +0800
committermiwi <miwi@FreeBSD.org>2009-08-15 03:54:33 +0800
commit829b60fb63505c4f1d69b7587b528018957df6be (patch)
tree1f7c5604e10e7fa4ffe810481cdb3d9acc4fa860 /security/mailzu
parent4ab61b170f1dc747dfa4c52ac01843cf2294b87a (diff)
downloadfreebsd-ports-gnome-829b60fb63505c4f1d69b7587b528018957df6be.tar.gz
freebsd-ports-gnome-829b60fb63505c4f1d69b7587b528018957df6be.tar.zst
freebsd-ports-gnome-829b60fb63505c4f1d69b7587b528018957df6be.zip
MailZu is a simple and intuitive web interface to manage Amavisd-new
quarantine. Users can view their own quarantine, release/delete messages or request the release of messages. MailZu is written in PHP and requires Amavisd-new version greater than 2.3.0. WWW: http://sourceforge.net/projects/mailzu/ PR: ports/137197 Submitted by: Sahil Tandon <sahil at tandon.net>
Diffstat (limited to 'security/mailzu')
-rw-r--r--security/mailzu/Makefile78
-rw-r--r--security/mailzu/distinfo3
-rw-r--r--security/mailzu/files/pkg-message.in24
-rw-r--r--security/mailzu/pkg-descr6
-rw-r--r--security/mailzu/pkg-plist206
5 files changed, 317 insertions, 0 deletions
diff --git a/security/mailzu/Makefile b/security/mailzu/Makefile
new file mode 100644
index 000000000000..804bcec49b8a
--- /dev/null
+++ b/security/mailzu/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for: mailzu
+# Date created: 20 July 2009
+# Whom: Sahil Tandon <sahil@tandon.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mailzu
+DISTVERSION= 0.8rc3
+CATEGORIES= security
+MASTER_SITES= SF
+DISTNAME= MailZu_${DISTVERSION:S/rc/RC/}
+
+MAINTAINER= sahil@tandon.net
+COMMENT= A simple and intuitive web interface to manage amavisd-new quarantine
+
+RUN_DEPENDS= ${LOCALBASE}/sbin/amavisd:${PORTSDIR}/security/amavisd-new \
+ ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
+ ${PEARDIR}/Mail/mime.php:${PORTSDIR}/mail/pear-Mail_Mime \
+ ${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket \
+ ${PEARDIR}/Mail/mimeDecode.php:${PORTSDIR}/mail/pear-Mail_mimeDecode
+
+NO_INSTALL_MANPAGES= yes
+
+PEARDIR?= ${LOCALBASE}/share/pear
+SUB_LIST+= PKGNAME=${PKGNAME}
+SUB_FILES= pkg-message
+NO_BUILD= yes
+USE_PHP= sockets
+WANT_PHP_WEB= yes
+
+OPTIONS= MYSQL "Use MySQL database storage/auth backend (default)" On \
+ PGSQL "Use PostgreSQL database/auth storage backend" Off \
+ IMAP "Use IMAP auth backend" Off \
+ LDAP "Use LDAP auth backend" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL)
+USE_PHP+= mysql
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PHP+= pgsql
+.endif
+
+.if defined(WITH_IMAP)
+USE_PHP+= imap
+.endif
+
+.if defined(WITH_LDAP)
+USE_PHP+= ldap
+.endif
+
+.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
+IGNORE= you must choose a SQL storage backend with 'make config'
+.endif
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+do-install:
+ @${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} -m 755 ${WWWDIR}
+ @${INSTALL_DATA} ${WRKSRC}/*.php* ${WRKSRC}/*.js* ${WRKSRC}/*.css* ${WWWDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "config contrib img lang lib templates" ${WWWDIR}
+ @cd ${WRKSRC} && ${COPYTREE_BIN} scripts ${WWWDIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR}
+ @${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${WRKSRC}/README ${DOCSDIR}
+ @${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
+.endif
+ @${CHMOD} 644 ${WWWDIR}/config/config.php.sample
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/security/mailzu/distinfo b/security/mailzu/distinfo
new file mode 100644
index 000000000000..92e3b681b725
--- /dev/null
+++ b/security/mailzu/distinfo
@@ -0,0 +1,3 @@
+MD5 (MailZu_0.8RC3.tar.gz) = 9c50ed9d468a4a932b625bfe1f835b3d
+SHA256 (MailZu_0.8RC3.tar.gz) = aec449f13642e0003eabe9d6a3daa4b8cfebe6d58b8dc9438aee0fec80a1ecc8
+SIZE (MailZu_0.8RC3.tar.gz) = 543781
diff --git a/security/mailzu/files/pkg-message.in b/security/mailzu/files/pkg-message.in
new file mode 100644
index 000000000000..1d228fc15d16
--- /dev/null
+++ b/security/mailzu/files/pkg-message.in
@@ -0,0 +1,24 @@
+%%PKGNAME%% has been installed into:
+
+ %%WWWDIR%%
+
+****************************************************
+Please read: %%DOCSDIR%%/INSTALL
+****************************************************
+
+Then, create and edit %%WWWDIR%%/config/config.php
+An example is provided in %%WWWDIR%%/config/config.php.sample
+
+Finally, make MailZu available through your web site. An
+example for httpd.conf:
+
+Alias /mailzu/ "%%WWWDIR%%/"
+
+<Directory "%%WWWDIR%%/">
+ Options none
+ AllowOverride Limit
+ Order Deny,Allow
+ Deny from all
+ Allow from 127.0.0.1 .example.org
+</Directory>
+
diff --git a/security/mailzu/pkg-descr b/security/mailzu/pkg-descr
new file mode 100644
index 000000000000..ccfb80833fb7
--- /dev/null
+++ b/security/mailzu/pkg-descr
@@ -0,0 +1,6 @@
+MailZu is a simple and intuitive web interface to manage Amavisd-new
+quarantine. Users can view their own quarantine, release/delete messages
+or request the release of messages. MailZu is written in PHP and requires
+Amavisd-new version greater than 2.3.0.
+
+WWW: http://sourceforge.net/projects/mailzu/
diff --git a/security/mailzu/pkg-plist b/security/mailzu/pkg-plist
new file mode 100644
index 000000000000..dce44eaa3571
--- /dev/null
+++ b/security/mailzu/pkg-plist
@@ -0,0 +1,206 @@
+@unexec if [ -f %D/%%WWWDIR%%/config/config.php ] && cmp -s %D%/%%WWWDIR%%/config/config.php %D%/%%WWWDIR%%/config/config.php.sample; then rm -f %D%/%%WWWDIR%%/config/config.php; fi
+%%WWWDIR%%/config/config.php.sample
+%%WWWDIR%%/config/constants.php
+%%WWWDIR%%/config/index.html
+%%WWWDIR%%/config/init.php
+%%WWWDIR%%/config/langs.php
+%%WWWDIR%%/contrib/additional_indexes.sql
+%%WWWDIR%%/contrib/mysql/mysql4.0_compat.diff
+%%WWWDIR%%/css.css
+%%WWWDIR%%/functions.js
+%%WWWDIR%%/help.php
+%%WWWDIR%%/img/blocked_img.png
+%%WWWDIR%%/img/en.blocked_img.png
+%%WWWDIR%%/img/favicon.ico
+%%WWWDIR%%/img/it.blocked_img.png
+%%WWWDIR%%/img/mailzu.gif
+%%WWWDIR%%/index.php
+%%WWWDIR%%/lang/cs.help.php
+%%WWWDIR%%/lang/cs.lang.php
+%%WWWDIR%%/lang/en.help.php
+%%WWWDIR%%/lang/en_GB.lang.php
+%%WWWDIR%%/lang/en_US.lang.php
+%%WWWDIR%%/lang/es.help.php
+%%WWWDIR%%/lang/es.lang.php
+%%WWWDIR%%/lang/fr.help.php
+%%WWWDIR%%/lang/fr.lang.php
+%%WWWDIR%%/lang/it.help.php
+%%WWWDIR%%/lang/it.lang.php
+%%WWWDIR%%/lang/pt_BR.lang.php
+%%WWWDIR%%/lib/AmavisdEngine.class.php
+%%WWWDIR%%/lib/Auth.class.php
+%%WWWDIR%%/lib/CmnFns.class.php
+%%WWWDIR%%/lib/DBAuth.class.php
+%%WWWDIR%%/lib/DBEngine.class.php
+%%WWWDIR%%/lib/ExchAuth.class.php
+%%WWWDIR%%/lib/IMAPAuth.class.php
+%%WWWDIR%%/lib/LDAPEngine.class.php
+%%WWWDIR%%/lib/Link.class.php
+%%WWWDIR%%/lib/MailEngine.class.php
+%%WWWDIR%%/lib/MailMime.class.php
+%%WWWDIR%%/lib/PHPMailer.class.php
+%%WWWDIR%%/lib/Pager.class.php
+%%WWWDIR%%/lib/Quarantine.lib.php
+%%WWWDIR%%/lib/Smtp.class.php
+%%WWWDIR%%/lib/Template.class.php
+%%WWWDIR%%/lib/htmlfilter.php
+%%WWWDIR%%/lib/index.html
+%%WWWDIR%%/lib/pear/DB.php
+%%WWWDIR%%/lib/pear/DB/common.php
+%%WWWDIR%%/lib/pear/DB/dbase.php
+%%WWWDIR%%/lib/pear/DB/fbsql.php
+%%WWWDIR%%/lib/pear/DB/ibase.php
+%%WWWDIR%%/lib/pear/DB/ifx.php
+%%WWWDIR%%/lib/pear/DB/msql.php
+%%WWWDIR%%/lib/pear/DB/mssql.php
+%%WWWDIR%%/lib/pear/DB/mysql.php
+%%WWWDIR%%/lib/pear/DB/mysqli.php
+%%WWWDIR%%/lib/pear/DB/oci8.php
+%%WWWDIR%%/lib/pear/DB/odbc.php
+%%WWWDIR%%/lib/pear/DB/pgsql.php
+%%WWWDIR%%/lib/pear/DB/sqlite.php
+%%WWWDIR%%/lib/pear/DB/storage.php
+%%WWWDIR%%/lib/pear/DB/sybase.php
+%%WWWDIR%%/lib/pear/Mail/mime.php
+%%WWWDIR%%/lib/pear/Mail/mimeDecode.php
+%%WWWDIR%%/lib/pear/Mail/mimePart.php
+%%WWWDIR%%/lib/pear/Net/Socket.php
+%%WWWDIR%%/lib/pear/OS/Guess.php
+%%WWWDIR%%/lib/pear/PEAR.php
+%%WWWDIR%%/lib/pear/PEAR/Autoloader.php
+%%WWWDIR%%/lib/pear/PEAR/Builder.php
+%%WWWDIR%%/lib/pear/PEAR/ChannelFile.php
+%%WWWDIR%%/lib/pear/PEAR/ChannelFile/Parser.php
+%%WWWDIR%%/lib/pear/PEAR/Command.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Auth.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Auth.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Build.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Build.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Channels.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Channels.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Common.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Config.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Config.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Install.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Install.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Mirror.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Mirror.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Package.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Package.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Pickle.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Pickle.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Registry.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Registry.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Remote.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Remote.xml
+%%WWWDIR%%/lib/pear/PEAR/Command/Test.php
+%%WWWDIR%%/lib/pear/PEAR/Command/Test.xml
+%%WWWDIR%%/lib/pear/PEAR/Common.php
+%%WWWDIR%%/lib/pear/PEAR/Config.php
+%%WWWDIR%%/lib/pear/PEAR/Dependency.php
+%%WWWDIR%%/lib/pear/PEAR/Dependency2.php
+%%WWWDIR%%/lib/pear/PEAR/DependencyDB.php
+%%WWWDIR%%/lib/pear/PEAR/Downloader.php
+%%WWWDIR%%/lib/pear/PEAR/Downloader/Package.php
+%%WWWDIR%%/lib/pear/PEAR/ErrorStack.php
+%%WWWDIR%%/lib/pear/PEAR/Exception.php
+%%WWWDIR%%/lib/pear/PEAR/Frontend.php
+%%WWWDIR%%/lib/pear/PEAR/Frontend/CLI.php
+%%WWWDIR%%/lib/pear/PEAR/Installer.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Common.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Data.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Data.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Doc.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Doc.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Ext.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Ext.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Php.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Php.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Script.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Script.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Src.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Src.xml
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Test.php
+%%WWWDIR%%/lib/pear/PEAR/Installer/Role/Test.xml
+%%WWWDIR%%/lib/pear/PEAR/PackageFile.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/Generator/v1.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/Generator/v2.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/Parser/v1.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/Parser/v2.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/v1.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/v2.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/v2/Validator.php
+%%WWWDIR%%/lib/pear/PEAR/PackageFile/v2/rw.php
+%%WWWDIR%%/lib/pear/PEAR/Packager.php
+%%WWWDIR%%/lib/pear/PEAR/REST.php
+%%WWWDIR%%/lib/pear/PEAR/REST/10.php
+%%WWWDIR%%/lib/pear/PEAR/REST/11.php
+%%WWWDIR%%/lib/pear/PEAR/Registry.php
+%%WWWDIR%%/lib/pear/PEAR/Remote.php
+%%WWWDIR%%/lib/pear/PEAR/RunTest.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Common.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Postinstallscript.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Postinstallscript/rw.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Replace.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Replace/rw.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Unixeol.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Unixeol/rw.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Windowseol.php
+%%WWWDIR%%/lib/pear/PEAR/Task/Windowseol/rw.php
+%%WWWDIR%%/lib/pear/PEAR/Validate.php
+%%WWWDIR%%/lib/pear/PEAR/Validator/PECL.php
+%%WWWDIR%%/lib/pear/PEAR/XMLParser.php
+%%WWWDIR%%/lib/pear/System.php
+%%WWWDIR%%/lib/pear/license.txt
+%%WWWDIR%%/messagesAdmin.php
+%%WWWDIR%%/messagesIndex.php
+%%WWWDIR%%/messagesPending.php
+%%WWWDIR%%/messagesPendingAdmin.php
+%%WWWDIR%%/messagesProcessing.php
+%%WWWDIR%%/messagesSummary.php
+%%WWWDIR%%/read_mail.php
+%%WWWDIR%%/read_original.php
+%%WWWDIR%%/scripts/mz_db_clean.pl
+%%WWWDIR%%/sendErrorReport.php
+%%WWWDIR%%/send_mail.php
+%%WWWDIR%%/summary.php
+%%WWWDIR%%/templates/auth.template.php
+%%WWWDIR%%/templates/common.template.php
+%%WWWDIR%%/templates/index.html
+%%WWWDIR%%/templates/quarantine.template.php
+%%WWWDIR%%/templates/sendmail.template.php
+%%WWWDIR%%/templates/summary.template.php
+%%WWWDIR%%/templates/viewmail.template.php
+@dirrmtry %%WWWDIR%%/config
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Validator
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Task/Windowseol
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Task/Unixeol
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Task/Replace
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Task/Postinstallscript
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Task
+@dirrm %%WWWDIR%%/lib/pear/PEAR/REST
+@dirrm %%WWWDIR%%/lib/pear/PEAR/PackageFile/v2
+@dirrm %%WWWDIR%%/lib/pear/PEAR/PackageFile/Parser
+@dirrm %%WWWDIR%%/lib/pear/PEAR/PackageFile/Generator
+@dirrm %%WWWDIR%%/lib/pear/PEAR/PackageFile
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Installer/Role
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Installer
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Frontend
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Downloader
+@dirrm %%WWWDIR%%/lib/pear/PEAR/Command
+@dirrm %%WWWDIR%%/lib/pear/PEAR/ChannelFile
+@dirrm %%WWWDIR%%/lib/pear/PEAR
+@dirrm %%WWWDIR%%/lib/pear/OS
+@dirrm %%WWWDIR%%/lib/pear/Net
+@dirrm %%WWWDIR%%/lib/pear/Mail
+@dirrm %%WWWDIR%%/lib/pear/DB
+@dirrm %%WWWDIR%%/lib/pear
+@dirrm %%WWWDIR%%/lib
+@dirrm %%WWWDIR%%/contrib/mysql
+@dirrm %%WWWDIR%%/contrib
+@dirrm %%WWWDIR%%/img
+@dirrm %%WWWDIR%%/lang
+@dirrm %%WWWDIR%%/scripts
+@dirrm %%WWWDIR%%/templates
+@dirrmtry %%WWWDIR%%