Merge branch 'foehn-master'

This commit is contained in:
DanB
2015-09-27 16:28:37 +02:00
22 changed files with 197 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
make deb:
cd ..;\
ln -sf packages/debian . ;\
ln -sf packages/jessie debian ;\
dpkg-buildpackage -rfakeroot -tc; \
rm debian
make squeeze:
cd ..;\
ln -sf packages/squeeze debian ;\
dpkg-buildpackage -rfakeroot -tc; \
rm debian

View File

@@ -0,0 +1,28 @@
# Stop dance for nginx
# =======================
#
# ExecStop sends SIGSTOP (graceful stop) to the nginx process.
# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control
# and sends SIGTERM (fast shutdown) to the main process.
# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends
# SIGKILL to all the remaining processes in the process group (KillMode=mixed).
#
# nginx signals reference doc:
# http://nginx.org/en/docs/control.html
#
[Unit]
Description=Control CGRateS - carrier grade real-time charging system
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/cgr-engine
KillMode=mixed
User=cgrates
Group=cgrates
StandardOutput=journal
StandardError=journal
Restart=on-failure
[Install]
WantedBy=multi-user.target

53
packages/jessie/rules Executable file
View File

@@ -0,0 +1,53 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export GOPATH=$(CURDIR)
export GO15VENDOREXPERIMENT=1
PKGDIR=debian/cgrates
SRCDIR=src/github.com/cgrates/cgrates
%:
dh $@
clean:
dh_clean
rm -rf $(GOPATH)/bin $(GOPATH)/pkg $(GOPATH)/src
rm -rf $(GOPATH)/debian/cgrates.debhelper.log
rm -f $(GOPATH)/goinstall.log
binary-arch: clean
dh_prep
dh_installdirs
mkdir -p src/github.com/cgrates
ln -sf $(CURDIR) src/github.com/cgrates
go get -v github.com/Masterminds/glide
$(GOPATH)/bin/glide up
exec $(CURDIR)/build.sh
mkdir -p $(PKGDIR)/usr/bin
cp $(GOPATH)/bin/cgr-* $(PKGDIR)/usr/bin/
mkdir -p $(PKGDIR)/etc/
cp -r $(CURDIR)/data/conf/cgrates $(PKGDIR)/etc/
mkdir -p $(PKGDIR)/usr/share/cgrates
cp -r $(CURDIR)/data/* $(PKGDIR)/usr/share/cgrates/
mkdir -p $(PKGDIR)/var/log/cgrates/cdrc/in
mkdir -p $(PKGDIR)/var/log/cgrates/cdrc/out
mkdir -p $(PKGDIR)/var/log/cgrates/cdre/csv
mkdir -p $(PKGDIR)/var/log/cgrates/cdre/fwv
mkdir -p $(PKGDIR)/var/log/cgrates/history
mkdir -p $(PKGDIR)/var/log/cgrates/tpe
dh_strip
dh_compress
dh_fixperms
# dh_installinit
dh_systemd_enable
dh_systemd_start
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch

View File

@@ -0,0 +1,30 @@
cgrates (0.9.1~rc7) UNRELEASED; urgency=low
* RC7.
-- DanB <danb@cgrates.org> Wednesday, 3 August 2015 14:04:00 -0600
cgrates (0.9.1~rc6) UNRELEASED; urgency=low
* RC6.
-- DanB <danb@cgrates.org> Wednesday, 10 September 2014 13:30:00 +0100
cgrates (0.9.1~rc5) UNRELEASED; urgency=low
* RC5.
-- DanB <danb@cgrates.org> Monday, 18 August 2014 13:30:00 +0100
cgrates (0.9.1~rc4) UNRELEASED; urgency=low
* RC4.
-- DanB <danb@cgrates.org> Thursday, 25 March 2014 17:30:00 +0100
cgrates (0.9.1~rc3) UNRELEASED; urgency=low
* RC3.
-- DanB <danb@cgrates.org> Fri, 03 Jan 2014 17:37:31 +0100

1
packages/squeeze/compat Normal file
View File

@@ -0,0 +1 @@
7

14
packages/squeeze/control Normal file
View File

@@ -0,0 +1,14 @@
Source: cgrates
Section: base
Priority: optional
Maintainer: DanB <danb@cgrates.org>
Build-Depends: debhelper, git
Standards-Version: 3.9.1
Homepage: http://cgrates.org
Package: cgrates
Architecture: amd64
Suggests: git, redis-server, mysql-server
Version: 0.9.1-rc7
Description: Carrier Grade Real-time Charging System
CGRateS is a very fast and easy scalable real-time charging system for Telecom environments.

View File

@@ -0,0 +1,12 @@
Original packaging work by:
Gustavo Niemeyer <niemeyer@canonical.com> on Wed, 02 Feb 2011 11:38:38 -0200
Downloaded from:
http://launchpad.net/lbox
The Debian packaging is:
Copyright (C) 2011 Canonical Ltd.
Further development:
Copyright (C) 2014 ITsysCOM GmbH

0
packages/squeeze/docs Normal file
View File

46
packages/squeeze/postinst Executable file
View File

@@ -0,0 +1,46 @@
#! /bin/sh
#
# $Id$
PKG=cgrates
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure)
adduser --quiet --system --group --disabled-password --shell /bin/false --gecos "CGRateS" cgrates || true
chown -R cgrates:cgrates /var/log/cgrates/
chown -R cgrates:cgrates /usr/share/cgrates/
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#

View File

@@ -0,0 +1 @@
3.0 (native)

View File

@@ -0,0 +1,5 @@
tar-ignore = .hg
tar-ignore = .git
tar-ignore = .bzr
tar-ignore = .gitignore
tar-ignore = .travis.yml