From cf6aa6d03894bec515f50d9b2803c8133ac9102b Mon Sep 17 00:00:00 2001 From: geos_one Date: Fri, 5 Feb 2010 18:36:32 +0000 Subject: [PATCH] add mailzu-ng based on rions overlay ebuild on mailzu git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1942 6952d904-891a-0410-993b-d76249ca496b --- www-apps/mailzu-ng/ChangeLog | 8 +++ www-apps/mailzu-ng/Manifest | 7 +++ www-apps/mailzu-ng/files/postinstall-en.txt | 24 ++++++++ www-apps/mailzu-ng/mailzu-ng-0.8_rc3.ebuild | 62 +++++++++++++++++++++ www-apps/mailzu-ng/metadata.xml | 34 +++++++++++ 5 files changed, 135 insertions(+) create mode 100644 www-apps/mailzu-ng/ChangeLog create mode 100644 www-apps/mailzu-ng/Manifest create mode 100644 www-apps/mailzu-ng/files/postinstall-en.txt create mode 100644 www-apps/mailzu-ng/mailzu-ng-0.8_rc3.ebuild create mode 100644 www-apps/mailzu-ng/metadata.xml diff --git a/www-apps/mailzu-ng/ChangeLog b/www-apps/mailzu-ng/ChangeLog new file mode 100644 index 0000000..4c14d5f --- /dev/null +++ b/www-apps/mailzu-ng/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for www-apps/mailzu-ng +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 09 Jan 2010; A. Vinogradov +mailzu-0.8_rc3.ebuild, + +metadata.xml: + initial commit + diff --git a/www-apps/mailzu-ng/Manifest b/www-apps/mailzu-ng/Manifest new file mode 100644 index 0000000..d60de26 --- /dev/null +++ b/www-apps/mailzu-ng/Manifest @@ -0,0 +1,7 @@ +AUX postinstall-en.txt 700 RMD160 2c5a5b0c952afcd69524ab0080d2cc0c0d60454f SHA1 5958d94ed653cc0509c785ab1b0b8901bc094f6c SHA256 98e263b06fa2c41866a29caec883c05ca08f935bc4dd354a91c1dc24cd1ed00e +DIST glpi-0.72.1.tar.gz 2771080 RMD160 341862cac1418086d9a6481ce1ec08a37246d518 SHA1 3d5c4b40cc0c1431b811043de0c54f091b75874a SHA256 68251c62b879258c9a6c483365af5179738a7010d604d4bfcc589906e589d984 +DIST glpi-0.72.3.tar.gz 2798927 RMD160 e8023aae9aa575de42b8be46f55b611f2d59b22f SHA1 fdcbceba5729d1ec668e3f72ca9f6b62d3fa7d7b SHA256 b34016d16b53f09123b96cf0f798373b342d6efc50720953ff79b7f07689ea01 +EBUILD glpi-0.72.1.ebuild 1056 RMD160 d074ae15394078fb70e7a5bd1bead8aad55ed7b4 SHA1 c70ecdf02ce34dc2054cb493c6430def80c2dbf5 SHA256 e33c4da46e92e0702d33afce28fd71a1b737f3976b9aa4c73e6f2c7b46dc5334 +EBUILD glpi-0.72.3.ebuild 1056 RMD160 d074ae15394078fb70e7a5bd1bead8aad55ed7b4 SHA1 c70ecdf02ce34dc2054cb493c6430def80c2dbf5 SHA256 e33c4da46e92e0702d33afce28fd71a1b737f3976b9aa4c73e6f2c7b46dc5334 +MISC ChangeLog 471 RMD160 f901070180e87f13ccbeee36d798ea712023a269 SHA1 d1cd0a5c4150edf5bb8e3e853531cbd874d66340 SHA256 4fb59e0cd0c131bdaa093cd9bb61ef066e38ba43d3838c5d5e517c9366c287fc +MISC metadata.xml 1238 RMD160 c82938e77f387291d6a1c3bf9b0d802f2878dd12 SHA1 b5738f14922c69e78cfb867acdc65eeea25977bf SHA256 2c13f98be5fa8bdaf21ac86bcd00bbeb8944df5615de0cfce35ae4c00ef4b4d5 diff --git a/www-apps/mailzu-ng/files/postinstall-en.txt b/www-apps/mailzu-ng/files/postinstall-en.txt new file mode 100644 index 0000000..34b4708 --- /dev/null +++ b/www-apps/mailzu-ng/files/postinstall-en.txt @@ -0,0 +1,24 @@ +You will need to provide a database for your ${PN} 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 + +Once you have a database ready all you need to do is to go to this +location + +http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/install.php + +and provide the credentials required for the database access. + +Note the credentials of the administration user you will generate +during the installation procedure. + +For your own security you will need to remove the installation tools +by running + +rm -rf ${MY_INSTALLDIR}/install* + +Enjoy ${PN}! diff --git a/www-apps/mailzu-ng/mailzu-ng-0.8_rc3.ebuild b/www-apps/mailzu-ng/mailzu-ng-0.8_rc3.ebuild new file mode 100644 index 0000000..14d8cc3 --- /dev/null +++ b/www-apps/mailzu-ng/mailzu-ng-0.8_rc3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +PHPCHECKNODIE="yes" +inherit webapp eutils depend.apache depend.php confutils + +DESCRIPTION="MailZu is a simple and intuitive web interface to manage Amavisd-new quarantine" +HOMEPAGE="http://trac.husku.net/mailzu-ng/" +SRC_URI="http://trac.husku.net/mailzu-ng/attachment/wiki/WikiStart/mailzu-ng-0.8_rc3.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64" +IUSE="ldap mysql postgres db_clean" + +DEPEND="mail-filter/amavisd-new[ldap?,mysql?,postgres?]" +RDEPEND="${DEPEND} + dev-php/PEAR-PEAR + dev-php/PEAR-DB + dev-php/PEAR-Mail_Mime + dev-php/PEAR-Net_Socket + db_clean? ( dev-perl/DBI ) + dev-lang/php[sockets,ldap?,mysql?,postgres?]" + +need_apache2_2 +need_php5_httpd + +pkg_setup() { + confutils_require_any mysql postgres ldap + + local flags="sockets" + + use postgres && flags+=" postgres" + use ldap && flags+=" ldap" + + require_php_with_any_use ${flags} || die "Re-install ${PHP_PKG} with ${flags}" + + if use mysql;then + ( ( require_php_with_use mysql ) || ( require_php_with_use mysqli ) ) || die \ + "Re-install ${PHP_PKG} with mysql or mysli USE" + fi + webapp_pkg_setup +} + +src_prepare() { + sed -i -e "1s/usr\/local\/bin\/perl/usr\/bin\/perl/" scripts/mz_db_clean.pl || die "sed failed" + cp config/config.php.sample config/config.php +} + +src_install() { + dodoc CHANGELOG README docs/* + rm "${S}"/{CHANGELOG,README,LICENSE} + rm -rf "${S}"/docs + + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r . + webapp_configfile "${MY_HTDOCSDIR}"/config/config.php + webapp_src_install +} diff --git a/www-apps/mailzu-ng/metadata.xml b/www-apps/mailzu-ng/metadata.xml new file mode 100644 index 0000000..46a44e5 --- /dev/null +++ b/www-apps/mailzu-ng/metadata.xml @@ -0,0 +1,34 @@ + + + + +no-herd + + @gentoo.org + + + + +