Subversion Repositories ALCASAR

Rev

Rev 799 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 799 Rev 806
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-urpmi.sh 799 2012-02-01 21:16:37Z richard $
2
# $Id: alcasar-urpmi.sh 806 2012-02-05 22:19:41Z richard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 9... Line 9...
9
# configure the RPM repository
9
# configure the RPM repository
10
 
10
 
11
VERSION="2010.2"
11
VERSION="2010.2"
12
ARCH="i586" 
12
ARCH="i586" 
13
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
13
# ****** Alcasar needed RPMS - paquetages nécessaires au fonctionnement d'Alcasar ******
14
PACKAGES="freeradius freeradius-mysql freeradius-ldap freeradius-web apache-mpm-prefork apache-mod_ssl apache-mod_php squid dansguardian postfix MySQL logwatch ntp awstats mondo cdrecord buffer vim-enhanced bind-utils wget arpscan ulogd openssh-server php-xml php-ldap pam_ccreds rng-utils lsb-release dnsmasq sudo cronie-anacron pciutils clamav pm-fallback-policy "
14
PACKAGES="freeradius freeradius-mysql freeradius-ldap freeradius-web apache-mpm-prefork apache-mod_ssl apache-mod_php squid dansguardian postfix MySQL logwatch ntp awstats cdrecord buffer vim-enhanced bind-utils wget arpscan ulogd openssh-server php-xml php-ldap pam_ccreds rng-utils lsb-release dnsmasq sudo syslinux cronie-anacron pciutils clamav pm-fallback-policy "
15
 
15
 
16
rpm_repository_sync ()
16
rpm_repository_sync ()
17
{
17
{
18
echo ${!MIRRORLIST}
18
echo ${!MIRRORLIST}
19
urpmi.removemedia -a
19
urpmi.removemedia -a
Line 59... Line 59...
59
# We prefer wget than curl
59
# We prefer wget than curl
60
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
60
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
61
# Set the RPM repository
61
# Set the RPM repository
62
MIRROR_NBR=2
62
MIRROR_NBR=2
63
#                       For french ALCASARistes
63
#                       For french ALCASARistes
64
MIRRORLIST2="http://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/$VERSION/$ARCH"
64
MIRRORLIST1="http://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/$VERSION/$ARCH"
65
#                       For International install
65
#                       For International install
66
MIRRORLIST1="http://api.mandriva.com/mirrors/basic.$VERSION.$ARCH.list"
66
MIRRORLIST2="http://api.mandriva.com/mirrors/basic.$VERSION.$ARCH.list"
67
try_nb="0"; nb_repository="0"
67
try_nb="0"; nb_repository="0"
68
while [ "$nb_repository" != "4" ]
68
while [ "$nb_repository" != "4" ]
69
do
69
do
70
	try_nb=`expr $try_nb + 1`
70
	try_nb=`expr $try_nb + 1`
71
	MIRRORLIST="MIRRORLIST$try_nb"
71
	MIRRORLIST="MIRRORLIST$try_nb"
Line 94... Line 94...
94
		fi
94
		fi
95
	fi
95
	fi
96
done
96
done
97
# delete unused RPMs
97
# delete unused RPMs
98
echo "Cleaning the system : "
98
echo "Cleaning the system : "
99
for rm_rpm in shorewall dhcp-server cyrus-sasl distcache-server avahi mandi radeontool
99
for rm_rpm in shorewall dhcp-server cyrus-sasl distcache-server avahi mandi radeontool mondo mindi
100
do
100
do
101
	/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
101
	/usr/sbin/urpme --auto $rm_rpm --auto-orphans 2>/dev/null
102
	echo -n "."
102
	echo -n "."
103
done
103
done
104
echo
104
echo