bonjour,
je recherche un script d'install des rpms de dev pour sme 7 rc3 qui ne soit pas basé sur centos 4.2...
Si vous avez un lien
anne
Modérateur: modos Ixus
#!/bin/bash
# Copied from http://contribs.org with modifications
# from hfwang, hanscees and hmuhammad.
# Use at your own risc!! I DO NOT accept any responsibility whatsoever.
# Please leave this header intact. The latest version can be found at:
# http://contribs.org/modules/phpwiki/index.php/devtools-7.0
devtools_basic="$( cat << END_OF_DEVTOOLS_basic
gcc4
gcc-c++
automake
autoconf
bind-utils
bind-libs
rpm-build
redhat-rpm-config
END_OF_DEVTOOLS_basic
)"
# This and the other 'deps' lists (below) do *not* request which RPMs
# are installed. They are provided simplied as a indication of
# which RPMs *might* be installed due to dependencies.
devtools_basic_deps="$( cat << END_OF_DEVTOOLS_basic_deps
cpp
gcc
glibc-devel
glibc-headers
glibc-kernheaders
libstdc++-devel
m4
patch
END_OF_DEVTOOLS_basic_deps
)"
devtools_advanced="$( cat << END_OF_DEVTOOLS_advanced
anaconda
anaconda-runtime
bison
cpp
e2fsprogs-devel
gcc
gcc-c++
glibc-devel
glibc-headers
glibc-kernheaders
kernel-smp-devel
krb5-devel
libacl-devel
libattr-devel
libstdc++-devel
libtermcap-devel
libtool
m4
mysqlclient10
mysql-devel
ncurses-devel
openssl-devel
pam-devel
patch
readline-devel
zlib-devel
END_OF_DEVTOOLS_advanced
)"
devtools_advanced_deps="$( cat << END_OF_DEVTOOLS_advanced_deps
anaconda-help
atk
bogl
booty
fontconfig
gtk2
pango
parted
pyparted
xorg-x11-Mesa-libGL
xorg-x11-libs
END_OF_DEVTOOLS_advanced_deps
)"
devtools_httpd="$( cat << END_OF_DEVTOOLS_httpd
httpd-devel
END_OF_DEVTOOLS_httpd
)"
devtools_httpd_deps="$( cat << END_OF_DEVTOOLS_httpd_deps
apr-devel
apr-util-devel
cyrus-sasl-devel
db4-devel
expat-devel
openldap-devel
pcre-devel
END_OF_DEVTOOLS_httpd_deps
)"
devtools_sendmail="$( cat << END_OF_DEVTOOLS_sendmail
sendmail-cf
END_OF_DEVTOOLS_sendmail
)"
devtools_sendmail_deps="$( cat << END_OF_DEVTOOLS_sendmail_deps
none
END_OF_DEVTOOLS_sendmail_deps
)"
devtools_kscode="$( cat << END_OF_DEVTOOLS_kscode
http://www.raimokoski.com/lineox/4.0/updates/i386/RPMS/kernel-sourcecode-2.6.9-34.EL.i686.rpm
END_OF_DEVTOOLS_kscode
)"
devtools_kscode_deps="$( cat << END_OF_DEVTOOLS_kscode_deps
atk-devel
fontconfig-devel
freetype-devel
glib2-devel
gtk2-devel
libjpeg-devel
libmng
libmng-devel
libpng-devel
pango-devel
pkgconfig
qt
qt-devel
xorg-x11-devel
END_OF_DEVTOOLS_kscode_deps
)"
function get_devtools ()
{
#Note: double bracketed ( [[ ]] ) regex operator ( =~ )
# is valid for bash > v3.0
# which is packaged with SME 7.0 (and not SME 6.0)
start="n"
while [[ ! "$start" =~ "[yY]" ]] ; do
echo ''
echo ''
echo '********************************************************************'
echo "* Do you want to install the set of RPMS for $this ? "
echo '********************************************************************'
echo ''
echo '********************************************************************'
echo '* Packages to be installed... *'
echo '********************************************************************'
echo ''
echo "$pkgs"
echo ''
echo '********************************************************************'
echo '* Dependencies to be installed (such as)... *'
echo '********************************************************************'
echo ''
echo "$deps"
echo ''
echo ''
read -p "Install the RPMs for $this (plus dependencies) ? (y/n) " start
if [[ $start =~ "[nN]" ]] ; then
clear
break 1
elif [[ ! $start =~ "[yY]" ]] ; then
clear
continue
fi
echo ''
echo ''
echo 'You will be asked later to confirm before actual installation begans.'
echo 'Please be patient, some files are big...'
echo ''
if [[ "$download" =~ "[yY]" ]] ; then
mkdir -p devtools-7.0-CentOS-4.2
for pkg in $pkgs ; do
wget -nc -nd -S -Pdevtools-7.0-CentOS-4.2 $pkg
done
fi
if [ "$yum_mode" == "install" ] ; then
yum --enablerepo=base --enablerepo=updates $yum_mode $pkgs
elif [ "$yum_mode" == "localinstall" ] ; then
pushd devtools-7.0-CentOS-4.2 >/dev/null
yum --enablerepo=base --enablerepo=updates $yum_mode *.rpm
popd >/dev/null
fi
# if [[ "$download" =~ "[yY]" ]] ; then
# rm -rf devtools-7.0-CentOS-4.2
# fi
echo ''
read -p 'Press any key to continue... ' ans
clear
echo ''
echo "Installation of $this completed. "
echo ''
done
return 0
}
start="n"
while [[ ! "$start" =~ "[yY]" ]] ; do
clear
echo '********************************************************************'
echo '* RECOMMENDED ONLY FOR DEVELOPMENT -- ***NOT PRODUCTION SERVERS*** *'
echo '********************************************************************'
echo ''
echo '********************************************************************'
echo '* This script will install the SME Server developers tools v7.0; *'
echo '* Note: installing additional software to your SME Server *'
echo '* may lead to potential security issues. Use at YOUR OWN RISK!!! *'
echo '********************************************************************'
echo ''
echo '********************************************************************'
echo '* Packages will be installed/updated from these repositories... *'
echo '* base updates *'
echo '* (see /etc/yum.conf & /home/e-smith/db/yum_repositories) *'
echo '********************************************************************'
echo ''
echo '********************************************************************'
echo '* RECOMMENDED ONLY FOR DEVELOPMENT -- ***NOT PRODUCTION SERVERS*** *'
echo '********************************************************************'
echo ''
echo ''
read -p 'Accept the above warning and install dev-tools? (y/n) ' start
if [[ $start =~ "[nN]" ]] ; then
exit 1
fi
clear
done
this="devtools_basic"
pkgs="$( echo $devtools_basic )"
deps="$( echo $devtools_basic_deps )"
download="no"
yum_mode="install"
get_devtools
this="devtools_advanced"
pkgs="$( echo $devtools_advanced )"
deps="$( echo $devtools_advanced_deps )"
download="no"
yum_mode="install"
get_devtools
this="devtools_httpd"
pkgs="$( echo $devtools_httpd )"
deps="$( echo $devtools_httpd_deps )"
download="no"
yum_mode="install"
get_devtools
this="devtools_sendmail"
pkgs="$( echo $devtools_sendmail )"
deps="$( echo $devtools_sendmail_deps )"
download="no"
yum_mode="install"
get_devtools
this="devtools_kernel-sourcecode"
pkgs="$( echo $devtools_kscode )"
deps="$( echo $devtools_kscode_deps )"
download="yes"
yum_mode="localinstall"
get_devtools
exit 0
Retour vers E-Smith / SME Server
Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité