From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 7 20:20:30 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D589A16A4CE for ; Wed, 7 Jan 2004 20:20:30 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 087FA43D2F for ; Wed, 7 Jan 2004 20:20:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i084KIFR097426 for ; Wed, 7 Jan 2004 20:20:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i084KIaV097425; Wed, 7 Jan 2004 20:20:18 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 7 Jan 2004 20:20:18 -0800 (PST) Resent-Message-Id: <200401080420.i084KIaV097425@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rob Evers Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F8F516A4CE for ; Wed, 7 Jan 2004 20:17:33 -0800 (PST) Received: from haha.debank.tv (c92069.upc-c.chello.nl [212.187.92.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54B0C43D67 for ; Wed, 7 Jan 2004 20:16:47 -0800 (PST) (envelope-from rob@debank.tv) Received: from haha.debank.tv (localhost [127.0.0.1]) by haha.debank.tv (8.12.9p2/8.12.9) with ESMTP id i084Gjaq089941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Jan 2004 05:16:45 +0100 (CET) (envelope-from rob@debank.tv) Received: (from rob@localhost) by haha.debank.tv (8.12.9p2/8.12.9/Submit) id i084GjFo089940; Thu, 8 Jan 2004 05:16:45 +0100 (CET) (envelope-from rob) Message-Id: <200401080416.i084GjFo089940@haha.debank.tv> Date: Thu, 8 Jan 2004 05:16:45 +0100 (CET) From: Rob Evers To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/61054: [Maintainer-update] mail/postfixadmin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Rob Evers List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 04:20:30 -0000 >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 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. + + + Options Indexes + AllowOverride AuthConfig + + 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: