# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.28 2006/11/26 21:25:28 vericgar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.29 2007/01/01 22:27:01 swegener Exp $
inherit multilib
## NEED_APACHE_DEPEND
##
## Dependency magic based on useflags to use the right DEPEND
-## If you change this, please check the DEPENDS in need_apache()
+## If you change this, please check the DEPENDS in need_apache()
####
NEED_APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
if [[ "${supports20}" == "yes" && "${supports22}" == "yes" ]]; then
supports2x=yes;
fi
-
+
debug-print "supports13: ${supports13}"
debug-print "supports20: ${supports20}"
debug-print "supports22: ${supports22}"
debug-print "supports2x: ${supports2x}"
-
+
if [ "${supports13}" != "yes" ]; then
if [ "${supports2x}" == "yes" ]; then
need_apache2
need_apache2_2
fi
elif [ "${supports13}" == "yes" ]; then
- if [[ "${supports2x}" == "yes" ||
+ if [[ "${supports2x}" == "yes" ||
"${supports20}" == "yes" ||
"${supports22}" == "yes" ]]; then
NEED_APACHE_DEPEND="apache2? ( ${APACHE2_2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
fi
fi
-
+
DEPEND="${DEPEND} ${NEED_APACHE_DEPEND}"
RDEPEND="${RDEPEND} ${NEED_APACHE_DEPEND}"
-
+
if useq apache2; then
uses_apache2
else
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.13 2006/12/16 14:30:33 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.14 2007/01/01 22:27:01 swegener Exp $
# Variables to specify in an ebuild which uses this eclass:
# GAME - (doom3, quake4 or ut2004, etc), unless ${PN} starts with e.g. "doom3-"
fi
cat <<-EOF > "${T}"/${GAME_EXE}-${MOD_DIR}-ded.conf.d
$(<${PORTDIR}/header.txt)
-
+
# Any extra options you want to pass to the dedicated server
# ${GAME_EXE}_${MOD_DIR}_OPTS="+set com_hunkmegs 64 +set com_zonemegs 32"
-
+
EOF
}
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.1 2006/12/13 02:25:02 leonardop Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.2 2007/01/01 22:27:01 swegener Exp $
#
# gnome2-utils.eclass
# Applies any schema files installed by the current ebuild to Gconf's database
-# using gconftool-2
+# using gconftool-2
gnome2_gconf_install() {
if [[ ! -x ${GCONFTOOL_BIN} ]]; then
return
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.78 2006/12/13 02:27:48 leonardop Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.79 2007/01/01 22:27:01 swegener Exp $
#
# gnome2.eclass
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
-
+
if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then
gnome2_scrollkeeper_update
fi
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.69 2006/11/25 10:16:04 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.70 2007/01/01 22:27:01 swegener Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
if [ -n "${KERNEL_ABI}" ]; then
# In future, an arch might want to define CC_$ABI
#kernel_cc="$(get_abi_CC)"
- #[ -z "${kernel_cc}" ] &&
+ #[ -z "${kernel_cc}" ] &&
kernel_cc="$(tc-getCC $(ABI=${KERNEL_ABI} get_abi_CHOST))"
else
kernel_cc=$(tc-getCC)
}
linux-mod_pkg_postrm() {
- debug-print-function ${FUNCNAME} $*
+ debug-print-function ${FUNCNAME} $*
remove_moduledb;
}
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.52 2006/12/29 20:49:14 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.53 2007/01/01 22:27:01 swegener Exp $
# Author: Francesco Riosa <vivo@gentoo.org>
# Maintainer: Luca Longinotti <chtekk@gentoo.org>
einfo " working copy: ${wc_path}"
cd "${wc_path}"
rsync -rlpgo --exclude="BK/" . "${S}" || die "BK: can't export to ${S}."
-
+
echo
popd
mysql_pkg_setup() {
enewgroup mysql 60 || die "problem adding 'mysql' group"
enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
-
+
# Check for USE flag problems in pkg_setup
if useq "static" && useq "ssl" ; then
eerror "MySQL does not support being built statically with SSL support enabled!"
if mysql_version_is_at_least "5.1.12" ; then
rebuilddirlist="."
- # TODO IMPO! Check this with a cmake expert
+ # TODO IMPO! Check this with a cmake expert
useq "innodb" \
&& cmake \
-DCMAKE_C_COMPILER=$(which $(tc-getCC)) \
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.14 2006/12/29 20:34:02 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.15 2007/01/01 22:27:01 swegener Exp $
# Author: Francesco Riosa <vivo@gentoo.org>
# Maintainer: Francesco Riosa <vivo@gentoo.org>
# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced
# crappy sorting file list per version
mysql_make_file_list() {
- local base="${1}-"
- local n=( )
- echo $( for i in $( ls -d ${1}-[[:digit:]]_[[:digit:]]{,[[:digit:]]}_[[:digit:]]{,[[:digit:]]} 2>/dev/null )
- do
- n=${i#${base}}
- n=( ${n//_/ } )
- # prepend the file name with its numeric version number to make
- # it sortable
- echo "$(( 100000 + ${n[0]} * 10000 + ${n[1]} * 100 + ${n[2]} ))$i"
+ local base="${1}-"
+ local n=( )
+ echo $( for i in $( ls -d ${1}-[[:digit:]]_[[:digit:]]{,[[:digit:]]}_[[:digit:]]{,[[:digit:]]} 2>/dev/null )
+ do
+ n=${i#${base}}
+ n=( ${n//_/ } )
+ # prepend the file name with its numeric version number to make
+ # it sortable
+ echo "$(( 100000 + ${n[0]} * 10000 + ${n[1]} * 100 + ${n[2]} ))$i"
# sort and cut the numeric version we added in the previous line
- done | sort | cut -c 7- )
+ done | sort | cut -c 7- )
}
# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.10 2006/11/10 15:56:59 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.11 2007/01/01 22:27:01 swegener Exp $
#
# Author: Diego Pettenò <flameeyes@gentoo.org>
#
# Linux has /proc/mounts which should always exist
if [[ $(uname -s) == "Linux" ]] ; then
while read node point fs opts foo ; do
- echo "${point} ${node} ${fs} ${opts}"
+ echo "${point} ${node} ${fs} ${opts}"
done < /proc/mounts
- return
+ return
fi
# OK, pray we have a -p option that outputs mounts in fstab format
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.68 2007/01/01 14:14:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.69 2007/01/01 22:27:01 swegener Exp $
# We install binutils into CTARGET-VERSION specific directories. This lets
# us easily merge multiple versions for multiple targets (if we wish) and
[[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}"
is_cross && myconf="${myconf} --with-sysroot=/usr/${CTARGET}"
# glibc-2.3.6 lacks support for this ...
-# --enable-secureplt
+# --enable-secureplt
myconf="--prefix=/usr \
--host=${CHOST} \
--target=${CTARGET} \
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.25 2006/12/29 00:54:57 radek Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.26 2007/01/01 22:27:01 swegener Exp $
# Author: Jason Shoemaker <kutsuya@gentoo.org>
# This eclass is designed to streamline the construction of
einfo "Attention: ${PF} was not installed in any instance! Use 'zprod-manager add'"
#disabled by radek@20061228 - contact me in case of any question!
- #${ROOT}/usr/sbin/zprod-manager add ${ZP_DIR}/${PF}
+ #${ROOT}/usr/sbin/zprod-manager add ${ZP_DIR}/${PF}
}
zproduct_pkg_prerm() {
# checks how many times product is installed and informs about it
- # it does not remove it (change in behaviour done by radek@20061228)
+ # it does not remove it (change in behaviour done by radek@20061228)
debug-print-function ${FUNCNAME} ${*}
ZINST_LST=$(ls /var/lib/zope/)
if [ "${ZINST_LST}" ] ; then
if [ $ARE_INSTALLED -gt 0 ]
then
ewarn "Detected at least $ARE_INSTALLED copies of product being unmerged."
- ewarn "Please manually remove it from instances using 'zprod-manager del'"
- ewarn "Product is removed from ${ZP_DIR} but not from instances!"
+ ewarn "Please manually remove it from instances using 'zprod-manager del'"
+ ewarn "Product is removed from ${ZP_DIR} but not from instances!"
fi
fi
}