Installscript-different.conf
Aus VDR Wiki
(Unterschied zwischen Versionen)
K |
K (→different.conf) |
||
| (4 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 2: | Zeile 2: | ||
In der '''different.conf''', können Distributions-spezifische ''Geschichten'' abgelegt werden. | In der '''different.conf''', können Distributions-spezifische ''Geschichten'' abgelegt werden. | ||
| − | == | + | ==different.conf== |
{{Box Datei|../setup/config/different.conf| | {{Box Datei|../setup/config/different.conf| | ||
<pre> | <pre> | ||
| Zeile 11: | Zeile 11: | ||
# shell> ./setup.sh --ostype | # shell> ./setup.sh --ostype | ||
# | # | ||
| − | # CMDS (no | + | # CMDS (no empty line(s)) |
[suse-linux] | [suse-linux] | ||
| − | + | REPO[0]="ftp://ftp5.gwdg.de/pub/linux/misc/packman/suse/${real_os_version:-11.0} packman" | |
| − | REPO[0]="ftp://ftp5.gwdg.de/pub/linux/misc/packman/suse/${real_os_version:- | + | REPO[1]="http://download.videolan.org/pub/videolan/vlc/SuSE/${real_os_version:-11.0} videolan" |
| − | REPO[1]="http://download.videolan.org/pub/videolan/vlc/SuSE/${real_os_version:- | + | |
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 24: | Zeile 23: | ||
read yes | read yes | ||
case ${yes} in | case ${yes} in | ||
| − | + | n*|N*) : ;; | |
| + | *) zypper ar -t YUM ${REPO[${i}]} ;; | ||
esac | esac | ||
fi | fi | ||
done | done | ||
| + | if ! which auto{conf,make} m4 svn >/dev/null 2>&1; then | ||
| + | echo $"Install \"development environment (devel_basis)\"? (yes/no):" | ||
| + | read yes | ||
| + | case ${yes} in | ||
| + | n*|N*) : ;; | ||
| + | *) zypper in -t pattern devel_basis ;; | ||
| + | esac | ||
| + | fi | ||
| + | if ! which hg lynx svn git rdate >/dev/null 2>&1; then | ||
| + | echo $"Install \"mercurial, lynx, git, rdate\"? (yes/no):" | ||
| + | read yes | ||
| + | case ${yes} in | ||
| + | n*|N*) : ;; | ||
| + | *) zypper in mercurial lynx subversion git rdate ;; | ||
| + | esac | ||
| + | fi | ||
| + | sed -i "s:yast -i:zypper --no-refresh in:g" "${CMDP}"/*.{cmd,bak} "${CMDS}"/*.cmd | ||
fi | fi | ||
| − | |||
if [ -d /etc/ld.so.conf.d -a -e /etc/ld.so.conf ] ; then | 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 | if [ ! -e /etc/ld.so.conf.d/ld.so.conf ] ; then | ||
| Zeile 35: | Zeile 51: | ||
fi | fi | ||
fi | fi | ||
| − | |||
</pre> | </pre> | ||
}} | }} | ||
[[Kategorie:Installscript]] | [[Kategorie:Installscript]] | ||
Aktuelle Version vom 13. März 2009, 18:25 Uhr
[Bearbeiten] Beschreibung
In der different.conf, können Distributions-spezifische Geschichten abgelegt werden.
[Bearbeiten] different.conf
# Description: Different ...
#
# Format: ^[$os_type]
# ^^^^^^^^
# shell> ./setup.sh --ostype
#
# CMDS (no empty line(s))
[suse-linux]
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
n*|N*) : ;;
*) zypper ar -t YUM ${REPO[${i}]} ;;
esac
fi
done
if ! which auto{conf,make} m4 svn >/dev/null 2>&1; then
echo $"Install \"development environment (devel_basis)\"? (yes/no):"
read yes
case ${yes} in
n*|N*) : ;;
*) zypper in -t pattern devel_basis ;;
esac
fi
if ! which hg lynx svn git rdate >/dev/null 2>&1; then
echo $"Install \"mercurial, lynx, git, rdate\"? (yes/no):"
read yes
case ${yes} in
n*|N*) : ;;
*) zypper in mercurial lynx subversion git rdate ;;
esac
fi
sed -i "s:yast -i:zypper --no-refresh in:g" "${CMDP}"/*.{cmd,bak} "${CMDS}"/*.cmd
fi
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