Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
4aed9f19
Commit
4aed9f19
authored
Jul 20, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move src.rpm repos arrays to repos file
parent
4f136191
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
27 deletions
+32
-27
etersoft-build-utils.spec
etersoft-build-utils.spec
+1
-0
Makefile
etersoft-build-utils/Makefile
+1
-0
rpmgp
etersoft-build-utils/bin/rpmgp
+16
-26
repos
etersoft-build-utils/etc/repos
+12
-0
common
etersoft-build-utils/share/common
+2
-1
No files found.
etersoft-build-utils.spec
View file @
4aed9f19
...
...
@@ -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/sources.list.*
%config(noreplace) %_sysconfdir/eterbuild/config
%config(noreplace) %_sysconfdir/eterbuild/repos
%changelog
* Sun Jul 20 2008 Vitaly Lipatov <lav@altlinux.ru> 1.5.0-alt1
...
...
etersoft-build-utils/Makefile
View file @
4aed9f19
...
...
@@ -15,6 +15,7 @@ install:
install
-m
755 bin/
*
$(bindir)
install
-m
644 etc/apt/
*
$(sysconfdir)
/eterbuild/apt/
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 share/pkgrepl/pkgrepl.
*
$(datadir)
/eterbuild/pkgrepl/
install
-m
644 share/grprepl/grprepl.
*
$(datadir)
/eterbuild/grprepl/
...
...
etersoft-build-utils/bin/rpmgp
View file @
4aed9f19
...
...
@@ -14,32 +14,18 @@
# path to ALT Linux's repositories
REPOSITORY
=
"files/SRPMS obsolete orphaned"
# Name of systems
SYSNAME[0]
=
"alt"
SYSNAME[1]
=
"fedora"
SYSNAME[2]
=
"fedora-ccrma"
SYSNAME[3]
=
"mandriva"
SYSNAME[4]
=
"mandriva-contrib"
SYSNAME[5]
=
"suse"
SYSNAME[6]
=
"suse-edu1"
SYSNAME[7]
=
"suse-edu2"
SYSNAME[8]
=
"alt-obsolete"
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"
# loads repos file and fill SYSNAME and SYSURL arrays
load_systems_list
()
{
local
IDX
=
0
local
line
while
read
line
;
do
SYSNAME[
$IDX
]=
${
line
/ *.*/
}
#FTP[$IDX]=${line/.* \+/}
SYSURL[
$IDX
]=
$(
echo
$line
|
sed
-e
"s|.*
\+
||g"
)
IDX
=
$((
$IDX
+
1
))
done
<
$ETERBUILDDIR
/repos
}
list_systems
()
{
...
...
@@ -153,12 +139,14 @@ fi
# list systems
if
[
"
$1
"
=
"-s"
]
;
then
load_systems_list
list_systems
exit
0
fi
# update cache list
if
[
"
$1
"
=
"-r"
]
;
then
load_systems_list
FORCEUPDATE
=
force
shift
# if followed by system name
...
...
@@ -182,6 +170,7 @@ test -z "$1" && fatal "Please run with spec/package name"
# two params: system, package
if
[
-n
"
$2
"
]
;
then
NAME
=
$2
load_systems_list
IDX
=
`
get_system_idx
"
$1
"
`
if
[
-n
"
$IDX
"
]
;
then
check_system
$IDX
...
...
@@ -195,6 +184,7 @@ fi
# Check all systems
if
[
-n
"
$ALLSYSTEM
"
]
;
then
load_systems_list
# search throw all systems
for
((
i
=
0
;
i <
${#
SYSNAME
[*]
}
;
i++
))
;
do
echo
...
...
etersoft-build-utils/etc/repos
0 → 100644
View file @
4aed9f19
# 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
etersoft-build-utils/share/common
View file @
4aed9f19
...
...
@@ -20,6 +20,7 @@ TEXTDOMAIN=etersoft-build-utils
export
TEXTDOMAIN
TEXTDOMAINDIR
=
'/usr/share/locale'
export
TEXTDOMAINDIR
ETERBUILDDIR
=
/usr/share/eterbuild
echog
()
{
...
...
@@ -153,7 +154,7 @@ RSYNCINCOMING=devel:/incoming
BUILDSERVER
=
#BUILDSERVERPATH="$HASHERDIR/repo/i586/RPMS.hasher"
PKGREPLBASE
=
/usr/share/eterbuild
/pkgrepl
PKGREPLBASE
=
$ETERBUILDDIR
/pkgrepl
if
[
!
-d
"
$PKGREPLBASE
"
]
;
then
PKGREPLBASE
=
$(
dirname
$0
)
/pkgrepl
echo
"Warning: Use local replacement dir
$PKGREPLBASE
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment