Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121614 Details for
Bug 172138
www-apps/postfixadmin failed to download + multiple fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
postfixadmin-2.1.0-r2.ebuild (mysql/postgres support)
postfixadmin-2.1.0-r2.ebuild (text/plain), 3.34 KB, created by
Carmine Paolino
on 2007-06-09 19:04:25 UTC
(
hide
)
Description:
postfixadmin-2.1.0-r2.ebuild (mysql/postgres support)
Filename:
MIME Type:
Creator:
Carmine Paolino
Created:
2007-06-09 19:04:25 UTC
Size:
3.34 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils webapp depend.php > >DESCRIPTION="Web Based Management tool for Postfix when you are dealing with Postfix Style Virtual Domains and Virtual Users that are stored in MySQL." >HOMEPAGE="http://high5.net/postfixadmin/" >SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" > >LICENSE="MPL-1.1" >KEYWORDS="~amd64 ~x86" >IUSE="mysql postgres" > >DEPEND=">=mail-mta/postfix-2.0.0 > >=dev-lang/perl-5.0 > dev-perl/DBI > mysql? ( dev-perl/DBD-mysql ) > postgres? ( dev-perl/DBD-Pg )" >RDEPEND="${DEPEND}" > >need_php_httpd > > >pkg_setup() { > webapp_pkg_setup > if use mysql; then > enewgroup vacation > enewuser vacation -1 -1 -1 vacation > fi >} > >src_unpack() { > unpack ${A} || die > cd "${S}" > > # Remove .cvs* files and CVS directories > find "${S}" -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf > > # Database support (we don't care wich one is used. Allow both of them!) > if use mysql; then > cp ./DATABASE_MYSQL.TXT ${T}/mysql-setup.sql || die "Creating MySQL setup script failed!" > cp ./TABLE_CHANGES.TXT ${T}/mysql-update.sql || die "Creating MySQL update script failed!" > cp ./VIRTUAL_VACATION/INSTALL.TXT ${T}/VIRTUAL_VACATION_INSTALL.TXT > fi > if use postgres; then > cp ./DATABASE_PGSQL.TXT ${T}/postgres-setup.sql || die "Creating PostgreSQL setup script failed!" > fi > # Rename config.inc.php > cp ./config.inc.php.sample ${T}/config.inc.php || die "Creating config file failed!" > >} > >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 > fi > > # Documentation > local docs="BACKUP_MX.TXT CHANGELOG.TXT INSTALL.TXT LANGUAGE.TXT LICENSE.TXT TABLE_BACKUP_MX.TXT TABLE_CHANGES.TXT UPGRADE.TXT" > docs="${docs} DATABASE_MYSQL.TXT DATABASE_PGSQL.TXT ${T}/VIRTUAL_VACATION_INSTALL.TXT" > > # install the SQL scripts available to us > # unfortunately, we do not have scripts to upgrade from older versions > # these are things we need to add at a later date > if use mysql; then > webapp_sqlscript mysql ${T}/mysql-setup.sql > webapp_sqlscript mysql ${T}/mysql-update.sql 2.0.x > webapp_sqlscript mysql ${T}/mysql-update.sql 1.5x > fi > if use postgres; then > webapp_sqlscript postgresql ${T}/postgres-setup.sql > fi > > > # Copy the app's main files > einfo "Installing main files" > mkdir -p "${D}"${MY_HTDOCSDIR} > cp -r . "${D}"${MY_HTDOCSDIR} || die "cp failed" > cp ${T}/config.inc.php "${D}"${MY_HTDOCSDIR} || die "cp failed" > > # handle documentation files > dodoc ${docs} > for foo in ${docs} DATABASE_MYSQL.TXT DATABASE_PGSQL.TXT ADDITIONS VIRTUAL_VACATION > do > rm -rf "${D}"${MY_HTDOCSDIR}/${foo} > done > > # Identify the configuration files that this app uses > webapp_configfile ${MY_HTDOCSDIR}/config.inc.php > webapp_configfile ${MY_HTDOCSDIR}/admin/.htpasswd > > # Add the hook file to fix the .htaccess file > webapp_hook_script "${FILESDIR}"/config-hook.sh > > # Add the post-installation instructions > if use mysql; then > webapp_postinst_txt en "${FILESDIR}"/postinstall-en-mysql.txt > fi > if use postgres; then > webapp_postinst_txt en "${FILESDIR}"/postinstall-en-postgres.txt > fi > > # Now we let the eclass strut its stuff ;-) > webapp_src_install >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 172138
:
114326
|
114327
|
114454
|
114455
|
121583
|
121584
|
121586
| 121614