/[gentoo-x86]/eclass/apache-module.eclass
Gentoo

Diff of /eclass/apache-module.eclass

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

Revision 1.25 Revision 1.26
1# Copyright 1999-2011 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/apache-module.eclass,v 1.25 2011/12/27 17:55:12 fauli Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/apache-module.eclass,v 1.26 2013/06/22 00:06:53 vapier Exp $
4 4
5# @ECLASS: apache-module.eclass 5# @ECLASS: apache-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# apache-devs@gentoo.org 7# apache-devs@gentoo.org
8# @BLURB: Provides a common set of functions for apache modules 8# @BLURB: Provides a common set of functions for apache modules
174# the list of files you want filed as documentation. 174# the list of files you want filed as documentation.
175apache-module_src_install() { 175apache-module_src_install() {
176 debug-print-function $FUNCNAME $* 176 debug-print-function $FUNCNAME $*
177 177
178 local CD_DIR=$(apache_cd_dir) 178 local CD_DIR=$(apache_cd_dir)
179 cd "${CD_DIR}" || die "cd ${CD_DIR} failed" 179 pushd "${CD_DIR}" >/dev/null || die "cd ${CD_DIR} failed"
180 180
181 local MOD_FILE=$(apache_mod_file) 181 local MOD_FILE=$(apache_mod_file)
182 182
183 exeinto "${APACHE_MODULESDIR}" 183 exeinto "${APACHE_MODULESDIR}"
184 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found" 184 doexe ${MOD_FILE} || die "internal ebuild error: '${MOD_FILE}' not found"
205 local HTML_DOCS=$(apache_doc_magic html) 205 local HTML_DOCS=$(apache_doc_magic html)
206 206
207 [[ -n "${OTHER_DOCS}" ]] && dodoc ${OTHER_DOCS} 207 [[ -n "${OTHER_DOCS}" ]] && dodoc ${OTHER_DOCS}
208 [[ -n "${HTML_DOCS}" ]] && dohtml ${HTML_DOCS} 208 [[ -n "${HTML_DOCS}" ]] && dohtml ${HTML_DOCS}
209 fi 209 fi
210
211 popd >/dev/null
210} 212}
211 213
212# @FUNCTION: apache-module_pkg_postinst 214# @FUNCTION: apache-module_pkg_postinst
213# @DESCRIPTION: 215# @DESCRIPTION:
214# This prints out information about the installed module and how to enable it. 216# This prints out information about the installed module and how to enable it.

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20