summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-10-19 10:44:58 +0000
committerPeter Volkov <pva@gentoo.org>2011-10-19 10:44:58 +0000
commit3cfe7cb1709d54d63cea1e9becf5d4f21b6f1c0a (patch)
tree02e16194053d2923f2b136594ba74f096bf1c601
parentdev-php/adodb, net-analyzer/cacti{,-spine}: are in the tree. (diff)
downloadpva-3cfe7cb1709d54d63cea1e9becf5d4f21b6f1c0a.tar.gz
pva-3cfe7cb1709d54d63cea1e9becf5d4f21b6f1c0a.tar.bz2
pva-3cfe7cb1709d54d63cea1e9becf5d4f21b6f1c0a.zip
www-apps/postfixadmin, net-misc/lbcore: Version bump.
svn path=/; revision=509
-rw-r--r--net-misc/lbcore/Manifest2
-rw-r--r--net-misc/lbcore/lbcore-1.9.009.20110930.ebuild56
-rw-r--r--www-apps/postfixadmin/ChangeLog125
-rw-r--r--www-apps/postfixadmin/Manifest6
-rw-r--r--www-apps/postfixadmin/files/postinstall-en-2.2.0.txt47
-rw-r--r--www-apps/postfixadmin/files/postinstall-en-2.3.txt47
-rw-r--r--www-apps/postfixadmin/metadata.xml14
-rw-r--r--www-apps/postfixadmin/postfixadmin-2.3.4.ebuild101
8 files changed, 398 insertions, 0 deletions
diff --git a/net-misc/lbcore/Manifest b/net-misc/lbcore/Manifest
index 0337d4d..a523665 100644
--- a/net-misc/lbcore/Manifest
+++ b/net-misc/lbcore/Manifest
@@ -10,6 +10,7 @@ DIST LBcore-1.9-007-Linux_x86_64-20110110.tar.gz 17995449 RMD160 2fe4a40292fee9e
DIST LBcore-1.9-008-Linux_x86_64-20110901.tar.gz 16749498 RMD160 61a3238085283bb24eb8710f4771b606098da720 SHA1 44c14dfbecc61fb77d377140ec6f34ba38c53618 SHA256 cd52c4293a92063f84d375f0fd261d28edba5c9a430129988d9755332a0ff7e2
DIST LBcore-1.9-009-Linux_x86_64-20110808.tar.gz 17996143 RMD160 0a3bc7647771a7915be311170ea0822fc9dc2860 SHA1 3e6f464b56f60edaee4e03f8741a1b7e00f98e4d SHA256 f4c5bea2f5ccebac35acbcbae20b43f69186aba4fe48c5a9f9ab53c58efc3b08
DIST LBcore-1.9-009-Linux_x86_64-20110922.rpm 17933015 RMD160 dc01a162bab0088c72bc4b0c46a58f5f1fdc69b2 SHA1 c62d23924d95a811afc8758f6a9a12ce823dd70b SHA256 cf10ac4b612dd3eb66cdf95cb9c13064b8ceb89177e79f9422b147efe1b2b717
+DIST LBcore-1.9-009-Linux_x86_64-dyn-20110930.rpm 17935537 RMD160 a2e9f0315407700dadf3be963ccac101f30dec68 SHA1 a8d944a77b4928494a254f6546e2deff00063472 SHA256 767380497c26b603b1a4204dadc692c690a3acfb070b6dbd83b840a9484c25d8
EBUILD lbcore-1.9.006.20100903.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe59f2e16dcf8 SHA1 1e276110318cd0c8468bfbbe95954632faf49124 SHA256 a50c99aa4400e978eb4f809daee5c4ddd84066289831872e570006aa2f59ecb2
EBUILD lbcore-1.9.006.20100914.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe59f2e16dcf8 SHA1 1e276110318cd0c8468bfbbe95954632faf49124 SHA256 a50c99aa4400e978eb4f809daee5c4ddd84066289831872e570006aa2f59ecb2
EBUILD lbcore-1.9.007.20101005.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe59f2e16dcf8 SHA1 1e276110318cd0c8468bfbbe95954632faf49124 SHA256 a50c99aa4400e978eb4f809daee5c4ddd84066289831872e570006aa2f59ecb2
@@ -20,3 +21,4 @@ EBUILD lbcore-1.9.007.20110110.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe5
EBUILD lbcore-1.9.008.20110901.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe59f2e16dcf8 SHA1 1e276110318cd0c8468bfbbe95954632faf49124 SHA256 a50c99aa4400e978eb4f809daee5c4ddd84066289831872e570006aa2f59ecb2
EBUILD lbcore-1.9.009.20110808.ebuild 1365 RMD160 35993b13ce319457a4bfa018de5fe59f2e16dcf8 SHA1 1e276110318cd0c8468bfbbe95954632faf49124 SHA256 a50c99aa4400e978eb4f809daee5c4ddd84066289831872e570006aa2f59ecb2
EBUILD lbcore-1.9.009.20110922.ebuild 1368 RMD160 6e14cf9322a1eb728029f9602edee4fdbc131874 SHA1 d9677e6ed04d07cfdcba6f2d3064c0b7275c2b3a SHA256 003b9cf32b7c6ce7c5c071435dd1bb6e9d5f0b4d253c68a18ef72834ba7a96cf
+EBUILD lbcore-1.9.009.20110930.ebuild 1372 RMD160 691a41e9180a1763ac5ebf8f1d85e0395875e802 SHA1 ae2bcf23ecfe37579d6f630f55772158b73e708f SHA256 0d742523882abad19e300147891394a42bc975c9ee069d82a24f374f7cd42e59
diff --git a/net-misc/lbcore/lbcore-1.9.009.20110930.ebuild b/net-misc/lbcore/lbcore-1.9.009.20110930.ebuild
new file mode 100644
index 0000000..6a2c62e
--- /dev/null
+++ b/net-misc/lbcore/lbcore-1.9.009.20110930.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+WEBAPP_MANUAL_SLOT="yes"
+inherit versionator webapp depend.php rpm
+
+DATESTAMP="-$(get_version_component_range 4)"
+MY_PV=$(get_version_component_range 1-2)-$(get_version_component_range 3)
+MY_P="LBcore-${MY_PV}-Linux_x86_64-dyn${DATESTAMP}.rpm"
+
+DESCRIPTION="lanbilling - billing system for internet/telephony service providers"
+HOMEPAGE="http://www.lanbilling.ru/"
+SRC_URI="${MY_P}"
+
+RESTRICT="fetch binchecks"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ elog "Please download ${A} from ${HOMEPAGE}"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_install() {
+ dodir etc
+ mv etc/billing.conf.LBcore.sample "${ED}"/etc/billing.conf || die
+ rm -rf etc
+
+ pushd usr/local/billing/phpclient >/dev/null
+ webapp_src_preinst
+ mkdir admin/files
+ SERVEROWNED_LIST="$(find admin/files admin/templates -type d) admin/users_reports"
+ mv * "${ED}"${MY_HTDOCSDIR} || die
+ webapp_serverowned $(printf "${MY_HTDOCSDIR}/%s " ${SERVEROWNED_LIST})
+# webapp_configfile ${MY_HTDOCSDIR}/soap/api3.wsdl
+ webapp_src_install
+ popd >/dev/null
+
+ mv ./usr/* "${ED}"/usr || die
+
+ newinitd "${FILESDIR}/LBcore.initd" LBcore
+ newconfd "${FILESDIR}/LBcore.confd" LBcore
+
+ chmod -R ugo=rX "${ED}/usr/share/webapps/"
+}
diff --git a/www-apps/postfixadmin/ChangeLog b/www-apps/postfixadmin/ChangeLog
new file mode 100644
index 0000000..31ff6f9
--- /dev/null
+++ b/www-apps/postfixadmin/ChangeLog
@@ -0,0 +1,125 @@
+# ChangeLog for www-apps/postfixadmin
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/ChangeLog,v 1.22 2011/04/30 19:17:21 pva Exp $
+
+*postfixadmin-2.3.3 (30 Apr 2011)
+
+ 30 Apr 2011; Peter Volkov <pva@gentoo.org> +postfixadmin-2.3.3.ebuild:
+ Version bump, bug #363041, thank Per Pomsel for report.
+
+ 02 Jan 2011; Markos Chandras <hwoarang@gentoo.org> postfixadmin-2.3.2.ebuild:
+ Stable on amd64 wrt bug #349266
+
+ 31 Dec 2010; Christian Faulhammer <fauli@gentoo.org>
+ postfixadmin-2.3.2.ebuild:
+ stable x86, bug 349266
+
+*postfixadmin-2.3.2 (15 Nov 2010)
+
+ 15 Nov 2010; Peter Volkov <pva@gentoo.org> +postfixadmin-2.3.2.ebuild,
+ metadata.xml:
+ Version bump, #336036, thank Andreis_Vinogradovs (slepnoga) for report.
+ Fixes dependencies for vacation, bug #332553 thank Kent Fredric for
+ report.
+
+ 24 May 2010; Torsten Veller <tove@gentoo.org> metadata.xml:
+ Remove wrobel from metadata.xml (#111816)
+
+ 22 Mar 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ postfixadmin-2.2.1.1.ebuild, postfixadmin-2.3.ebuild:
+ HOMEPAGE corrected, #310303
+
+*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,
+ postfixadmin-2.2.1.1.ebuild, -files/config-hook.sh,
+ -files/postinstall-en.txt, -files/postinstall-en-mysql.txt,
+ -files/postinstall-en-postgres.txt:
+ fix #278410; remove old ebuilds
+
+ 08 Jun 2009; Tobias Scherbaum <dertobi123@gentoo.org>
+ postfixadmin-2.1.0-r1.ebuild, postfixadmin-2.2.0.ebuild,
+ postfixadmin-2.2.1.1.ebuild:
+ Remove dep on mail-mta/postfix as it works with other mta too, #257624
+
+*postfixadmin-2.2.1.1 (10 Sep 2008)
+
+ 10 Sep 2008; wrobel@gentoo.org +postfixadmin-2.2.1.1.ebuild:
+ Added postfixadmin-2.2.1.1 (#233388).
+
+*postfixadmin-2.2.0 (01 Jun 2008)
+
+ 01 Jun 2008; wrobel@gentoo.org +files/postinstall-en-2.2.0.txt,
+ -postfixadmin-2.1.0.ebuild, postfixadmin-2.1.0-r1.ebuild,
+ +postfixadmin-2.2.0.ebuild:
+ Added postfixadmin-2.2.0 (#220141) and fixed #223387.
+
+ 22 Feb 2008; Benedikt Böhm <hollow@gentoo.org>
+ postfixadmin-2.1.0-r1.ebuild:
+ add need_httpd_cgi wrt #208584
+
+*postfixadmin-2.1.0-r1 (20 Feb 2008)
+
+ 20 Feb 2008; Benedikt Böhm <hollow@gentoo.org>
+ +files/postinstall-en-mysql.txt, +files/postinstall-en-postgres.txt,
+ metadata.xml, +postfixadmin-2.1.0-r1.ebuild:
+ merge from webapp overlay wrt #172138; cleanup wrt #208584
+
+ 05 Feb 2008; Jakub Moc <jakub@gentoo.org>
+ postfixadmin-2.1.0-r1.ebuild:
+ Add postgres support. Nuke nonsensical RDEPEND on grep, sed and findutils,
+ fix enewuser/enewgroup usage. Quoting, clean up tons of redundant comments.
+
+ 05 Feb 2008; Benedikt Böhm <hollow@gentoo.org> postfixadmin-2.1.0.ebuild:
+ fix depend.apache usage wrt #208584
+
+ 29 Jul 2007; Christian Heim <phreak@gentoo.org> postfixadmin-2.1.0.ebuild:
+ Fixing SRC_URI since the old one is redirecting to sourceforge. Fixing the
+ DEPEND/RDEPEND for the move of net-www/apache to www-servers/apache
+ (#78622).
+
+ 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org>
+ postfixadmin-2.1.0.ebuild:
+ (QA) RESTRICT clean up.
+
+ 12 May 2007; Luca Longinotti <chtekk@gentoo.org>
+ postfixadmin-2.1.0.ebuild:
+ Apache 1.X masking (fix ebuilds to not require apache-1*).
+
+ 04 Jan 2007; <wrobel@gentoo.org> postfixadmin-2.1.0.ebuild:
+ Fixed source URL and removed mysql dependency (bugs #157940 and #159781)
+
+ 23 Nov 2006; <blubb@gentoo.org> postfixadmin-2.1.0.ebuild:
+ added ~amd64
+
+ 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> postfixadmin-2.1.0.ebuild:
+ dev-db/mysql => virtual/mysql
+
+ 12 Feb 2006; <wrobel@gentoo.org> postfixadmin-2.1.0.ebuild:
+ Removed postgres support from postfixadmin. See #122148. Ebuild with
+ postgres support can be found in our overlay:
+ http://svn.gnqs.org/projects/gentoo-webapps-overlay/browser/experimental/www
+ -apps/postfixadmin
+
+*postfixadmin-2.1.0 (02 Feb 2006)
+
+ 02 Feb 2006; <wrobel@gentoo.org> +files/config-hook.sh,
+ +files/postinstall-en.txt, +metadata.xml, +postfixadmin-2.1.0.ebuild:
+ Fixed the use of enewuser. Moved ebuild to portage
+
+ 03 Jan 2006; <wrobel@gentoo.org> ChangeLog:
+ Repoman fixes.
+
+ 28 Dec 2005; Gunnar Wrobel <php@gunnarwrobel.de> ChangeLog:
+ Minor cleanup for postfixadmin. Seems to work with php5.
+
+ 14 Dec 2005; <php@gunnarwrobel.de> ChangeLog:
+ Initial ebuild import into the overlay. Original ebuild from SteveB
+ <tp22a@softhome.net>. See bug #50035
+
diff --git a/www-apps/postfixadmin/Manifest b/www-apps/postfixadmin/Manifest
new file mode 100644
index 0000000..c12c1c1
--- /dev/null
+++ b/www-apps/postfixadmin/Manifest
@@ -0,0 +1,6 @@
+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.3.4.tar.gz 1609383 RMD160 f74639e15400fe188e73efd3434f170b2f96db9d SHA1 727ef73a45312b865ab7d97a31634a6216d5aac6 SHA256 6ac663e2f4bd8bfbe7daaf759b18071d915efd242fe13964561da94f18c82ec6
+EBUILD postfixadmin-2.3.4.ebuild 2983 RMD160 0e69cffec4222ab17c687cdb32a8fe34418af651 SHA1 214a36a9d85ad07eb978000917a8de27ed5119dd SHA256 31152edfa3e07ade16c85266fba6226d6b13151098b56bf0f447b429a6b2fc84
+MISC ChangeLog 4667 RMD160 817e5e16d4a792957c64970d8d97676183230ae7 SHA1 77b4bafe9d2f403cd7ac18abfb37ca9f3d8122b9 SHA256 46682aaa4d931e75f698d17babcf107c3c5a83fd67ccc4d300fee2b1c1d97b9d
+MISC metadata.xml 463 RMD160 bf730bbfa751ced44bff11a28e4b7afe5cb5ae3a SHA1 c250c6882446678a084bac74822f17650c05d520 SHA256 3abeafbb5f4fa57ed9c5ee2a7262b7ff042ab46c1212258b744a942ccb67e999
diff --git a/www-apps/postfixadmin/files/postinstall-en-2.2.0.txt b/www-apps/postfixadmin/files/postinstall-en-2.2.0.txt
new file mode 100644
index 0000000..6b9773a
--- /dev/null
+++ b/www-apps/postfixadmin/files/postinstall-en-2.2.0.txt
@@ -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 1.5.x version 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.
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
index 0000000..ef6bcf9
--- /dev/null
+++ b/www-apps/postfixadmin/files/postinstall-en-2.3.txt
@@ -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.
diff --git a/www-apps/postfixadmin/metadata.xml b/www-apps/postfixadmin/metadata.xml
new file mode 100644
index 0000000..1d01289
--- /dev/null
+++ b/www-apps/postfixadmin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+ <maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+ </maintainer>
+ <use>
+ <flag name='tests'>Install model unit tests</flag>
+ <flag name='extras'>Install contributed scripts and plugins</flag>
+ <flag name='vacation'>Install vacation.pl script and dependencies</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-apps/postfixadmin/postfixadmin-2.3.4.ebuild b/www-apps/postfixadmin/postfixadmin-2.3.4.ebuild
new file mode 100644
index 0000000..ffd8c93
--- /dev/null
+++ b/www-apps/postfixadmin/postfixadmin-2.3.4.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/postfixadmin/postfixadmin-2.3.3.ebuild,v 1.1 2011/04/30 19:17:21 pva Exp $
+
+EAPI="2"
+
+inherit eutils webapp depend.php confutils
+
+DESCRIPTION="Web Based Management tool for Postfix style virtual domains and users."
+HOMEPAGE="http://postfixadmin.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${P}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="mysql postgres +vacation xmlrpc"
+
+DEPEND="vacation? ( dev-perl/DBI
+ virtual/perl-MIME-Base64
+ dev-perl/MIME-EncWords
+ dev-perl/Email-Valid
+ dev-perl/Mail-Sender
+ dev-perl/log-dispatch
+ dev-perl/Log-Log4perl
+ dev-perl/MIME-Charset
+ mysql? ( dev-perl/DBD-mysql )
+ postgres? ( dev-perl/DBD-Pg ) )
+ xmlrpc? ( dev-php/ZendFramework[-minimal] )
+ dev-lang/php[session,unicode,imap,postgres?,xmlrpc?]"
+
+RDEPEND="${DEPEND}"
+
+need_httpd_cgi
+need_php_httpd
+
+pkg_setup() {
+ webapp_pkg_setup
+
+ confutils_require_any mysql postgres
+
+ if use mysql && ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli; then
+ die "Re-install ${PHP_PKG} with either mysql or mysqli"
+ fi
+
+ if use vacation; then
+ enewgroup vacation
+ enewuser vacation -1 -1 -1 vacation
+ fi
+}
+
+src_install() {
+ webapp_src_preinst
+
+ if use vacation; then
+ insinto /var/spool/vacation
+ newins VIRTUAL_VACATION/vacation.pl vacation.pl-${SLOT}
+ fowners vacation:vacation /var/spool/vacation/vacation.pl-${SLOT}
+ fperms 770 /var/spool/vacation/vacation.pl-${SLOT}
+ dodoc VIRTUAL_VACATION/FILTER_README
+ newdoc VIRTUAL_VACATION/INSTALL.TXT VIRTUAL_VACATION_INSTALL.TXT
+ rm -r VIRTUAL_VACATION/{vacation.pl,INSTALL.TXT,tests,FILTER_README}
+ fi
+
+ insinto /usr/share/doc/${PF}/
+ doins -r ADDITIONS
+
+ local docs="DOCUMENTS/*.txt INSTALL.TXT CHANGELOG.TXT"
+ dodoc ${docs}
+
+ rm -rf ${docs} DOCUMENTS/ GPL-LICENSE.TXT LICENSE.TXT debian/ tests/ ADDITIONS/
+
+ 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
+}
+
+pkg_postinst() {
+ webapp_pkg_postinst
+ if use vacation; then
+ # portage does not update owners of directories (feature :)
+ chown vacation:vacation "${ROOT}"/var/spool/vacation/
+ einfo "/var/spool/vacation/vacation.pl symlink was updated to:"
+ einfo "/var/spool/vacation/vacation.pl-${SLOT}"
+ ln -sf "${ROOT}"/var/spool/vacation/vacation.pl{-${SLOT},}
+ fi
+}
+
+pkg_postrm() {
+ # Make sure we don't leave broken vacation.pl symlink
+ find -L "${ROOT}"/var/spool/vacation/ -type l -delete
+ if [[ ! -e "${ROOT}"/var/spool/vacation/vacation.pl ]] &&
+ path_exists "${ROOT}"/var/spool/vacation/vacation.pl-*; then
+ ln -s $(LC_ALL=C ls -1 /var/spool/vacation/vacation.pl-* | tail -n1) \
+ "${ROOT}"/var/spool/vacation/vacation.pl
+ ewarn "/var/spool/vacation/vacation.pl was updated to point on most"
+ ewarn "recent verion, but please, do your own checks"
+ fi
+}