Bump, fixes #291248. Improvements by Allen Brooker and Andreis Vinogradovs.
authorPatrick Lauer <patrick@gentoo.org>
Tue, 16 Mar 2010 19:15:32 +0000 (19:15 +0000)
committerPatrick Lauer <patrick@gentoo.org>
Tue, 16 Mar 2010 19:15:32 +0000 (19:15 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

www-apps/postfixadmin/ChangeLog
www-apps/postfixadmin/Manifest
www-apps/postfixadmin/files/postinstall-en-2.3.txt [new file with mode: 0644]
www-apps/postfixadmin/metadata.xml
www-apps/postfixadmin/postfixadmin-2.3.ebuild [new file with mode: 0644]

index f9207dc2f86ad15df3678705bc0269f259c348e9..055f013944faa32f3b88d7eb09b502856d9f5503 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for www-apps/postfixadmin
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v 1.15 2009/10/11 08:39:31 hollow Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v 1.16 2010/03/16 19:15:31 patrick Exp $
+
+*postfixadmin-2.3 (16 Mar 2010)
+
+  16 Mar 2010; Patrick Lauer <patrick@gentoo.org> +postfixadmin-2.3.ebuild,
+  +files/postinstall-en-2.3.txt, metadata.xml:
+  Bump, fixes #291248. Improvements by Allen Brooker and Andreis
+  Vinogradovs.
 
   11 Oct 2009; Benedikt Böhm <hollow@gentoo.org>
   -postfixadmin-2.1.0-r1.ebuild, -postfixadmin-2.2.0.ebuild,
index 600c0070af8613caebee70c90c4483f12d3f5af9..97bd7374a38dfdf58dd221d221592e5f09d5a095 100644 (file)
@@ -1,5 +1,8 @@
 AUX postinstall-en-2.2.0.txt 1695 RMD160 2607111f4a6bf12439a5c175c6962a293c8dfbe6 SHA1 faee6ea464430ca5694f408d220e28dbcb59cad3 SHA256 42474dc5f921af2f6512c281a6ae3adbc7f58e00932e200f3aa81cc7b20b7063
+AUX postinstall-en-2.3.txt 1695 RMD160 4762f8e57c58e2765ee0477268f174d15c326fc9 SHA1 fedb5305c890ce63533d51bce6a7f82980ce5b30 SHA256 59f3d30c8c67f540620cd3e6fea0d11d5f0d5be2cc7b799b096575e43e41170c
 DIST postfixadmin-2.2.1.1.tar.gz 966600 RMD160 8d4d71bb02610812194afacd5b96e826090e2cdd SHA1 f6d3ef393cd16df82ced0589aad8efcf945ab877 SHA256 fbcebaf7dd607a8d7716f8ba14e352c515b30351cf52148298cd36a84ba803d7
+DIST postfixadmin_2.3.tar.gz 1558791 RMD160 c697b757a3730fdf8a8f107a0a474056edf6f2fc SHA1 c778a9dc115cba41933737fe8ee180dd5c7299e2 SHA256 e9fbb1dbb5567f01d87080427d42017c4afca85cfde5442219cb6b12023d1407
 EBUILD postfixadmin-2.2.1.1.ebuild 1780 RMD160 0db8d32d0f3099c71b0fb18454b6f62c0c49eef6 SHA1 7e5b4278f1bb79be31bd6e52c8b9811516ef9c2f SHA256 f76c92f976e0ce57f424ed2bf2dab8064756955e8115307e34abf258502af2ca
-MISC ChangeLog 3514 RMD160 a2664a81b203ff40e933ce57d09b8dbc2952e62f SHA1 0c8e88ae0106b732465c0f9283f3a2088d96f07f SHA256 b32d174e72d539b3d0e3410a7cd37c88d15dc154398770cc76f6ae84885254cb
-MISC metadata.xml 303 RMD160 ebd1637c44fbe83303cedc051b2da86937774776 SHA1 d440c537ebdb8cca8e35c904a5c990ec9a7685b2 SHA256 fb139c069b1a129f7588810b16df3f9047af8629443220b19ed664c1d939b1cb
+EBUILD postfixadmin-2.3.ebuild 1973 RMD160 714eaf438d1b1eb22e2f196ba469e060953bc2ec SHA1 871a63593932181e3537755104dcf24cd1b2c5bf SHA256 5b170a0bd664fa22071f0794484f67754e83f1247e94f96e03b2043d3cc64cad
+MISC ChangeLog 3752 RMD160 c96166c17eb093c21380293b6d5b586fbf7eb326 SHA1 10612913424c0b150be3b677b4ba82ac30813bbc SHA256 d6ecc8712ee1d19f4e3c9222b22063aade25a60e90a846a8088efe5dc84eb7aa
+MISC metadata.xml 440 RMD160 9ba267699771de28477e5ec2e33d89e4fe44ce45 SHA1 e5dc4d6b1d0bdaca2a981a408b3e05f14a0e9ab6 SHA256 37203b53205c76bc800b80b5a4ca18420f4241c93868a0a9408a0209be9e9189
diff --git a/www-apps/postfixadmin/files/postinstall-en-2.3.txt b/www-apps/postfixadmin/files/postinstall-en-2.3.txt
new file mode 100644 (file)
index 0000000..ef6bcf9
--- /dev/null
@@ -0,0 +1,47 @@
+You will need to provide a database for your postfixadmin installation.
+
+This assumes you have some knowledge of MySQL, and already have it
+installed and configured. If not, please refer to the Gentoo MySQL
+guide at the following URL:
+
+http://www.gentoo.org/doc/en/mysql-howto.xml
+
+Log in to MySQL, and create a new database as well as a user with full
+access to this database. After that you will need to provide the details
+of this database and the associated user within the file
+
+${MY_INSTALLDIR}/config.inc.php
+
+Make sure you also set
+
+  $CONF['configured'] = true;
+
+in this file.
+
+Finally you should be able to complete the installation of postfixadmin
+by pointing your browser at
+
+  http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/setup.php
+
+
+Updating from older version of Postfix Admin:
+  * When you are upgrading from an older Postfix Admin version, make sure you
+  * backup your database before you run the update script on your database.
+  *   mysqldump -a -u root -p > /tmp/postfixadmin-backup.sql
+
+  For update from version 1.5.x of Postfix Admin:
+    1. Please read the DOCUMENTS/UPGRADE.TXT
+       2. Run: http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/setup.php
+
+
+To use Virtual Vacation, please read VIRTUAL_VACATION_INSTALL.
+
+Check the config.inc.php file. There you can specify settings that are
+relevant to your setup.
+
+Postfix Admin contains 3 views of administration:
+  1. Site Admin view, located at http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/admin/.
+  2. Domain Admin view, located at http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/.
+  3. User Admin View, located at http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/users/.
+
+In order to do the initial configuration you have to go to the Site Admin view.
index 189c689fbc895e21188b17d93cb1d266d80cc493..04a95680060f59d11937328473ae51b0faeda8d3 100644 (file)
@@ -7,4 +7,8 @@
                <name>Gunnar Wrobel</name>
                <description>Primary maintainer</description>
        </maintainer>
+       <use>
+               <flag name='tests'>Install model unit tests</flag>
+               <flag name='extras'>Install contributed scripts and plugins</flag>
+       </use>
 </pkgmetadata>
diff --git a/www-apps/postfixadmin/postfixadmin-2.3.ebuild b/www-apps/postfixadmin/postfixadmin-2.3.ebuild
new file mode 100644 (file)
index 0000000..cdee0a7
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.3.ebuild,v 1.1 2010/03/16 19:15:31 patrick Exp $
+
+inherit eutils webapp depend.php confutils
+
+DESCRIPTION="Web Based Management tool for Postfix style virtual domains and users."
+HOMEPAGE="http://high5.net/postfixadmin/"
+MY_P="${PN}_${PV}"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="extras mysql postgres tests"
+
+DEPEND="dev-perl/DBI
+       virtual/perl-MIME-Base64
+       dev-perl/Email-Valid
+       dev-perl/Mail-Sender
+       dev-perl/log-dispatch
+       dev-perl/Log-Log4perl
+       mysql? ( dev-perl/DBD-mysql )
+       postgres? ( dev-perl/DBD-Pg )"
+RDEPEND="${DEPEND}"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+       webapp_pkg_setup
+
+       confutils_require_any mysql postgres
+
+       if use mysql; then
+               enewgroup vacation
+               enewuser vacation -1 -1 -1 vacation
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       ecvs_clean
+}
+
+src_install() {
+       webapp_src_preinst
+
+       # virtual vacation only works with MySQL
+       if use mysql; then
+               diropts -m0770 -o vacation -g vacation
+               dodir /var/spool/vacation
+               keepdir /var/spool/vacation
+               insinto /var/spool/vacation
+               insopts -m770 -o vacation -g vacation
+               doins "${S}"/VIRTUAL_VACATION/vacation.pl
+
+               diropts -m775 -o root -g root
+               insopts -m644 -o root -g root
+
+               mv VIRTUAL_VACATION/INSTALL.TXT VIRTUAL_VACATION_INSTALL.TXT
+               dodoc VIRTUAL_VACATION_INSTALL.TXT
+               rm VIRTUAL_VACATION_INSTALL.TXT
+       fi
+
+       local docs="DOCUMENTS/*.txt CHANGELOG.TXT INSTALL.TXT"
+       dodoc ${docs}
+
+       if ! use extras; then
+               rm -rf ADDITIONS/
+       fi
+
+       if ! use tests; then
+               rm -rf tests
+       fi
+
+       for FILE in DOCUMENTS/ GPL-LICENSE.TXT LICENSE.TXT debian/
+       do
+         rm -rf ${FILE}
+       done
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       webapp_configfile "${MY_HTDOCSDIR}"/config.inc.php
+
+       webapp_postinst_txt en "${FILESDIR}"/postinstall-en-2.3.txt
+       webapp_src_install
+}