Commit 4aed9f19 authored by Vitaly Lipatov's avatar Vitaly Lipatov

move src.rpm repos arrays to repos file

parent 4f136191
...@@ -59,6 +59,7 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher ...@@ -59,6 +59,7 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher
%config(noreplace) %_sysconfdir/eterbuild/apt/apt.conf.* %config(noreplace) %_sysconfdir/eterbuild/apt/apt.conf.*
%config(noreplace) %_sysconfdir/eterbuild/apt/sources.list.* %config(noreplace) %_sysconfdir/eterbuild/apt/sources.list.*
%config(noreplace) %_sysconfdir/eterbuild/config %config(noreplace) %_sysconfdir/eterbuild/config
%config(noreplace) %_sysconfdir/eterbuild/repos
%changelog %changelog
* Sun Jul 20 2008 Vitaly Lipatov <lav@altlinux.ru> 1.5.0-alt1 * Sun Jul 20 2008 Vitaly Lipatov <lav@altlinux.ru> 1.5.0-alt1
......
...@@ -15,6 +15,7 @@ install: ...@@ -15,6 +15,7 @@ install:
install -m 755 bin/* $(bindir) install -m 755 bin/* $(bindir)
install -m 644 etc/apt/* $(sysconfdir)/eterbuild/apt/ install -m 644 etc/apt/* $(sysconfdir)/eterbuild/apt/
install -m 644 etc/config $(sysconfdir)/eterbuild/ install -m 644 etc/config $(sysconfdir)/eterbuild/
install -m 644 etc/repos $(sysconfdir)/eterbuild/
#install -m 644 apt/apt.conf.* apt/sources.list.* %buildroot/%_sysconfdir/apt/ #install -m 644 apt/apt.conf.* apt/sources.list.* %buildroot/%_sysconfdir/apt/
install -m 644 share/pkgrepl/pkgrepl.* $(datadir)/eterbuild/pkgrepl/ install -m 644 share/pkgrepl/pkgrepl.* $(datadir)/eterbuild/pkgrepl/
install -m 644 share/grprepl/grprepl.* $(datadir)/eterbuild/grprepl/ install -m 644 share/grprepl/grprepl.* $(datadir)/eterbuild/grprepl/
......
...@@ -14,32 +14,18 @@ ...@@ -14,32 +14,18 @@
# path to ALT Linux's repositories # path to ALT Linux's repositories
REPOSITORY="files/SRPMS obsolete orphaned" REPOSITORY="files/SRPMS obsolete orphaned"
# loads repos file and fill SYSNAME and SYSURL arrays
# Name of systems load_systems_list()
SYSNAME[0]="alt" {
SYSNAME[1]="fedora" local IDX=0
SYSNAME[2]="fedora-ccrma" local line
SYSNAME[3]="mandriva" while read line ; do
SYSNAME[4]="mandriva-contrib" SYSNAME[$IDX]=${line/ *.*/}
SYSNAME[5]="suse" #FTP[$IDX]=${line/.* \+/}
SYSNAME[6]="suse-edu1" SYSURL[$IDX]=$(echo $line | sed -e "s|.* \+||g")
SYSNAME[7]="suse-edu2" IDX=$(($IDX+1))
SYSNAME[8]="alt-obsolete" done < $ETERBUILDDIR/repos
SYSNAME[9]="alt-orphaned" }
SYSNAME[10]="pld"
# Urls
SYSURL[0]="ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS"
SYSURL[1]="ftp://mirror.yandex.ru/fedora/linux/releases/9/Everything/source/SRPMS"
SYSURL[2]="http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/9/SRPMS"
SYSURL[3]="ftp://mirror.yandex.ru/mandriva/official/2008.1/SRPMS/main/release"
SYSURL[4]="ftp://mirror.yandex.ru/mandriva/official/2008.1/SRPMS/contrib/release"
SYSURL[5]="ftp://mirror.yandex.ru/opensuse/distribution/11.0/repo/src-oss/suse/src"
SYSURL[6]="http://opensuse.unixheads.net/repositories/Education:/desktop/openSUSE_10.3/src"
SYSURL[7]="http://www.opensuse-education.org/download/repos/1.0/11.0/suse/src"
SYSURL[8]="ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/obsolete"
SYSURL[9]="ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/orphaned"
SYSURL[10]="ftp://ftp.pld-linux.org/branches/titanium/PLD/SRPMS/RPMS"
list_systems() list_systems()
{ {
...@@ -153,12 +139,14 @@ fi ...@@ -153,12 +139,14 @@ fi
# list systems # list systems
if [ "$1" = "-s" ] ; then if [ "$1" = "-s" ] ; then
load_systems_list
list_systems list_systems
exit 0 exit 0
fi fi
# update cache list # update cache list
if [ "$1" = "-r" ] ; then if [ "$1" = "-r" ] ; then
load_systems_list
FORCEUPDATE=force FORCEUPDATE=force
shift shift
# if followed by system name # if followed by system name
...@@ -182,6 +170,7 @@ test -z "$1" && fatal "Please run with spec/package name" ...@@ -182,6 +170,7 @@ test -z "$1" && fatal "Please run with spec/package name"
# two params: system, package # two params: system, package
if [ -n "$2" ] ; then if [ -n "$2" ] ; then
NAME=$2 NAME=$2
load_systems_list
IDX=`get_system_idx "$1"` IDX=`get_system_idx "$1"`
if [ -n "$IDX" ] ; then if [ -n "$IDX" ] ; then
check_system $IDX check_system $IDX
...@@ -195,6 +184,7 @@ fi ...@@ -195,6 +184,7 @@ fi
# Check all systems # Check all systems
if [ -n "$ALLSYSTEM" ] ; then if [ -n "$ALLSYSTEM" ] ; then
load_systems_list
# search throw all systems # search throw all systems
for ((i=0; i < ${#SYSNAME[*]}; i++)) ; do for ((i=0; i < ${#SYSNAME[*]}; i++)) ; do
echo echo
......
# all known src.rpm repositories (for rpmgp command)
alt ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS
fedora ftp://mirror.yandex.ru/fedora/linux/releases/9/Everything/source/SRPMS
fedora-ccrma http://ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetccrma/9/SRPMS
mandriva ftp://mirror.yandex.ru/mandriva/official/2008.1/SRPMS/main/release
mandriva-contrib ftp://mirror.yandex.ru/mandriva/official/2008.1/SRPMS/contrib/release
suse ftp://mirror.yandex.ru/opensuse/distribution/11.0/repo/src-oss/suse/src
suse-edu1 http://opensuse.unixheads.net/repositories/Education:/desktop/openSUSE_10.3/src
suse-edu2 http://www.opensuse-education.org/download/repos/1.0/11.0/suse/src
alt-obsolete ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/obsolete
alt-orphaned ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/orphaned
pld ftp://ftp.pld-linux.org/branches/titanium/PLD/SRPMS/RPMS
...@@ -20,6 +20,7 @@ TEXTDOMAIN=etersoft-build-utils ...@@ -20,6 +20,7 @@ TEXTDOMAIN=etersoft-build-utils
export TEXTDOMAIN export TEXTDOMAIN
TEXTDOMAINDIR='/usr/share/locale' TEXTDOMAINDIR='/usr/share/locale'
export TEXTDOMAINDIR export TEXTDOMAINDIR
ETERBUILDDIR=/usr/share/eterbuild
echog() echog()
{ {
...@@ -153,7 +154,7 @@ RSYNCINCOMING=devel:/incoming ...@@ -153,7 +154,7 @@ RSYNCINCOMING=devel:/incoming
BUILDSERVER= BUILDSERVER=
#BUILDSERVERPATH="$HASHERDIR/repo/i586/RPMS.hasher" #BUILDSERVERPATH="$HASHERDIR/repo/i586/RPMS.hasher"
PKGREPLBASE=/usr/share/eterbuild/pkgrepl PKGREPLBASE=$ETERBUILDDIR/pkgrepl
if [ ! -d "$PKGREPLBASE" ] ; then if [ ! -d "$PKGREPLBASE" ] ; then
PKGREPLBASE=$(dirname $0)/pkgrepl PKGREPLBASE=$(dirname $0)/pkgrepl
echo "Warning: Use local replacement dir $PKGREPLBASE" echo "Warning: Use local replacement dir $PKGREPLBASE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment