Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70826 Details for
Bug 109170
new ebuild: RoundCube ajax webmail client
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
roundcube_webmail-0.1.20051007.ebuild
roundcube_webmail-0.1.20051007.ebuild (text/plain), 3.62 KB, created by
Tomoyuki Sakurai (RETIRED)
on 2005-10-16 22:08:16 UTC
(
hide
)
Description:
roundcube_webmail-0.1.20051007.ebuild
Filename:
MIME Type:
Creator:
Tomoyuki Sakurai (RETIRED)
Created:
2005-10-16 22:08:16 UTC
Size:
3.62 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/www-apps/joomla/joomla-1.0.1.ebuild,v 1.2 2005/09/29 12:16:50 rl03 Exp $ > >inherit webapp eutils > ># BUG: ># naming rule is insane >MY_PV_DATE=${PV/#[[:digit:]].[[:digit:]]./} >MY_PV=${PV/%.${MY_PV_DATE}/-${MY_PV_DATE}} >MY_P="${PN}_${MY_PV}" >MY_PN=${PN/_web/} >DESCRIPTION="a browser-based multilingual IMAP client using AJAX" >HOMEPAGE="http://www.roundcube.net" >SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" > >LICENSE="GPL-2" >KEYWORDS="~x86" >S=${WORKDIR}/${MY_PN} > >IUSE="mysql postgresql" > >RDEPEND=" > mysql? (>=dev-db/mysql-4) > postgresql? (dev-db/postgresql) > !mysql? ( !postgresql? ( dev-db/postgresql ) ) > virtual/httpd-php >" ># BUG: ># I don't iknow Gentoo's default DB, dev-db/postgresql is just my liking ># *.inc should be *.inc.php >src_install () { > webapp_src_preinst > > cd ${S} > dodoc CHANGELOG README UPGRADING > cp -R . ${D}/${MY_HTDOCSDIR} > > local files="config logs program skins temp" > for file in ${files}; do > webapp_serverowned "${MY_HTDOCSDIR}/${file}" > done > webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt > webapp_sqlscript mysql SQL/mysql.initial.sql > webapp_sqlscript postgres SQL/postgres.initial.sql > webapp_configfile ${MY_HTDOCSDIR}/config/db.inc.php > webapp_configfile ${MY_HTDOCSDIR}/config/main.inc.php > webapp_src_install >} > >pkg_postinst () { > einfo "Now run ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" > einfo "to setup the database" > webapp_pkg_postinst >} > >pkg_config() { > # default values for db stuff > D_DB="roundcube" > D_HOST="localhost" > D_USER="roundcube" > > # do we want to start mysqld? > # BUG: > # NO, you shouldn't RESTART database > # you don't need root priv. to create a database > # if an admin is stupid enough to execute SQL without RDBMS running, > # s/he is just asking for troubles > # > # also, i'm not sure this pkg_config is useful > # if you cannot execute a simple SQL script, you shoudn't run RDBMS in the > # first place > # > # what if the remote database listens on a port other than its default? > # how about postgresql? what if the upstream supports addtional database? > # > # what if the upstream change required priv. on the database? > # /etc/init.d/mysql restart || die "mysql needs to be running" > > echo -n "mysql db name [${D_DB}]: "; read MY_DB > [[ -z ${MY_DB} ]] && MY_DB=${D_DB} > > echo -n "mysql db host [${D_HOST}]: "; read MY_HOST > [[ -z ${MY_HOST} ]] && MY_HOST=${D_HOST} > > echo -n "mysql dbuser name [${D_USER}]: "; read MY_USER > [[ -z ${MY_USER} ]] && MY_USER=${D_USER} > > echo -n "mysql dbuser password: "; read mypwd > [[ -z ${mypwd} ]] && die "Error: no dbuser password" > > # privileges > echo -n "Please enter login info for user who has grant privileges on ${MY_HOST} [$USER]: "; read adminuser > [[ -z ${adminuser} ]] && adminuser="$USER" > if [ "${MY_HOST}" != "localhost" ]; then > echo -n "Client address (at db side) [$(hostname -f)]: "; read clientaddr > [[ -z ${clientaddr} ]] && clientaddr="$(hostname -f)" > fi > # this will be default for localhost > [[ -z ${clientaddr} ]] && clientaddr="${MY_HOST}" > > # if $MY_HOST == localhost, don't specify -h argument, so local socket can be used. > host=${MY_HOST/localhost} > mysqladmin -u ${adminuser} ${host:+-h ${host}} -p create ${MY_DB} || die "Error creating database" > #FIXME: need to find out if all these are really required > mysql -u "${adminuser}" "${host:+-h ${host}}" -p \ > -e "GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES > ON ${MY_DB}.* TO '${MY_USER}'@'${clientaddr}' IDENTIFIED BY '${mypwd}'; FLUSH PRIVILEGES;" || die "Error initializing database. Please grant permissions manually." >}
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 109170
:
70646
|
70647
| 70826 |
70827
|
70833
|
70838
|
71594
|
72730
|
74867
|
74869
|
74875
|
74879
|
74880
|
74881
|
74882
|
90550
|
90551
|
120506
|
127845
|
132360
|
157759
|
166332
|
175526
|
179755