configure-ptt-chedecorare-oglive-methodsejecutarscript-b64fix-cfg2objfixes-winlgromero-filebeatmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1oglogoglog2override-moduleping1ping2ping3ping4py3-winpython3report-progressunification2unification3versionswindows-fixes
Last change
on this file since 6a01818 was
12f0b1d,
checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago
|
#940: Updating dependencies to build OGAgent for Linux
|
-
Property mode set to
100755
|
File size:
1005 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | cd $(dirname "$0") |
---|
4 | top=$(pwd) |
---|
5 | |
---|
6 | VERSION="$(cat ../src/VERSION 2>/dev/null)" || VERSION="1.1.1" |
---|
7 | RELEASE="1" |
---|
8 | |
---|
9 | # Debian based |
---|
10 | dpkg-buildpackage -b -d |
---|
11 | |
---|
12 | # Fix version number. |
---|
13 | sed -e "s/version 0.0.0/version ${VERSION}/g" \ |
---|
14 | -e "s/release 1/release ${RELEASE}/g" ogagent-template.spec > ogagent-$VERSION.spec |
---|
15 | |
---|
16 | # Now fix dependencies for opensuse |
---|
17 | sed -e "s/name ogagent/name ogagent-opensuse/g" \ |
---|
18 | -e "s/version 0.0.0/version ${VERSION}/g" \ |
---|
19 | -e "s/release 1/release ${RELEASE}/g" \ |
---|
20 | -e "s/chkconfig//g" \ |
---|
21 | -e "s/initscripts/insserv/g" \ |
---|
22 | -e "s/libXScrnSaver/libXss1/g" ogagent-template.spec > ogagent-opensuse-$VERSION.spec |
---|
23 | |
---|
24 | |
---|
25 | # Right now, ogagent-xrdp-1.7.0.spec is not needed |
---|
26 | for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do |
---|
27 | |
---|
28 | rm -rf rpm |
---|
29 | for folder in SOURCES BUILD RPMS SPECS SRPMS; do |
---|
30 | mkdir -p rpm/$folder |
---|
31 | done |
---|
32 | |
---|
33 | rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1 |
---|
34 | done |
---|
35 | |
---|
36 | #rm ogagent-$VERSION |
---|
Note: See
TracBrowser
for help on using the repository browser.