Commit Graph

27 Commits

Author SHA1 Message Date
ionutboangiu
7f132f19e4 Bump go version to 1.24.0 2025-02-26 16:19:47 +01:00
ionutboangiu
ab02a8a8dd Bump go version (1.22.5 -> 1.23.2)
needed for io.CopyFS function
2024-10-16 18:43:34 +02:00
ionutboangiu
da4bf0d783 Sync (and update) go version
go.mod had a later version than the one used inside the
role, which caused the deb packaging to fail.

Updated all of them to latest.
2024-07-05 11:20:09 +02:00
ionutboangiu
75694bd75d Bump go version to 1.22.3 2024-05-16 14:46:30 +02:00
ionutboangiu
61bcf48678 Bump go version 2024-02-14 10:15:51 +01:00
ionutboangiu
27c6d503a5 Bump go version and update checksum 2023-10-12 11:10:01 +02:00
ionutboangiu
84cdf743bd Bump go version 2023-10-09 21:09:27 +02:00
ionutboangiu
e963b22fb5 Bump go version to 1.21 2023-08-28 12:23:28 +02:00
ionutboangiu
553508d1ff Bump go version from 1.20.5 to 1.20.6 2023-07-21 09:00:46 +02:00
ionutboangiu
29d030bd69 Update files related to rpm packaging 2023-07-21 09:00:46 +02:00
gezimbll
b838469bb5 Added script for local rpm builds 2023-07-04 13:17:13 +02:00
nickolasdaniel
318a7214a4 Removed creation of history folder in make and spec files since we are not using the folder 2021-07-09 10:19:50 +02:00
Trial97
9c0bba741b Removed unnecessary syslog reload from rpm spec file 2021-04-19 19:50:34 +02:00
Trial97
28ea7e8596 Updated AnalyzerSv1 API 2020-11-20 10:36:54 +01:00
Trial97
9d18928e95 Updated config sanity 2020-10-29 17:55:26 +01:00
Trial97
81a4cdd3a1 Added tests for analyzers 2020-10-29 17:55:26 +01:00
TeoV
1f3588fb65 Update cgrates.spec for self generating package ( fix #2425 ) 2020-10-15 12:42:28 +02:00
TeoV
9e9dfa8d99 Add documentation for generation RPM package from sources 2020-04-16 16:38:32 +02:00
Tripon Alexandru-Ionut
e86a0c77f0 Updated to go.mod 2019-09-04 16:22:08 +02:00
sergei lavrov
befd4386d9 Update cgrates.spec
- Add cgr-migrator

- Update version according to Guidelines for Versioning Fedora Packages (https://fedoraproject.org/wiki/Packaging:Versioning)
2018-08-19 18:40:48 +02:00
sergei lavrov
f8733d6ced Fix typo in cgrates.spec 2018-07-26 18:25:40 +02:00
DanB
54f4bdee05 Config changes: httpposter_attempts -> poster_attempts, failed_requests_dir -> failed_posts_dir 2017-01-31 12:48:01 +01:00
DanB
55980e0536 Configuration change - http_failed_dir -> failed_requests_dir 2017-01-29 20:53:11 +01:00
afone-lboue
872293b203 Missing spooldir directories in RPM build script
Hello,

I am getting an error with rpmbuild because spooldir directories are missing. Can you fix this with this patch?

```
[admin@server cgr_build]$ rpmbuild -bb --define "_topdir $HOME/cgr_build" SPECS/cgrates.spec
Exécution_de(%prep) : /bin/sh -e /var/tmp/rpm-tmp.oxMhbk
+ umask 022
+ cd /home/admin/cgr_build/BUILD
+ cd /home/admin/cgr_build/BUILD
+ rm -rf cgrates-0.9.1rc7.87e12f6
+ /usr/bin/mkdir -p cgrates-0.9.1rc7.87e12f6
+ cd cgrates-0.9.1rc7.87e12f6
+ /usr/bin/gzip -dc /home/admin/cgr_build/SOURCES/87e12f6ea4cc7656baca4002baa6af48fca0c6d4.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mkdir -p src/github.com/cgrates
+ ln -sf ../../../cgrates-87e12f6ea4cc7656baca4002baa6af48fca0c6d4 src/github.com/cgrates/cgrates
+ exit 0
Exécution_de(%build) : /bin/sh -e /var/tmp/rpm-tmp.cT34vu
+ umask 022
+ cd /home/admin/cgr_build/BUILD
+ cd cgrates-0.9.1rc7.87e12f6
+ export GO15VENDOREXPERIMENT=1
+ GO15VENDOREXPERIMENT=1
+ export GOPATH=/home/admin/cgr_build/BUILD/cgrates-0.9.1rc7.87e12f6
+ GOPATH=/home/admin/cgr_build/BUILD/cgrates-0.9.1rc7.87e12f6
+ cd /home/admin/cgr_build/BUILD/cgrates-0.9.1rc7.87e12f6/src/github.com/cgrates/cgrates
+ go get -v github.com/Masterminds/glide
github.com/Masterminds/glide (download)
github.com/Masterminds/glide/vendor/github.com/Masterminds/vcs
github.com/Masterminds/glide/msg
github.com/Masterminds/glide/godep/strip
github.com/Masterminds/glide/path
github.com/Masterminds/glide/vendor/github.com/Masterminds/semver
github.com/Masterminds/glide/cache
github.com/Masterminds/glide/vendor/gopkg.in/yaml.v2
github.com/Masterminds/glide/mirrors
github.com/Masterminds/glide/util
github.com/Masterminds/glide/cfg
github.com/Masterminds/glide/dependency
github.com/Masterminds/glide/gb
github.com/Masterminds/glide/godep
github.com/Masterminds/glide/gom
github.com/Masterminds/glide/gpm
github.com/Masterminds/glide/importer
github.com/Masterminds/glide/vendor/github.com/codegangsta/cli
github.com/Masterminds/glide/repo
github.com/Masterminds/glide/tree
github.com/Masterminds/glide/action
github.com/Masterminds/glide
+ /home/admin/cgr_build/BUILD/cgrates-0.9.1rc7.87e12f6/bin/glide install
[WARN]  The name listed in the config file () does not match the current location (github.com/cgrates/cgrates)
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Found desired version locally github.com/cenk/hub 11382a9960d39b0ecda16fd01c424c11ff765a34!
[INFO]  --> Found desired version locally github.com/cenkalti/rpc2 7ab76d2e88c77ca1a715756036d8264b2886acd2!
[INFO]  --> Found desired version locally github.com/cgrates/fsock a8ffdbdfc8440016df008ba91e6f05f806d7a69f!
[INFO]  --> Found desired version locally github.com/cgrates/kamevapi a376b1f937ba959857929fa3e111c0f3243278c0!
[INFO]  --> Found desired version locally github.com/cgrates/osipsdagram 3d6beed663452471dec3ca194137a30d379d9e8f!
[INFO]  --> Found desired version locally github.com/cgrates/rpcclient 1d54b34b6a5531e1124728b489c44ec6a8ac231e!
[INFO]  --> Found desired version locally github.com/ChrisTrenkamp/goxpath 4aad8d0161aae7d17df4755d2c1e86cd1fcaaab6!
[INFO]  --> Found desired version locally github.com/DisposaBoy/JsonConfigReader 33a99fdf1d5ee1f79b5077e9c06f955ad356d5f4!
[INFO]  --> Found desired version locally github.com/fiorix/go-diameter 9ada6bfd077a36dc892676633a2c9ca42d884202!
[INFO]  --> Found desired version locally github.com/go-sql-driver/mysql 3654d25ec346ee8ce71a68431025458d52a38ac0!
[INFO]  --> Found desired version locally github.com/gorhill/cronexpr f0984319b44273e83de132089ae42b1810f4933b!
[INFO]  --> Found desired version locally github.com/hashicorp/golang-lru 0a025b7e63adc15a622f29b0b2c4c3848243bbf6!
[INFO]  --> Found desired version locally github.com/jinzhu/gorm 3324ab20633e8c7ec6d6b1f7a714a1a6e06fec08!
[INFO]  --> Found desired version locally github.com/jinzhu/inflection 8f4d3a0d04ce0b7c0cf3126fb98524246d00d102!
[INFO]  --> Found desired version locally github.com/kr/pty a6bad5ee6fc60cad43d219214dd2449bf077f3f5!
[INFO]  --> Found desired version locally github.com/lib/pq 4dd446efc17690bc53e154025146f73203b18309!
[INFO]  --> Found desired version locally github.com/mediocregopher/radix.v2 ae04b3eb3731f94789205d1268e0759371166605!
[INFO]  --> Found desired version locally github.com/mitchellh/mapstructure d2dd0262208475919e1a362f675cfc0e7c10e905!
[INFO]  --> Found desired version locally github.com/peterh/liner 8975875355a81d612fafb9f5a6037bdcc2d9b073!
[INFO]  --> Found desired version locally github.com/ugorji/go b94837a2404ab90efe9289e77a70694c355739cb!
[INFO]  --> Found desired version locally golang.org/x/net b400c2eff1badec7022a8c8f5bea058b6315eed7!
[INFO]  --> Found desired version locally golang.org/x/sys a408501be4d17ee978c04a618e7a1b22af058c0e!
[INFO]  --> Found desired version locally golang.org/x/text ce78b075c2fbd48520f4995b173eb9fe18b56ef3!
[INFO]  --> Found desired version locally gopkg.in/fsnotify.v1 a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb!
[INFO]  --> Found desired version locally gopkg.in/mgo.v2 29cc868a5ca65f401ff318143f9408d02f4799cc!
[INFO]  Setting references.
[INFO]  --> Setting version for github.com/cenk/hub to 11382a9960d39b0ecda16fd01c424c11ff765a34.
[INFO]  --> Setting version for github.com/cenkalti/rpc2 to 7ab76d2e88c77ca1a715756036d8264b2886acd2.
[INFO]  --> Setting version for github.com/cgrates/fsock to a8ffdbdfc8440016df008ba91e6f05f806d7a69f.
[INFO]  --> Setting version for github.com/cgrates/kamevapi to a376b1f937ba959857929fa3e111c0f3243278c0.
[INFO]  --> Setting version for github.com/cgrates/osipsdagram to 3d6beed663452471dec3ca194137a30d379d9e8f.
[INFO]  --> Setting version for github.com/cgrates/rpcclient to 1d54b34b6a5531e1124728b489c44ec6a8ac231e.
[INFO]  --> Setting version for github.com/ChrisTrenkamp/goxpath to 4aad8d0161aae7d17df4755d2c1e86cd1fcaaab6.
[INFO]  --> Setting version for github.com/DisposaBoy/JsonConfigReader to 33a99fdf1d5ee1f79b5077e9c06f955ad356d5f4.
[INFO]  --> Setting version for github.com/fiorix/go-diameter to 9ada6bfd077a36dc892676633a2c9ca42d884202.
[INFO]  --> Setting version for github.com/go-sql-driver/mysql to 3654d25ec346ee8ce71a68431025458d52a38ac0.
[INFO]  --> Setting version for github.com/gorhill/cronexpr to f0984319b44273e83de132089ae42b1810f4933b.
[INFO]  --> Setting version for github.com/hashicorp/golang-lru to 0a025b7e63adc15a622f29b0b2c4c3848243bbf6.
[INFO]  --> Setting version for github.com/jinzhu/gorm to 3324ab20633e8c7ec6d6b1f7a714a1a6e06fec08.
[INFO]  --> Setting version for github.com/jinzhu/inflection to 8f4d3a0d04ce0b7c0cf3126fb98524246d00d102.
[INFO]  --> Setting version for github.com/kr/pty to a6bad5ee6fc60cad43d219214dd2449bf077f3f5.
[INFO]  --> Setting version for github.com/lib/pq to 4dd446efc17690bc53e154025146f73203b18309.
[INFO]  --> Setting version for github.com/mediocregopher/radix.v2 to ae04b3eb3731f94789205d1268e0759371166605.
[INFO]  --> Setting version for github.com/mitchellh/mapstructure to d2dd0262208475919e1a362f675cfc0e7c10e905.
[INFO]  --> Setting version for github.com/peterh/liner to 8975875355a81d612fafb9f5a6037bdcc2d9b073.
[INFO]  --> Setting version for github.com/ugorji/go to b94837a2404ab90efe9289e77a70694c355739cb.
[INFO]  --> Setting version for golang.org/x/net to b400c2eff1badec7022a8c8f5bea058b6315eed7.
[INFO]  --> Setting version for golang.org/x/sys to a408501be4d17ee978c04a618e7a1b22af058c0e.
[INFO]  --> Setting version for golang.org/x/text to ce78b075c2fbd48520f4995b173eb9fe18b56ef3.
[INFO]  --> Setting version for gopkg.in/fsnotify.v1 to a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb.
[INFO]  --> Setting version for gopkg.in/mgo.v2 to 29cc868a5ca65f401ff318143f9408d02f4799cc.
[INFO]  Exporting resolved dependencies...
[INFO]  --> Exporting github.com/cenk/hub
[INFO]  --> Exporting github.com/cenkalti/rpc2
[INFO]  --> Exporting github.com/cgrates/fsock
[INFO]  --> Exporting github.com/cgrates/kamevapi
[INFO]  --> Exporting github.com/cgrates/osipsdagram
[INFO]  --> Exporting github.com/cgrates/rpcclient
[INFO]  --> Exporting github.com/ChrisTrenkamp/goxpath
[INFO]  --> Exporting github.com/DisposaBoy/JsonConfigReader
[INFO]  --> Exporting github.com/fiorix/go-diameter
[INFO]  --> Exporting github.com/go-sql-driver/mysql
[INFO]  --> Exporting github.com/gorhill/cronexpr
[INFO]  --> Exporting github.com/jinzhu/gorm
[INFO]  --> Exporting github.com/jinzhu/inflection
[INFO]  --> Exporting github.com/kr/pty
[INFO]  --> Exporting github.com/lib/pq
[INFO]  --> Exporting github.com/mediocregopher/radix.v2
[INFO]  --> Exporting github.com/mitchellh/mapstructure
[INFO]  --> Exporting github.com/peterh/liner
[INFO]  --> Exporting github.com/ugorji/go
[INFO]  --> Exporting github.com/hashicorp/golang-lru
[INFO]  --> Exporting golang.org/x/net
[INFO]  --> Exporting golang.org/x/text
[INFO]  --> Exporting golang.org/x/sys
[INFO]  --> Exporting gopkg.in/fsnotify.v1
[INFO]  --> Exporting gopkg.in/mgo.v2
[INFO]  Replacing existing vendor dependencies
+ ./build.sh
Building CGRateS...
+ exit 0
Exécution_de(%install) : /bin/sh -e /var/tmp/rpm-tmp.qyBMTt
+ umask 022
+ cd /home/admin/cgr_build/BUILD
+ '[' /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64 '!=' / ']'
+ rm -rf /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64
++ dirname /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64
+ mkdir -p /home/admin/cgr_build/BUILDROOT
+ mkdir /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64
+ cd cgrates-0.9.1rc7.87e12f6
+ rm -rf /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/share/cgrates
+ cp -rpf src/github.com/cgrates/cgrates/data/conf src/github.com/cgrates/cgrates/data/daemontools src/github.com/cgrates/cgrates/data/diameter src/github.com/cgrates/cgrates/data/docker src/github.com/cgrates/cgrates/data/freeswitch src/github.com/cgrates/cgrates/data/kamailio src/github.com/cgrates/cgrates/data/monit src/github.com/cgrates/cgrates/data/scripts src/github.com/cgrates/cgrates/data/storage src/github.com/cgrates/cgrates/data/tariffplans src/github.com/cgrates/cgrates/data/tester src/github.com/cgrates/cgrates/data/tutorials src/github.com/cgrates/cgrates/data/vagrant /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/share/cgrates
+ install -D -m 0644 -p src/github.com/cgrates/cgrates/data/conf/cgrates/cgrates.json /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/etc/cgrates/cgrates.json
+ install -D -m 0755 -p bin/cgr-console /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/bin/cgr-console
+ install -D -m 0755 -p bin/cgr-engine /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/bin/cgr-engine
+ install -D -m 0755 -p bin/cgr-loader /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/bin/cgr-loader
+ install -D -m 0755 -p bin/cgr-tester /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/bin/cgr-tester
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/log/cgrates/cdrc/in
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/log/cgrates/cdrc/out
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/log/cgrates/cdre/csv
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/log/cgrates/cdre/fwv
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/lib/cgrates/history
+ mkdir -p /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/lib/cgrates/cache_dump
+ install -D -m 0644 -p src/github.com/cgrates/cgrates/packages/redhat_fedora/cgrates.options /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/etc/sysconfig/cgrates
+ install -D -m 0644 -p src/github.com/cgrates/cgrates/packages/redhat_fedora/cgrates.service /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/usr/lib/systemd/system/cgrates.service
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Traitement des fichiers : cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64
erreur : Fichier non trouvé par la substitution : /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/spool/cgrates/*

Erreur de construction de RPM :
    Fichier non trouvé par la substitution : /home/admin/cgr_build/BUILDROOT/cgrates-0.9.1rc7.87e12f6-1.el7.centos.x86_64/var/spool/cgrates/*
```
2016-08-24 12:33:20 +02:00
Radu Ioan Fericean
9c15a02017 create spool and lib dirs in package scripts 2016-06-14 20:37:00 +03:00
rinor
d627f0e240 packages: glide - "glide up" to "glide install" 2015-12-21 12:35:47 +01:00
Nick Altmann
f248f32b8a Spec files for Redhat (Centos/Oracle Linux/Scientific Linux), Fedora 2015-09-28 21:17:17 +03:00