/[gentoo-x86]/eclass/webapp.eclass
Gentoo

Diff of /eclass/webapp.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.68 Revision 1.72
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.68 2011/07/26 19:25:19 lxnay Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.72 2012/07/18 14:59:29 blueness Exp $
4 4
5# @ECLASS: webapp.eclass 5# @ECLASS: webapp.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# web-apps@gentoo.org 7# web-apps@gentoo.org
8# @BLURB: functions for installing applications to run under a web server 8# @BLURB: functions for installing applications to run under a web server
411 ewarn "compatible with webapp-config." 411 ewarn "compatible with webapp-config."
412 ewarn 412 ewarn
413 ewarn "This ebuild may be overwriting important files." 413 ewarn "This ebuild may be overwriting important files."
414 ewarn 414 ewarn
415 echo 415 echo
416 if has "${EAPI:-0}" 0 1 2; then
416 ebeep 10 417 ebeep 10
418 fi
417 elif [[ "$(echo ${my_output} | awk '{ print $1 }')" != "${PN}" ]]; then 419 elif [[ "$(echo ${my_output} | awk '{ print $1 }')" != "${PN}" ]]; then
418 echo 420 echo
419 eerror "You already have ${my_output} installed in ${my_dir}" 421 eerror "You already have ${my_output} installed in ${my_dir}"
420 eerror 422 eerror
421 eerror "I cannot upgrade a different application" 423 eerror "I cannot upgrade a different application"
504 my_cmd="${WEBAPP_CONFIG} ${my_mode} -h localhost -u root -d ${INSTALL_DIR} ${PN} ${PVR}" 506 my_cmd="${WEBAPP_CONFIG} ${my_mode} -h localhost -u root -d ${INSTALL_DIR} ${PN} ${PVR}"
505 elog "Running ${my_cmd}" 507 elog "Running ${my_cmd}"
506 ${my_cmd} 508 ${my_cmd}
507 509
508 echo 510 echo
509 local cleaner="${WEBAPP_CLEANER} -p -C ${PN}" 511 local cleaner="${WEBAPP_CLEANER} -p -C /${PN}"
510 einfo "Running ${cleaner}" 512 einfo "Running ${cleaner}"
511 ${cleaner} 513 ${cleaner}
512 else 514 else
513 elog 515 elog
514 elog "The 'vhosts' USE flag is switched ON" 516 elog "The 'vhosts' USE flag is switched ON"

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20