<commit_before>#!/bin/bash
###########################################################################
# a2o Essential Puppet Modules                                            #
#-------------------------------------------------------------------------#
# Copyright (c) 2012 <NAME>                                       #
#-------------------------------------------------------------------------#
# This source file is subject to version 2.0 of the Apache License,       #
# that is bundled with this package in the file LICENSE, and is           #
# available through the world-wide-web at the following url:              #
# http://www.apache.org/licenses/LICENSE-2.0                              #
#-------------------------------------------------------------------------#
# Authors: <NAME> <my_name [at] a2o {dot} si>                     #
###########################################################################



# Compile directory
export SRCROOT="<%= compileDir %>" &&
mkdir -p $SRCROOT &&
cd $SRCROOT &&



### Set versions and directories
export PVERSION_GANGLIA="<%= packageVersion %>" &&
export PDESTDIR="<%= destDir %>" &&
export PDESTDIR_PYTHON="<%= externalPackageDestDir_python %>" &&


### ganglia - gmond
# CheckURI: http://sourceforge.net/project/showfiles.php?group_id=43021&package_id=35280
# Req: libconfuse
cd $SRCROOT && . ../build_functions.sh &&
export PNAME="ganglia" &&
export PVERSION="$PVERSION_GANGLIA" &&
export PDIR="$PNAME-$PVERSION" &&
export PFILE="$PDIR.tar.gz" &&
export PURI="http://mesh.dl.sourceforge.net/sourceforge/ganglia/$PFILE" &&

rm -rf $PDIR &&
GetUnpackCd &&

# Patch to disable collection of br* net interface metrics
wget http://source.a2o.si/patches/ganglia-3.1.7-ignore_br.diff &&
cat ganglia-3.1.7-ignore_br.diff | patch -p1 &&

# Patch to fix interface data collection on 32bit systems with if drivers that have 
# greater traffic counter than 32bit int
wget http://source.a2o.si/patches/ganglia-3.1.7-net_if_long_long.diff &&
cat ganglia-3.1.7-net_if_long_long.diff | patch -p1 &&

export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig' &&
# FIXME should this be removed for all distributions?<commit_msg>Ganglia install: changed download source<commit_after>#!/bin/bash
###########################################################################
# a2o Essential Puppet Modules                                            #
#-------------------------------------------------------------------------#
# Copyright (c) 2012 <NAME>                                       #
#-------------------------------------------------------------------------#
# This source file is subject to version 2.0 of the Apache License,       #
# that is bundled with this package in the file LICENSE, and is           #
# available through the world-wide-web at the following url:              #
# http://www.apache.org/licenses/LICENSE-2.0                              #
#-------------------------------------------------------------------------#
# Authors: <NAME> <my_name [at] a2o {dot} si>                     #
###########################################################################



# Compile directory
export SRCROOT="<%= compileDir %>" &&
mkdir -p $SRCROOT &&
cd $SRCROOT &&



### Set versions and directories
export PVERSION_GANGLIA="<%= packageVersion %>" &&
export PDESTDIR="<%= destDir %>" &&
export PDESTDIR_PYTHON="<%= externalPackageDestDir_python %>" &&


### ganglia - gmond
# CheckURI: http://sourceforge.net/project/showfiles.php?group_id=43021&package_id=35280
# Req: libconfuse
cd $SRCROOT && . ../build_functions.sh &&
export PNAME="ganglia" &&
export PVERSION="$PVERSION_GANGLIA" &&
export PDIR="$PNAME-$PVERSION" &&
export PFILE="$PDIR.tar.gz" &&
export PURI="http://switch.dl.sourceforge.net/sourceforge/ganglia/$PFILE" &&

rm -rf $PDIR &&
GetUnpackCd &&

# Patch to disable collection of br* net interface metrics
wget http://source.a2o.si/patches/ganglia-3.1.7-ignore_br.diff &&
cat ganglia-3.1.7-ignore_br.diff | patch -p1 &&

# Patch to fix interface data collection on 32bit systems with if drivers that have 
# greater traffic counter than 32bit int
wget http://source.a2o.si/patches/ganglia-3.1.7-net_if_long_long.diff &&
cat ganglia-3.1.7-net_if_long_long.diff | patch -p1 &&

export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig' &&
# FIXME should this be removed for all distributions?
{'fraction_non_alphanumeric': 0.2816157906816617, 'fraction_numerical': 0.018361257746155612, 'mean_word_length': 2.249813571961223, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4265313', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1183, 'n_words': 295}