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
d3dcae41
Commit
d3dcae41
authored
Nov 16, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.alt:packages/etersoft-build-utils
parents
9eb3759c
6b63e916
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
37 additions
and
16 deletions
+37
-16
myhsh
bin/myhsh
+1
-1
rpmbb
bin/rpmbb
+7
-5
rpmbph
bin/rpmbph
+4
-1
rpmurl
bin/rpmurl
+4
-1
build
share/eterbuild/functions/build
+4
-2
config
share/eterbuild/functions/config
+1
-1
pkgrepl.centos
share/eterbuild/pkgrepl/pkgrepl.centos
+1
-0
pkgrepl.deb
share/eterbuild/pkgrepl/pkgrepl.deb
+4
-0
pkgrepl.fedora.9
share/eterbuild/pkgrepl/pkgrepl.fedora.9
+1
-2
pkgrepl.mdv
share/eterbuild/pkgrepl/pkgrepl.mdv
+5
-2
pkgrepl.mdv.2009
share/eterbuild/pkgrepl/pkgrepl.mdv.2009
+1
-1
pkgrepl.rpm
share/eterbuild/pkgrepl/pkgrepl.rpm
+4
-0
No files found.
bin/myhsh
View file @
d3dcae41
...
...
@@ -90,7 +90,7 @@ do
# --nprocs=2
# Note: hasher is already use renice for low priority
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
echo
"Build in hasher (
$MENV
)"
>
$LOGFILE
echo
"Build in hasher (
$MENV
)
in
$HASHERDIR
dir
"
>
$LOGFILE
rm
-f
$LOGFILE
.failed
# enable /proc support only if require it
#rpm --requires -p $i | grep "/proc" && ARG="$HASHERARG --mountpoints=/proc" || ARG="$HASHERARG"
...
...
bin/rpmbb
View file @
d3dcae41
...
...
@@ -24,7 +24,7 @@ fi
#############################
Usage
=
"Usage:
$name
[-c -p -i -r] spec..."
Usage
=
"Usage:
$name
[-c -p -i -r
-R
] spec..."
function
mygetopts
()
{
name
=
${
0
##*/
}
...
...
@@ -39,15 +39,17 @@ phelp()
echog
" -i - install and package"
echog
" -p - packaging installed files into package"
echog
" -r - find build requires"
echog
" -R - find build requires with -bi"
}
while
getopts
:hcipr opt
;
do
while
getopts
:hcipr
R
opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
c
)
BUILDOPT
=
"c"
;;
i
)
BUILDOPT
=
"i b"
;;
p
)
BUILDOPT
=
"b"
;;
r
)
BUILDREQ
=
1
;;
r
)
BUILDREQ
=
"-bc"
;;
R
)
BUILDREQ
=
"-bi"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
...
...
@@ -80,9 +82,9 @@ fi
# instead cbuild req
if
[
-n
"
$BUILDREQ
"
]
;
then
uni_buildreq
$LISTNAMES
uni_buildreq
$
BUILDREQ
$
LISTNAMES
RET
=
$?
echog
"You can run
buildreq with -bi param for search a dependences for install section of the package
"
echog
"You can run
with -R param for search a dependences for install section of the package (as with buildreq -bi)
"
exit
$RET
fi
...
...
bin/rpmbph
View file @
d3dcae41
...
...
@@ -18,6 +18,7 @@ DISTRVERSION=`distr_vendor -v`
alt_tolocal
()
{
local
TXTRELEASE
local
SPECNAME
SPECNAME
=
$1
...
...
@@ -40,7 +41,9 @@ else
# Need our compat package and disable strong patch checking
BUILDREQ
=
"BuildRequires: rpm-build-altlinux-compat >= 0.95 make gcc
\n
$FIXPATCHFUZZ
"
[
-z
"
$BUILDCOMMAND
"
]
&&
BUILDCOMMAND
=
$ETERBUILDBIN
/rpmbb
set_release
$SPECNAME
$(
get_txtrelease
$SPECNAME
)
$BASERELEASE$VENDOR
TXTRELEASE
=
$(
get_txtrelease
$SPECNAME
)
[
-z
"
$KORINFTARGETRELEASE
"
]
||
TXTRELEASE
=
$KORINFTARGETRELEASE
set_release
$SPECNAME
$TXTRELEASE$BASERELEASE$VENDOR
ADDDEF
=
"%defattr(-, root, root)"
CLEANTEXT
=
""
fi
...
...
bin/rpmurl
View file @
d3dcae41
...
...
@@ -111,6 +111,9 @@ get_pagepkginfo()
PKGVERSION
=
`
rpm
-q
--queryformat
"%{VERSION}"
${
i
}
`
PKGNAME
=
`
rpm
-q
--queryformat
"%{sourcerpm}"
${
i
}
|
sed
-e
"s|-
$VERSION
.*||g"
`
fi
if
[
-z
"
$PKGNAME
"
]
;
then
PKGNAME
=
"
$i
"
fi
RPM_URL
=
$PAGEURL
/
$PKGNAME
}
...
...
@@ -127,7 +130,7 @@ do
RPM_URL
=
`
dirname
$SOURCE
`
fi
fi
test
-z
"
$ABOUTDIR
"
&&
test
-z
${
RPM_URL
}
&&
fatal
"Cannot get package Url from spec
$i
"
test
-z
"
$ABOUTDIR
"
&&
test
-z
"
${
RPM_URL
}
"
&&
fatal
"Cannot get package Url from spec
$i
"
if
[
-z
"
$CHECKONLY
"
]
;
then
if
[
-n
"
$RPM_URL
"
]
&&
[
"
$RPM_URL
"
!=
"(none)"
]
;
then
echog
"Opening URL '
$RPM_URL
' with browser '
$BROWSER
'"
...
...
share/eterbuild/functions/build
View file @
d3dcae41
...
...
@@ -77,15 +77,17 @@ uni_rpmbuild()
uni_buildreq
()
{
local
RET
=
0
local
BUILDREQPARAM
=
"
$1
"
shift
local
SPECNAME
=
$(
realpath
"
$1
"
)
shift
local
SPECDIR
=
`
dirname
$SPECNAME
`
local
GEARBUILDREQ
=
gear-buildreq
if
is_gear
$SPECDIR
;
then
$NICE
$GEARBUILDREQ
--commit
--
"
$SPECNAME
"
$@
||
RET
=
$?
$NICE
$GEARBUILDREQ
$BUILDREQPARAM
--commit
--
"
$SPECNAME
"
$@
||
RET
=
$?
else
$NICE
buildreq
"
$SPECNAME
"
$@
||
RET
=
$?
$NICE
buildreq
$BUILDREQPARAM
"
$SPECNAME
"
$@
||
RET
=
$?
fi
return
$RET
}
...
...
share/eterbuild/functions/config
View file @
d3dcae41
...
...
@@ -3,7 +3,7 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
ETERBUILDVERSION
=
16
6
ETERBUILDVERSION
=
16
7
# SUDO
SUDO
=
"sudo"
...
...
share/eterbuild/pkgrepl/pkgrepl.centos
View file @
d3dcae41
...
...
@@ -4,3 +4,4 @@ jackit-devel|
# XOrg
xorg-x11-devel|
xorg-sdk|xorg-x11-server-sdk
libsmbclient-devel|samba-common
share/eterbuild/pkgrepl/pkgrepl.deb
View file @
d3dcae41
...
...
@@ -92,3 +92,6 @@ librsvg|librsvg2
# hack due our wine package with -devel
libwine-devel|libwine-devel
ImageMagick-tools|imagemagick
wxGTK-devel|wx-common
\ No newline at end of file
share/eterbuild/pkgrepl/pkgrepl.fedora.9
View file @
d3dcae41
libgtkmm2-devel|gtkmm24-devel
libice-devel|libICE-devel
\ No newline at end of file
libice-devel|libICE-devel
share/eterbuild/pkgrepl/pkgrepl.mdv
View file @
d3dcae41
...
...
@@ -77,4 +77,8 @@ xorg-inputproto-devel|x11-proto-devel
xorg-xextproto-devel|x11-proto-devel
xorg-sdk|x11-server-devel
libICE-devel|libice6-devel
\ No newline at end of file
libICE-devel|libice6-devel
libarts-devel|libkdemultimedia1-arts-devel
libopensc-devel|libopensc-devel
wxGTK-devel|libwxgtk2.8-devel
netcat|netcat
share/eterbuild/pkgrepl/pkgrepl.mdv.2009
View file @
d3dcae41
...
...
@@ -5,4 +5,4 @@ libreadline|libreadline6
libgtkmm2-devel|libgtkmm2.4-devel
glibc-devel-static|glibc-static-devel
libarts-devel|
arts3
-devel
libarts-devel|
libarts1
-devel
share/eterbuild/pkgrepl/pkgrepl.rpm
View file @
d3dcae41
...
...
@@ -101,3 +101,6 @@ GConf|GConf2
libxml++2-devel|libxml++-devel
glibc-devel-static|glibc-devel
libopensc-devel|opensc-devel
ImageMagick-tools|ImageMagick
\ No newline at end of file
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