From 7d2918ee107326ca6636d79efde5ffbc5ce372b2 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sat, 3 Jan 2004 06:56:12 +0000 Subject: New port mail/postfixadmin A tool to manage virtual domains via a PHP interface Postfix Admin is a Web Based Management tool for Postfix when you are dealing with Postfix Style Virtual Domains and Virtual Users that are store in MySQL. Written in PHP. PR: ports/54984, ports/58417 Submitted by: SIN-HSIUNG CHANG , Rob Evers --- mail/Makefile | 1 + mail/postfixadmin/Makefile | 38 ++++++++++++++++++++++++++++++++++ mail/postfixadmin/distinfo | 1 + mail/postfixadmin/files/patch-.htacces | 8 +++++++ mail/postfixadmin/pkg-descr | 11 ++++++++++ mail/postfixadmin/pkg-plist | 35 +++++++++++++++++++++++++++++++ 6 files changed, 94 insertions(+) create mode 100644 mail/postfixadmin/Makefile create mode 100644 mail/postfixadmin/distinfo create mode 100644 mail/postfixadmin/files/patch-.htacces create mode 100644 mail/postfixadmin/pkg-descr create mode 100644 mail/postfixadmin/pkg-plist (limited to 'mail') diff --git a/mail/Makefile b/mail/Makefile index d866d751aafa..d04fa416c654 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -279,6 +279,7 @@ SUBDIR += postfix SUBDIR += postfix-current SUBDIR += postfix1 + SUBDIR += postfixadmin SUBDIR += postilion SUBDIR += premail SUBDIR += procmail diff --git a/mail/postfixadmin/Makefile b/mail/postfixadmin/Makefile new file mode 100644 index 000000000000..6aab921d49ef --- /dev/null +++ b/mail/postfixadmin/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: postfixadmin +# Date created: 23 October 2003 +# Whom: Rob Evers +# +# $FreeBSD$ +# + +PORTNAME= postfixadmin +PORTVERSION= 1.5.4 +CATEGORIES= mail +MASTER_SITES= http://high5.net/postfixadmin/download.php/ +DISTNAME= ${PORTNAME}-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= rob@debank.tv +COMMENT= PHP frontend to postfix and mySQL + +.if defined(WITH_APACHE2) +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4 +.else +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +.endif + +NO_BUILD= yes +FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} + +do-fetch: + ${FETCH_CMD} ${FETCH_BEFORE_ARGS} \ + ${MASTER_SITES}?file=${DISTNAME}${EXTRACT_SUFX} + +post-patch: + ${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${PREFIX}/www/postfixadmin + @${CP} -r ${WRKSRC}/* ${PREFIX}/www/postfixadmin/ + +.include diff --git a/mail/postfixadmin/distinfo b/mail/postfixadmin/distinfo new file mode 100644 index 000000000000..4e5f6dd38edf --- /dev/null +++ b/mail/postfixadmin/distinfo @@ -0,0 +1 @@ +MD5 (postfixadmin-1.5.4.tgz) = a56de975c1c94637689db991eb59ebba diff --git a/mail/postfixadmin/files/patch-.htacces b/mail/postfixadmin/files/patch-.htacces new file mode 100644 index 000000000000..105bacab32b5 --- /dev/null +++ b/mail/postfixadmin/files/patch-.htacces @@ -0,0 +1,8 @@ +--- admin/.htaccess.orig Thu Oct 23 11:17:10 2003 ++++ admin/.htaccess Thu Oct 23 11:17:23 2003 +@@ -1,4 +1,4 @@ +-AuthUserFile /usr/local/postfixadmin/admin/.htpasswd ++AuthUserFile /usr/local/www/postfixadmin/admin/.htpasswd + AuthGroupFile /dev/null + AuthName "Postfix Admin" + AuthType Basic diff --git a/mail/postfixadmin/pkg-descr b/mail/postfixadmin/pkg-descr new file mode 100644 index 000000000000..afad4d3c168d --- /dev/null +++ b/mail/postfixadmin/pkg-descr @@ -0,0 +1,11 @@ +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. + +Postfix Admin supports: + - Virtual Mailboxes. + - Virtual Aliases / Forwarders / Catch-All. + - Vacation for Virtual Mailboxes (with the additional module). +Requirements: + - Postfix 2.0 or higher. + - PHP 4.1 or higher. diff --git a/mail/postfixadmin/pkg-plist b/mail/postfixadmin/pkg-plist new file mode 100644 index 000000000000..c13fa67212f9 --- /dev/null +++ b/mail/postfixadmin/pkg-plist @@ -0,0 +1,35 @@ +www/postfixadmin/admin/sendmail.php +www/postfixadmin/admin/.htpasswd +www/postfixadmin/admin/adminview.php +www/postfixadmin/admin/delete.php +www/postfixadmin/admin/domainview.php +www/postfixadmin/admin/index.php +www/postfixadmin/admin/newadmin.php +www/postfixadmin/admin/newdomain.php +www/postfixadmin/admin/passwd.php +www/postfixadmin/admin/virtualview.php +www/postfixadmin/admin/.htaccess +www/postfixadmin/admin/modify.php +www/postfixadmin/vacation.php +www/postfixadmin/stylesheet.css +www/postfixadmin/sendmail.php +www/postfixadmin/pwd.php +www/postfixadmin/passwd.php +www/postfixadmin/my_lib.php +www/postfixadmin/modify.php +www/postfixadmin/main.php +www/postfixadmin/mailbox.php +www/postfixadmin/logout.php +www/postfixadmin/login.php +www/postfixadmin/index.php +www/postfixadmin/delete.php +www/postfixadmin/config.inc.php.sample +www/postfixadmin/changename.php +www/postfixadmin/alias.php +www/postfixadmin/UPGRADE.TXT +www/postfixadmin/LICENSE.TXT +www/postfixadmin/INSTALL.TXT +www/postfixadmin/vcp.php +www/postfixadmin/CHANGELOG.TXT +@dirrm www/postfixadmin/admin +@dirrm www/postfixadmin -- cgit v1.2.3