Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 28232 Details for
Bug 46014
Drupal ebuilds, including module eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
drupal module eclass
drupal-module.eclass (text/plain), 2.39 KB, created by
Carl A. Dunham
on 2004-03-28 11:50:57 UTC
(
hide
)
Description:
drupal module eclass
Filename:
MIME Type:
Creator:
Carl A. Dunham
Created:
2004-03-28 11:50:57 UTC
Size:
2.39 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils >inherit webapp-apache > >ECLASS=drupal-module >INHERITED="$INHERITED $ECLASS" > >EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_config > >MY_MODNAME=${PN/drupal-/} > >HOMEPAGE="http://drupal.org/project/${MY_MODNAME}" >SRC_URI="http://drupal.org/drupal/${PV}/modules/${MY_MODNAME}-${PV}.tar.gz" >RESTRICT="nomirror" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~ppc ~hppa ~mips ~sparc ~x86 ~amd64" >RDEPEND="${RDEPEND} >=drupal-4.3" > >MY_APP_ROOT="/usr/share/webapps/drupal" >MY_APP_CONFDIR="/etc/webapps/${PN}" >MY_APP_MODDIR="${MY_APP_ROOT}/modules/${MY_MODNAME}" > >MY_DOCS="CHANGELOG CREDITS INSTALL LICENSE README TODO" >MY_HAVEPGSQL="0" >MY_HAVEPGSQL="0" > > >S=${WORKDIR}/${MY_MODNAME} > ># make sure the drupal dirs are all there >drupal-mkdirs() { > drupal-mkdir ${MY_APP_MODDIR} >} > ># assumes webapp-detect already called >drupal-mkdir() { > mkdir -p ${D}${1}/ > fowners "${HTTPD_USER}":"${HTTPD_GROUP}" "${1}" > fperms 755 "${1}" >} > >drupal-module_pkg_setup() { > webapp-detect || NO_WEBSERVER=1 > webapp-pkg_setup "${NO_WEBSERVER}" > einfo "Installing into ${ROOT}${MY_APP_ROOT}." >} > >drupal-module_src_install() { > webapp-detect || NO_WEBSERVER=1 > > drupal-mkdirs > > # Copy everything > cp -r . ${D}${MY_APP_MODDIR}/ > > # Remove documentation files > for doc in ${MY_DOCS}; do > rm -f ${D}${MY_APP_MODDIR}/${doc} > done > > dodoc ${MY_DOCS} >} > >drupal-module_pkg_postinst() { > if [ "${MY_HAVEMYSQL}" = "1" ] || [ "${MY_HAVEPGSQL}" = "1" ]; then > einfo > einfo "To complete installation, you must add database tables:" > einfo " ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" > einfo > einfo "or manually load" > if [ "${MY_HAVEMYSQL}" = "1" ]; then > einfo " ${MY_APP_MODDIR}/${MY_MODNAME}/${MY_MODNAME}.mysql" > fi > if [ "${MY_HAVEPGSQL}" = "1" ]; then > einfo " ${MY_APP_MODDIR}/${MY_MODNAME}/${MY_MODNAME}.pgsql" > fi > einfo > fi >} > >drupal-module_pkg_config() { > if [ "${MY_HAVEMYSQL}" = "1" ]; then > einfo "This will execute the contents of ${MY_MODDIR}/${MY_MODNAME}.mysql" > einfo "Type in your MySQL root password:" > mysql -u root -p drupal < ${MY_MODDIR}/${MY_MODNAME}.mysql || die > fi > if [ "${MY_HAVEPGSQL}" = "1" ]; then > einfo "Sorry, I don't know how to run ${MY_MODDIR}/${MY_MODNAME}.pgsql" > fi >}
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 46014
:
28230
|
28231
|
28232
|
28233
|
28234
|
28235
|
28236
|
28251
|
28608