Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44154 Details for
Bug 50035
Request for postfixadmin ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
postfixadmin-2.0.5.ebuild
postfixadmin-2.0.5.ebuild (text/plain), 4.35 KB, created by
steveb
on 2004-11-17 06:53:42 UTC
(
hide
)
Description:
postfixadmin-2.0.5.ebuild
Filename:
MIME Type:
Creator:
steveb
Created:
2004-11-17 06:53:42 UTC
Size:
4.35 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># app-admin/postfixadmin/postfixadmin-1.5.4.ebuild, SteveB (tp22a@softhome.net) ># ># Revisions: ># 15.11.2003: app-admin/postfixadmin/postfixadmin-1.5.4.ebuild ># - initial ebuild ># 03.09.2004: app-admin/postfixadmin/postfixadmin-2.0.5.ebuild ># - switched to webapp > >inherit eutils webapp > >DESCRIPTION="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." >HOMEPAGE="http://high5.net/postfixadmin/" >SRC_URI="http://high5.net/${PN}/${PN}-${PV}.tgz" >RESTRICT="nomirror" >KEYWORDS="x86 sparc ppc alpha hppa" >DEPEND=">=mail-mta/postfix-2.0.0 > >=net-www/apache-1.3.27 > >=dev-php/php-4.1 <dev-php/php-5.0 > >=dev-db/mysql-3.23 <dev-db/mysql-4.1" > >RDEPEND=">=sys-apps/sed-4.0.5 > sys-apps/grep > sys-apps/findutils" > >LICENSE="MPL-1.1" > >src_unpack() { > unpack ${A} || die > cd ${S} > > # Remove .cvs* files and CVS directories > find ${S} -name .cvs\* -or \( -type d -name CVS -prune \) -exec rm -rf {} \; > > # MySQL stuff > cp ./DATABASE.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!" > > # Rename config.inc.php > cp ./config.inc.php.sample ${T}/config.inc.php || die "Creating config file failed!" > > # Fix .htaccess > if ! use vhosts > then > sed -i "s:^\(AuthUserFile \).*$:\1${VHOST_ROOT}/${MY_HTDOCSBASE}/${PN}/admin/.htpasswd:gI" ./admin/.htaccess > else > sed -i "s:^\(AuthUserFile \).*$:\1/var/www/localhost/htdocs/${PN}/admin/.htpasswd:gI" ./admin/.htaccess > fi >} > >src_compile() { :; } > >src_install() { > webapp_src_preinst > > local docs="BACKUP_MX.TXT CHANGELOG.TXT DATABASE.TXT INSTALL.TXT LICENSE.TXT TABLE_BACKUP_MX.TXT TABLE_CHANGES.TXT UPGRADE.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 > # > 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 > > # handle documentation files > # > # NOTE that doc files go into /usr/share/doc as normal; they do NOT > # get installed per vhost! > # > dodoc ${docs} > for doc in ${docs} INSTALL.TXT ${T}/mysql-setup.sql > do > rm -f ${doc} > done > > # Copy the app's main files > # > einfo "Installing main files" > mkdir -p ${D}${MY_HTDOCSDIR} > cp -r . ${D}${MY_HTDOCSDIR} > cp ${T}/config.inc.php ${D}${MY_HTDOCSDIR} > > # Identify the configuration files that this app uses > # > webapp_configfile ${MY_HTDOCSDIR}/config.inc.php > > # Identify any script files that need #! headers adding to run under > # a CGI script (such as PHP/CGI) > # > # For postfixadmin, we *assume* that all .php files that don't end in > # .inc.php need to have CGI/BIN support added > # > for foo in $(find . -iregex '.*\.php' -not -iregex '\./lib/.*' -not -iregex '.*\.inc\.php' -not -iregex '\./scripts/.*' -not -iregex '\./doc/.*' -print) ; do > webapp_runbycgibin php ${MY_HTDOCSDIR}/${foo} > done > > # Files need to be owned by the web server > # > find . -type d -exec chmod 755 {} \; > for foo in $(find . -maxdepth 1 -type f -iregex '.*\.php$\|.*\.css$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > for foo in $(find ./admin -maxdepth 1 -type f -iregex '.*\.php$\|.*\.ht[ml]*$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > for foo in $(find ./images -maxdepth 1 -type f -iregex '.*\.gif$\|.*\.pnp$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > for foo in $(find ./languages -maxdepth 1 -type f -iregex '.*\.lnag$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > for foo in $(find ./templates -maxdepth 1 -type f -iregex '.*\.tpl$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > for foo in $(find ./users -maxdepth 1 -type f -iregex '.*\.php$' -print) ; do > fperms 640 ${MY_HTDOCSDIR}/${foo} > webapp_serverowned ${MY_HTDOCSDIR}/${foo} > done > > # Add the post-installation instructions > # > webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt > > # All done > # > # 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 50035
:
34849
|
44154
|
44416
|
50195
|
50196
|
64500