mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
- smart config file management
- install our www tree with appropriate permissions - update pkg-descr, add WWW: - add a pkg-message - bump PORTREVISION PR: 61054 Submitted by: maintainer
This commit is contained in:
parent
bda255a881
commit
41b6f01a20
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97736
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= postfixadmin
|
||||
PORTVERSION= 2.0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://high5.net/postfixadmin/download.php/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
@ -21,6 +22,9 @@ RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
||||
.endif
|
||||
|
||||
WWW_USER?= www
|
||||
WWW_GROUP?= www
|
||||
|
||||
NO_BUILD= yes
|
||||
FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
@ -48,5 +52,17 @@ do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/languages/* ${PREFIX}/www/postfixadmin/languages
|
||||
@${INSTALL_DATA} ${WRKSRC}/templates/* ${PREFIX}/www/postfixadmin/templates
|
||||
@${INSTALL_DATA} ${WRKSRC}/users/* ${PREFIX}/www/postfixadmin/users
|
||||
@[ -f ${PREFIX}/www/postfixadmin/config.inc.php ] || \
|
||||
${CP} ${PREFIX}/www/postfixadmin/config.inc.php.sample \
|
||||
${PREFIX}/www/postfixadmin/config.inc.php
|
||||
|
||||
|
||||
post-install:
|
||||
@${CHOWN} -R ${WWW_USER}:${WWW_GROUP} ${PREFIX}/www/postfixadmin
|
||||
@${CHMOD} 640 ${PREFIX}/www/postfixadmin/*.php ${PREFIX}/www/postfixadmin/*.css
|
||||
@${CHMOD} 640 ${PREFIX}/www/postfixadmin/admin/*.php
|
||||
@${CHMOD} 640 ${PREFIX}/www/postfixadmin/users/*.php
|
||||
@${CHMOD} 640 ${PREFIX}/www/postfixadmin/templates/*.tpl
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,11 +1,15 @@
|
||||
Postfix Admin is a Web Based Management tool for Postfix when you
|
||||
are dealing with Postfix Style Virtual Domains and Virtual Users
|
||||
that are stored in MySQL. Written in PHP.
|
||||
that are stored in MySQL. It's written in PHP.
|
||||
|
||||
Postfix Admin supports:
|
||||
- Virtual Mailboxes.
|
||||
- Virtual Aliases / Forwarders / Catch-All.
|
||||
- Virtual Mailboxes / Virtual Aliases / Forwarders.
|
||||
- Domain to Domain forwarding / Catch-All.
|
||||
- Vacation for Virtual Mailboxes (with the additional module).
|
||||
Requirements:
|
||||
- Postfix 2.0 or higher.
|
||||
- Apache 1.3.27 or higher.
|
||||
- PHP 4.1 or higher.
|
||||
- MySQL 3.23.55 or higher.
|
||||
|
||||
WWW: http://www.high5.net/postfixadmin
|
||||
|
25
mail/postfixadmin/pkg-message
Normal file
25
mail/postfixadmin/pkg-message
Normal file
@ -0,0 +1,25 @@
|
||||
To Install and use postfixadmin:
|
||||
|
||||
1. Create the MySQL Tables
|
||||
--------------------------
|
||||
In ${PREFIX}/www/postfixadmin/DATABASE.TXT you can find the table
|
||||
structure that you need in order to configure Postfix Admin and Postfix
|
||||
in general to work with Virtual Domains and Users
|
||||
|
||||
2. Configure
|
||||
------------
|
||||
Check the ${PREFIX}/www/postfixadmin/config.inc.php file. There you
|
||||
can specify settings that are relevant to your setup.
|
||||
|
||||
The default password for the admin part of Postfix Admin is admin/admin.
|
||||
This is specified in the .htpasswd file in the admin directory. Make sure
|
||||
that the location of the .htpasswd file matches your path.
|
||||
|
||||
3. Configure Apache
|
||||
-------------------
|
||||
Add a line in your httpd.conf to allow the use of .htaccess file.
|
||||
|
||||
<Directory "/usr/local/www/postfixadmin">
|
||||
Options Indexes
|
||||
AllowOverride AuthConfig
|
||||
</Directory>
|
@ -25,7 +25,9 @@ www/postfixadmin/admin/list-admin.php
|
||||
www/postfixadmin/admin/list-domain.php
|
||||
www/postfixadmin/admin/list-virtual.php
|
||||
www/postfixadmin/admin/viewlog.php
|
||||
@unexec if cmp -s %D/www/postfixadmin/config.inc.php %D/www/postfixadmin/config.inc.php.sample; then rm -f %D/www/postfixadmin/config.inc.php; fi
|
||||
www/postfixadmin/config.inc.php.sample
|
||||
@exec [ -f %B/config.inc.php ] || cp %B/%f %B/config.inc.php
|
||||
www/postfixadmin/create-alias.php
|
||||
www/postfixadmin/create-mailbox.php
|
||||
www/postfixadmin/delete.php
|
||||
|
Loading…
Reference in New Issue
Block a user