diff options
author | root | 2006-06-15 20:53:23 -0500 |
---|---|---|
committer | root | 2006-06-15 20:53:23 -0500 |
commit | ed2b650e497d8d34bfe9821f184930c4f9a6a857 (patch) | |
tree | 6604ec86c81f24076e778f05e7864be04b827dc5 /FUNCTIONS | |
parent | 0f0558d1740d16ea40601304543b658a2705a9b3 (diff) |
FUNCTIONS: 2006/06/15 sync from p4
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 48 |
1 files changed, 44 insertions, 4 deletions
@@ -185,6 +185,18 @@ function config_query_long_string() { return 0 } + +#--------------------------------------------------------------------- +# +## Returns the location that the www files are installed to +## An attempt to get install_www_files configurable +#--------------------------------------------------------------------- +function get_install_www_files_dir () +{ + echo "/usr/share/www/" +} + + #--------------------------------------------------------------------- ## @param Directory with files we might want to install ## @param Destination directory (optional) @@ -202,7 +214,7 @@ function install_www_files () # local WWW_DEST="$INSTALL_ROOT/${2/\$INSTALL_ROOT/}" else - local WWW_DEST="$INSTALL_ROOT/usr/share/www/$SPELL" + local WWW_DEST="$INSTALL_ROOT$(get_install_www_files_dir)$SPELL" fi && # @@ -229,7 +241,7 @@ function install_www_files () # find $1 -type -f | while read file; do for www_file in `find $1 -type f`; do if install_config_file "$www_file" "$WWW_DEST/$www_file"; then - chmod 0644 "$WWW_DEST/$www_file" && + chmod u+r,g+r,o-wx "$WWW_DEST/$www_file" && chown www-data:www-data "$WWW_DEST/$www_file" fi done @@ -239,7 +251,7 @@ function install_www_files () # message "${MESSAGE_COLOR}Your web files have been moved out of the" \ "APACHE specific locations (apache2/htdocs, httpd/htdocs, etc.)" \ - "and into a shared, non-DocumentRoot $INSTALL_ROOT/usr/share/www" \ + "and into a shared, non-DocumentRoot $INSTALL_ROOT$(get_install_www_files_dir)" \ "directory. You can modify your web server to point there for" \ "these files now.${DEFAULT_COLOR}" } @@ -409,7 +421,7 @@ function default_install_python() { #--- disable_pic() { -if [[ "$SMGL_COMPAT_ARCHS[1]" != "x86_64" ]] || +if [[ "${SMGL_COMPAT_ARCHS[1]}" != "x86_64" ]] || [[ "$1" == "force" ]] then CFLAGS=${CFLAGS/-fPIC} && @@ -418,3 +430,31 @@ CXXFLAGS=${CXXFLAGS/-fPIC} && CXXFLAGS=${CXXFLAGS/-DPIC} fi } + +# +## Function to check if we're using xorg-modular libs or not +# + +function check_if_xorg_modular_libs() +{ + if [[ "$(get_spell_provider ${1:-$SPELL} X11-LIBS)" == "xorg-server" ]] || + [[ "$(get_spell_provider ${1:-$SPELL} X11-LIBS)" == "xorg-libs" ]] + then + return 0 + fi + return 1 +} + +# +## Function to check if we're using xorg-modular server or not +# + +function check_if_xorg_modular_server() +{ + if [[ "$(get_spell_provider ${1:-$SPELL} X11-SERVER)" == "xorg-server" ]] + then + return 0 + fi + return 1 +} + |