Date: Thu, 8 Jan 2004 05:16:45 +0100 (CET) From: Rob Evers <rob@debank.tv> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/61054: [Maintainer-update] mail/postfixadmin Message-ID: <200401080416.i084GjFo089940@haha.debank.tv> Resent-Message-ID: <200401080420.i084KIaV097425@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 61054 >Category: ports >Synopsis: [Maintainer-update] mail/postfixadmin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jan 07 20:20:18 PST 2004 >Closed-Date: >Last-Modified: >Originator: Rob Evers >Release: FreeBSD 4.9-RELEASE i386 >Organization: >Environment: System: FreeBSD haha.debank.tv 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Thu Nov 13 01:17:26 CET 2003 rob@haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386 >Description: Update mail/postfixadmin Added pkg-message. Updated pkg-descr. Fixed some privileges. Be smarter with config files. >How-To-Repeat: >Fix: --- postfixadmin.patch begins here --- diff -ruN postfixadmin.orig/Makefile postfixadmin/Makefile --- postfixadmin.orig/Makefile Thu Jan 8 03:59:47 2004 +++ postfixadmin/Makefile Thu Jan 8 05:13:39 2004 @@ -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/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 @@ @${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> diff -ruN postfixadmin.orig/pkg-descr postfixadmin/pkg-descr --- postfixadmin.orig/pkg-descr Thu Jan 8 03:59:47 2004 +++ postfixadmin/pkg-descr Thu Jan 8 04:01:37 2004 @@ -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 diff -ruN postfixadmin.orig/pkg-message postfixadmin/pkg-message --- postfixadmin.orig/pkg-message Thu Jan 1 01:00:00 1970 +++ postfixadmin/pkg-message Thu Jan 8 04:49:31 2004 @@ -0,0 +1,27 @@ +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> + diff -ruN postfixadmin.orig/pkg-plist postfixadmin/pkg-plist --- postfixadmin.orig/pkg-plist Thu Jan 8 03:59:47 2004 +++ postfixadmin/pkg-plist Thu Jan 8 05:07:58 2004 @@ -25,7 +25,9 @@ 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 --- postfixadmin.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401080416.i084GjFo089940>