Blame tcar-scripts-prepare/Modules/Packages/packages.sh

Alain Reguera Delgado c554f1
#!/bin/bash
Alain Reguera Delgado c554f1
######################################################################
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
#   packages.sh -- This function defines and verifies packages
Alain Reguera Delgado c554f1
#   required by centos-art.sh script.
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
#   Written by:
Alain Reguera Delgado c554f1
#   * Alain Reguera Delgado <al@centos.org.cu>, 2009-2013
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
# Copyright (C) 2009-2013 The CentOS Artwork SIG
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
# This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado c554f1
# it under the terms of the GNU General Public License as published by
Alain Reguera Delgado c554f1
# the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado c554f1
# your option) any later version.
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
# This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado c554f1
# WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado c554f1
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado c554f1
# General Public License for more details.
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
# You should have received a copy of the GNU General Public License
Alain Reguera Delgado c554f1
# along with this program; if not, write to the Free Software
Alain Reguera Delgado c554f1
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado c554f1
#
Alain Reguera Delgado c554f1
######################################################################
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
function packages {
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
    # Define required packages used by centos-art.sh script inside
Alain Reguera Delgado c554f1
    # CentOS base repository.
Alain Reguera Delgado c554f1
    local BASE_PACKAGES="ImageMagick netpbm netpbm-progs syslinux-perl
Alain Reguera Delgado c554f1
        gimp coreutils texinfo texinfo-tex info tetex-latex
Alain Reguera Delgado c554f1
        tetex-fonts tetex-xdvi tetex-dvips gettext texi2html libxml2
Alain Reguera Delgado c554f1
        gnome-doc-utils elinks docbook-style-xsl docbook-utils
Alain Reguera Delgado c554f1
        docbook-dtds docbook-style-dsssl docbook-simple
Alain Reguera Delgado c554f1
        docbook-utils-pdf docbook-slides firefox sudo yum rpm ctags
Alain Reguera Delgado c554f1
        vim-enhanced"
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
    # Define required packages used by centos-art.sh script inside
Alain Reguera Delgado c554f1
    # EPEL repository. Start verifying the package that contains
Alain Reguera Delgado c554f1
    # repository configuration, then everything else.
Alain Reguera Delgado c554f1
    local EPEL_PACKAGES="epel-release inkscape asciidoc"
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
    # Verify required packages. The order in which packages are
Alain Reguera Delgado c554f1
    # verified my help to reduce some loops (e.g., verify packages
Alain Reguera Delgado c554f1
    # containing the repository's configuration files first and
Alain Reguera Delgado c554f1
    # packages from that repository later. It is rather possible that
Alain Reguera Delgado c554f1
    # you won't be able to install any package from a repository you
Alain Reguera Delgado c554f1
    # don't have configuration files for, in first place).
Alain Reguera Delgado c554f1
    tcar_checkFiles -n ${BASE_PACKAGES} ${EPEL_PACKAGES}
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
    # Print a confirmation message here.
Alain Reguera Delgado c554f1
    tcar_printMessage "`gettext "All required packages are installed already."`" --as-stdout-line
Alain Reguera Delgado c554f1
Alain Reguera Delgado c554f1
}