Installscript-different.conf
Aus VDR Wiki
(Unterschied zwischen Versionen)
K (→make.conf) |
|||
Zeile 15: | Zeile 15: | ||
[suse-linux] | [suse-linux] | ||
# add new repository(s) ... | # add new repository(s) ... | ||
− | REPO[0]="ftp://ftp5.gwdg.de/pub/linux/misc/packman/suse/${real_os_version:- | + | REPO[0]="ftp://ftp5.gwdg.de/pub/linux/misc/packman/suse/${real_os_version:-11.0} packman" |
− | REPO[1]="http://download.videolan.org/pub/videolan/vlc/SuSE/${real_os_version:- | + | REPO[1]="http://download.videolan.org/pub/videolan/vlc/SuSE/${real_os_version:-11.0} videolan" |
if which zypper >/dev/null 2>&1; then | if which zypper >/dev/null 2>&1; then | ||
for i in ${!REPO[@]} ; do | for i in ${!REPO[@]} ; do | ||
Zeile 45: | Zeile 45: | ||
fi | fi | ||
# change 'yast -i' to 'zypper in' (a little bit faster as 'yast') ... | # change 'yast -i' to 'zypper in' (a little bit faster as 'yast') ... | ||
− | sed -i "s:yast -i:zypper in:g" "${CMDP}"/*.{cmd,bak} "${CMDS}"/*.cmd | + | sed -i "s:yast -i:zypper --no-refresh -n in:g" "${CMDP}"/*.{cmd,bak} "${CMDS}"/*.cmd |
fi | fi | ||
# fix ... | # fix ... |
Version vom 5. September 2008, 18:51 Uhr
Beschreibung
In der different.conf, können Distributions-spezifische Geschichten abgelegt werden.
different.conf
# Description: Different ... # # Format: ^[$os_type] # ^^^^^^^^ # shell> ./setup.sh --ostype # # CMDS (no empty line(s)) [suse-linux] # add new repository(s) ... REPO[0]="ftp://ftp5.gwdg.de/pub/linux/misc/packman/suse/${real_os_version:-11.0} packman" REPO[1]="http://download.videolan.org/pub/videolan/vlc/SuSE/${real_os_version:-11.0} videolan" if which zypper >/dev/null 2>&1; then for i in ${!REPO[@]} ; do eval rep=\${REPO[${i}]} if ! ( zypper -t lr | grep -i [[:space:]]${rep#* } ) >/dev/null 2>&1 ; then echo $"Add a new repository \"${rep#* }\"? (yes/no):" read yes case ${yes} in j*|J*|y*|Y*) zypper ar -t YUM ${REPO[${i}]} ;; esac fi done # add 'devel_basis' ... if ! which auto{conf,make} c++ >/dev/null 2>&1; then echo $"Install \"development environment (devel_basis)\"? (yes/no):" read yes case ${yes} in j*|J*|y*|Y*) zypper in -t pattern devel_basis ;; esac fi # add 'lynx, mercurial, subversion' ... if ! which hg lynx >/dev/null 2>&1; then echo $"Install \"mercurial, lynx, subversion\"? (yes/no):" read yes case ${yes} in j*|J*|y*|Y*) zypper in mercurial lynx subversion ;; esac fi # change 'yast -i' to 'zypper in' (a little bit faster as 'yast') ... sed -i "s:yast -i:zypper --no-refresh -n in:g" "${CMDP}"/*.{cmd,bak} "${CMDS}"/*.cmd fi # fix ... if [ -d /etc/ld.so.conf.d -a -e /etc/ld.so.conf ] ; then if [ ! -e /etc/ld.so.conf.d/ld.so.conf ] ; then ln -s /etc/ld.so.conf /etc/ld.so.conf.d fi fi