dracMail is a webmail interface built using PHP, ExtJS (JavaScript framework),

MySQL and IMAP. Features include: Rich UI, WYSIWYG editor, HTML mail composing
and message caching.

WWW: http://dracmail.net/

PR:		ports/153987
Submitted by:	Marian Jamrich <jamrich.majo@gmail.com>
Feature safe:	yes
This commit is contained in:
Wen Heping 2011-01-18 06:05:58 +00:00
parent 4dd7316dad
commit 946b7e10a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267936
6 changed files with 8661 additions and 0 deletions

View file

@ -105,6 +105,7 @@
SUBDIR += dovecot2
SUBDIR += dovecot2-pigeonhole
SUBDIR += drac
SUBDIR += dracmail
SUBDIR += drbl
SUBDIR += dsbl-testers
SUBDIR += dspam

53
mail/dracmail/Makefile Normal file
View file

@ -0,0 +1,53 @@
# New ports collection makefile for: dracmail
# Date created: 14 January 2011
# Whom: jamrich.majo@gmail.com
#
# $FreeBSD$
#
PORTNAME= dracmail
PORTVERSION= 0.1.2
CATEGORIES= mail
MASTER_SITES= SF/dracmail/release/
DISTNAME= dracMail-${PORTVERSION}_release
MAINTAINER= jamrich.majo@gmail.com
COMMENT= DracMail is a webmail interface built using PHP
RUN_DEPENDS+= php:${PORTSDIR}/lang/php5
USE_PHP+= mysql imap dom tidy iconv mbstring
USE_MYSQL= yes
NO_BUILD= yes
WWWOWN= www
WWWGRP= ${WWWOWN}
PKGMESSAGE= ${WRKDIR}/${PORTNAME}/pkg-message
SUB_FILES= pkg-message
PLIST_DIRSTRY= %%WWWDIR%%
OPTIONS= POSTGRE "Use PostgreSQL Database" off \
APACHE "Use Apache webserver" on \
LIGHTTPD "Use Lighttpd webserver" off
.include <bsd.port.options.mk>
.if defined(WITH_POSTGRE)
USE_PHP+= pgsql
.endif
.if defined(WITH_APACHE)
USE_APACHE= 22
.endif
.if defined(WITH_LIGHTTPD)
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
.endif
do-install:
@${MKDIR} ${WWWDIR}
@${CP} -r ${WRKDIR}/* ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

2
mail/dracmail/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (dracMail-0.1.2_release.tar.gz) = c7113aa21e4f24daf0f57b1cd79718ba4de4066009ce78a6c2e9d33123fbc7ee
SIZE (dracMail-0.1.2_release.tar.gz) = 14123071

View file

@ -0,0 +1,43 @@
-----------------------------------------------------------------------------
Installation has successfully completed!
-----------------------------------------------------------------------------
DracMail Webmail is now installed in documentoroot: %%WWWDIR%%.
For installation please see: http://dracmail.net/?page=documentation or:
1) MySQL:
cd %%WWWDIR%%
mysql -u root -p'your_root_password'
CREATE USER 'WEBMAIL_USERNAME'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE WEBMAIL_DATABASE_NAME;
USE 'WEBMAIL_DATABASE_NAME';
mysql -u root -p'your_root_password' < ./api/SQL/dracmail.sql;
GRANT SELECT, INSERT, UPDATE, DELETE ON WEBMAIL_DATABASE_NAME.* TO WEBMAIL_USERNAME@localhost;
FLUSH PRIVILEGES;
quit;
2) Copy and edit configuration.php:
cp api/configuration.php.sample api/configuration.php
3) Config your IMAP and MYSQL:
nano api/configuration.php
IMAP Server configuration:
define('IMAP_SERVER_HOST', "localhost"); // Your server hostname, default to 'localhost'
define('IMAP_SERVER_PORT', "143"); // Your server port, default to 143
MySQL Server configuration:
define('MYSQL_HOST', 'localhost'); // Your MySQL server hostname, default to 'localhost'
define('MYSQL_USER', 'WEBMAIL_USERNAME'); // Your webmail username
define('MYSQL_PASS', 'PASSWORD'); // Your webmail user password
define('MYSQL_DB', 'WEBMAIL_DATABASE_NAME'); // Database name, default to 'dracmail'
3) And finally connect: http://your-server/dracmail.
-----------------------------------------------------------------------------

5
mail/dracmail/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
dracMail is a webmail interface built using PHP, ExtJS (JavaScript framework),
MySQL and IMAP. Features include: Rich UI, WYSIWYG editor, HTML mail composing
and message caching.
WWW: http://dracmail.net/

8557
mail/dracmail/pkg-plist Normal file

File diff suppressed because it is too large Load diff