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
8ee11735
Commit
8ee11735
authored
Jan 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.alt:packages/etersoft-build-utils
parents
304e6652
98fae9bc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
35 deletions
+70
-35
NEWS
NEWS
+13
-0
gpush
bin/gpush
+8
-1
rpmbph
bin/rpmbph
+3
-3
rpmbs
bin/rpmbs
+12
-8
rpmgp
bin/rpmgp
+21
-3
apt.conf.M42
etc/apt/apt.conf.M42
+0
-10
sources.list.M42
etc/apt/sources.list.M42
+0
-9
etersoft-build-utils.spec
etersoft-build-utils.spec
+13
-1
No files found.
NEWS
View file @
8ee11735
etersoft-build-utils-1.7.3: 13 Jan 2010
- rpmgp: add acl list printing
- gpush: push without branch if --all
- rpmbph: do not insert fix for fuzzy patch in any case
- rpmgp: add -g option for remote and locally repo clone
etersoft-build-utils-1.7.2: 09 Jan 2010
- rpmbph: realize gear repo backporting (eterbug #4766)
- myhsh: drop out backport related defines (it will be placed in the spec by rpmbph)
- gpush: push current branch definitely
- rpmbs: disable GPG_AGENT_INFO if gpg-agent is not reached
- rpmbs: fix task build on various repos
etersoft-build-utils-1.7.1: 08 Jan 2010
etersoft-build-utils-1.7.1: 08 Jan 2010
- myhsh: enable error if there are unpackaged files in the build, add NOSTRICT_UNPACKAGED param in config for disable new behaviour
- myhsh: enable error if there are unpackaged files in the build, add NOSTRICT_UNPACKAGED param in config for disable new behaviour
- rpmgp: improve package checking (support non installed packages)
- rpmgp: improve package checking (support non installed packages)
...
...
bin/gpush
View file @
8ee11735
...
@@ -51,7 +51,14 @@ else
...
@@ -51,7 +51,14 @@ else
TARGETBRANCH
=
$CURRENTBRANCH
TARGETBRANCH
=
$CURRENTBRANCH
fi
fi
echo
"Push branch
$TARGETBRANCH
from
$PROJECTNAME
.git to
$GIRARHOST
:packages/
$PROJECTNAME
.git"
if
[
"
$PUSHALL
"
=
"--all"
]
;
then
TEXTBRANCH
=
"all branches"
TARGETBRANCH
=
else
TEXTBRANCH
=
"branch
$TARGETBRANCH
"
fi
echo
"Push
$TEXTBRANCH
from
$PROJECTNAME
.git to
$GIRARHOST
:packages/
$PROJECTNAME
.git"
git push
$PUSHALL
$PUSHFORCE
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
$PUSHALL
$PUSHFORCE
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
--tags
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
--tags
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
...
...
bin/rpmbph
View file @
8ee11735
...
@@ -60,7 +60,7 @@ if [ "$VENDOR" = "mdv" ] || [ "$VENDOR" = "pclinux" ] ; then
...
@@ -60,7 +60,7 @@ if [ "$VENDOR" = "mdv" ] || [ "$VENDOR" = "pclinux" ] ; then
fi
fi
# Do not add BuildReq if already exist
# Do not add BuildReq if already exist
cat
$SPECNAME
|
grep
rpm-build-compat &>/dev/null
&&
BUILDREQ
=
"
$FIXPATCHFUZZ
"
cat
$SPECNAME
|
grep
rpm-build-compat &>/dev/null
&&
BUILDREQ
=
""
FIXMKTEMP
=
""
FIXMKTEMP
=
""
...
@@ -309,8 +309,6 @@ fi
...
@@ -309,8 +309,6 @@ fi
[
-n
"
$VERBOSE
"
]
&&
echo
"DISTRVERSION=
$DISTRVERSION
LISTRPMARGS=
$LISTRPMARGS
"
[
-n
"
$VERBOSE
"
]
&&
echo
"DISTRVERSION=
$DISTRVERSION
LISTRPMARGS=
$LISTRPMARGS
"
unset
MENV MENVARG
[
-n
"
$NOBUILD
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbs --rmsource --rmspec"
[
-n
"
$NOBUILD
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbs --rmsource --rmspec"
[
-z
"
$BUILDCOMMAND
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbsh
$GIRARHOST
"
[
-z
"
$BUILDCOMMAND
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbsh
$GIRARHOST
"
...
@@ -361,6 +359,8 @@ if [ "$VENDOR" = "alt" ] ; then
...
@@ -361,6 +359,8 @@ if [ "$VENDOR" = "alt" ] ; then
fi
fi
fi
fi
unset
MENV MENVARG
# handle src.rpm and spec both, LISTBUILT - result with full pathes to src.rpms
# handle src.rpm and spec both, LISTBUILT - result with full pathes to src.rpms
pack_src_rpm
$LISTNAMES
pack_src_rpm
$LISTNAMES
...
...
bin/rpmbs
View file @
8ee11735
...
@@ -85,6 +85,14 @@ check_gear_and_tag()
...
@@ -85,6 +85,14 @@ check_gear_and_tag()
{
{
local
GEARCTAG
=
gear-create-tag
local
GEARCTAG
=
gear-create-tag
# FIXME: uncomment use-agent in ~/.gnupg/gpg.conf, but with ssh access to build server I got
# gpg: problem with the agent - disabling agent use
# gpg: Invalid passphrase; please try again ...
# gpg tries to use the agent but will fallback to the regular mode
# if there is a problem connecting to the agent.
# GPG_AGENT_INFO=
# set SPECDIR from LISTNAMES if empty
# set SPECDIR from LISTNAMES if empty
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
...
@@ -161,6 +169,8 @@ fi
...
@@ -161,6 +169,8 @@ fi
# set SPECDIR from LISTNAMES if empty
# set SPECDIR from LISTNAMES if empty
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
set_binaryrepo
$MENV
# If we build from gear repo, run task
# If we build from gear repo, run task
if
[
-n
"
$UPLOADNOW
"
]
&&
is_gear
$SPECDIR
;
then
if
[
-n
"
$UPLOADNOW
"
]
&&
is_gear
$SPECDIR
;
then
echo
"Run with gear repo..."
echo
"Run with gear repo..."
...
@@ -172,11 +182,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
...
@@ -172,11 +182,9 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
if
[
-n
"
$TASKNUMBER
"
]
;
then
if
[
-n
"
$TASKNUMBER
"
]
;
then
ssh
$GIRARHOST
task add
$TASKNUMBER
repo
$BASENAME
$TAG
ssh
$GIRARHOST
task add
$TASKNUMBER
repo
$BASENAME
$TAG
else
else
ssh
$GIRARHOST
task new
ssh
$GIRARHOST
build
-b
$BINARYREPO
$BASENAME
$TAG
ssh
$GIRARHOST
task add repo
$BASENAME
$TAG
||
ssh
$GIRARHOST
task
rm
ssh
$GIRARHOST
task run
fi
fi
echo
"run task
$BASENAME
with tag
$TAG
at
$GIRARHOST
(
$MENV
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
echo
"run task
$BASENAME
with tag
$TAG
at
$GIRARHOST
(
in
$BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
exit
exit
fi
fi
...
@@ -199,10 +207,6 @@ if [ -n "$REMOTEBUILD" ] ; then
...
@@ -199,10 +207,6 @@ if [ -n "$REMOTEBUILD" ] ; then
exit
0
exit
0
fi
fi
#set_incoming $MENV
set_binaryrepo
$MENV
if
[
-n
"
${
DELETENOW
}
"
]
;
then
if
[
-n
"
${
DELETENOW
}
"
]
;
then
echog
"Removing did not realized yet"
echog
"Removing did not realized yet"
exit
1
exit
1
...
...
bin/rpmgp
View file @
8ee11735
...
@@ -152,13 +152,14 @@ phelp()
...
@@ -152,13 +152,14 @@ phelp()
echog
"
$Descr
"
echog
"
$Descr
"
echog
"
$Usage
"
echog
"
$Usage
"
echog
"Options:"
echog
"Options:"
echog
"rpmgp [
-a -c -n
] [system] pkgname - download src.rpm from 'system' repository to RPM/SRPMS and install it"
echog
"rpmgp [
options
] [system] pkgname - download src.rpm from 'system' repository to RPM/SRPMS and install it"
echog
" name - installed package name or src.rpm"
echog
" name - installed package name or src.rpm"
echog
" system - name of system (ALT Linux by default if -a missed too)"
echog
" system - name of system (ALT Linux by default if -a missed too)"
echog
" -a search pkgname in all known repositories"
echog
" -a search pkgname in all known repositories"
echog
" -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -c check if this package exists in the ALT Linux repository"
echog
" -d download all matched packages"
echog
" -d download all matched packages"
echog
" -g remote clone repo to USER/packages and clone it locally"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -l list packages needed for build (in local pkg system notation) (experimental)"
echog
" -n do not install after download, just download in current dir"
echog
" -n do not install after download, just download in current dir"
echog
" -r refresh package list (download it again)"
echog
" -r refresh package list (download it again)"
...
@@ -167,13 +168,14 @@ phelp()
...
@@ -167,13 +168,14 @@ phelp()
}
}
TRYINST
=
"1"
TRYINST
=
"1"
while
getopts
:habcdlnrs opt
;
do
while
getopts
:habcd
g
lnrs opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
a
)
ALLSYSTEM
=
1
;;
b
)
INSTALLBINARY
=
1
;;
b
)
INSTALLBINARY
=
1
;;
c
)
CHECKONLINE
=
1
;;
c
)
CHECKONLINE
=
1
;;
d
)
DOWNLOADALL
=
1
;;
d
)
DOWNLOADALL
=
1
;;
g
)
CLONEGIT
=
1
;;
l
)
LISTREQS
=
1
;;
l
)
LISTREQS
=
1
;;
n
)
TRYINST
=
""
;;
n
)
TRYINST
=
""
;;
r
)
UPDATECACHE
=
1
;;
r
)
UPDATECACHE
=
1
;;
...
@@ -229,9 +231,22 @@ if [ -n "$INSTALLBINARY" ] ; then
...
@@ -229,9 +231,22 @@ if [ -n "$INSTALLBINARY" ] ; then
exit
0
exit
0
fi
fi
# clone remote git
if
[
-n
"
$CLONEGIT
"
]
;
then
PKGNAME
=
$1
INITLETTER
=
$(
echo
$PKGNAME
|
sed
"s/^
\(
.
\)
.*/
\1
/g"
)
# http://git.altlinux.org/srpms/N/NAME.git
echo
"Remote clone from /srpms/
$INITLETTER
/
$PKGNAME
.git ..."
ssh
$GIRARHOST
clone /srpms/
$INITLETTER
/
$PKGNAME
.git packages/
$PKGNAME
.git
||
fatal
"Can't remote clone."
git clone git.alt:packages/
$PKGNAME
.git
echo
"See other repos at
$GIRARHOST
:"
list_git_package
$PKGNAME
exit
0
fi
# lists packages for build
# lists packages for build
if
[
-n
"
$LISTREQS
"
]
;
then
if
[
-n
"
$LISTREQS
"
]
;
then
print_target_buildreq
$
1
print_target_buildreq
$
PKGNAME
exit
0
exit
0
fi
fi
...
@@ -262,6 +277,9 @@ if [ -n "$CHECKONLINE" ] ; then
...
@@ -262,6 +277,9 @@ if [ -n "$CHECKONLINE" ] ; then
fi
fi
fi
fi
list_git_package
$PKGNAME
list_git_package
$PKGNAME
# TODO: BINARYREPO
echo
-n
"ACL list for sisyphus: "
ssh
$GIRARHOST
acl sisyphus
$PKGNAME
show
RET
=
"MISSED"
RET
=
"MISSED"
if
[
-n
"
$SRCRPM
"
]
;
then
if
[
-n
"
$SRCRPM
"
]
;
then
...
...
etc/apt/apt.conf.M42
deleted
100644 → 0
View file @
304e6652
/*
* This is the main configuration file for the APT suite of tools,
* see apt.conf(5) for details.
*/
Dir::Etc::main "/dev/null";
Dir::Etc::parts "/var/empty";
Dir::Etc::SourceParts "/var/empty";
Dir::Etc::sourcelist "/etc/eterbuild/apt/sources.list.M42";
etc/apt/sources.list.M42
deleted
100644 → 0
View file @
304e6652
# Package repository URLs
#
# You can add [alt] after rpm for digital signature check
rpm file:/var/ftp/ pub/ALTLinux/4.2/branch/i586 classic
rpm file:/var/ftp/ pub/ALTLinux/4.2/branch/noarch classic
#rpm file:/var/ftp/ pub/ALTLinux/updates/4.1/i586 updates
#rpm file:/var/ftp/ pub/ALTLinux/backports/4.1/i586 backports
etersoft-build-utils.spec
View file @
8ee11735
Name: etersoft-build-utils
Name: etersoft-build-utils
Version: 1.7.
1
Version: 1.7.
3
Release: alt1
Release: alt1
Summary: A set of build rpm utilities
Summary: A set of build rpm utilities
...
@@ -64,6 +64,18 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
...
@@ -64,6 +64,18 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
%config(noreplace) %_sysconfdir/eterbuild/repos
%config(noreplace) %_sysconfdir/eterbuild/repos
%changelog
%changelog
* Wed Jan 13 2010 Vitaly Lipatov <lav@altlinux.ru> 1.7.3-alt1
- rpmgp: add acl list printing
- gpush: push without branch if --all
- rpmbph: do not insert fix for fuzzy patch in any case
- rpmgp: add -g option for remote and locally repo clone
* Fri Jan 08 2010 Vitaly Lipatov <lav@altlinux.ru> 1.7.2-alt1
- rpmbph: realize gear repo backporting (eterbug #4766)
- myhsh: drop out backport related defines (it will be placed in the spec by rpmbph)
- gpush: push current branch definitely
- rpmbs: fix task build on various repos
* Fri Jan 08 2010 Vitaly Lipatov <lav@altlinux.ru> 1.7.1-alt1
* Fri Jan 08 2010 Vitaly Lipatov <lav@altlinux.ru> 1.7.1-alt1
- myhsh: error if there are unpackaged files in the build
- myhsh: error if there are unpackaged files in the build
- rpmgp: improve package checking (support non installed packages)
- rpmgp: improve package checking (support non installed packages)
...
...
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