Browse Source

Merge pull request #8 from 2600hz/UBUNTU

build configs for ubuntu/debian
3.17
lazedo 12 years ago
parent
commit
89471b6501
6 changed files with 110 additions and 0 deletions
  1. +23
    -0
      debian/control
  2. +3
    -0
      debian/kazoo-configs-freeswitch.install
  3. +34
    -0
      debian/kazoo-configs-freeswitch.postinst
  4. +27
    -0
      debian/kazoo-configs-freeswitch.postrm
  5. +12
    -0
      debian/kazoo-configs.install
  6. +11
    -0
      debian/rules

+ 23
- 0
debian/control View File

@ -0,0 +1,23 @@
#### Do not edit! This file is auto-generated from debian/bootstrap.sh.
Source: kazoo-configs
Section: comm
Priority: optional
Maintainer: Travis Cross <tc@traviscross.com>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.3
Homepage: http://www.2600hz.com/
Package: kazoo-configs
Architecture: all
Provides: kazoo-configs-freeswitch
Depends: ${misc:Depends}
Description: Kazoo Configurations
This package contains the Kazoo Configuration Files.
Package: kazoo-configs-freeswitch
Architecture: all
Depends: ${misc:Depends}
Description: Kazoo Configurations for FreeSWITCH
This package contains the Kazoo Configuration Files fo FreeSWITCH.

+ 3
- 0
debian/kazoo-configs-freeswitch.install View File

@ -0,0 +1,3 @@
#### Do not edit! This file is auto-generated from debian/bootstrap.sh.
freeswitch /etc/kazoo

+ 34
- 0
debian/kazoo-configs-freeswitch.postinst View File

@ -0,0 +1,34 @@
#!/bin/sh
set -e
case "$1" in
configure)
if ! getent group freeswitch >/dev/null; then
groupadd --system freeswitch
fi
if ! getent passwd freeswitch >/dev/null; then
useradd --system -g freeswitch -Gaudio \
-d /var/lib/freeswitch \
-s /bin/false \
-e '' \
-c 'FreeSWITCH' \
freeswitch
fi
for x in \
/etc/kazoo/freeswitch;
do
mkdir -p $x
chown -R freeswitch:freeswitch $x
chmod -R o-wx,g+u $x
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

+ 27
- 0
debian/kazoo-configs-freeswitch.postrm View File

@ -0,0 +1,27 @@
#!/bin/sh
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
if [ "$1" = "purge" ]; then
if getent passwd freeswitch >/dev/null; then
userdel freeswitch
fi
if getent group freeswitch >/dev/null; then
groupdel freeswitch
fi
for x in \
/etc/kazoo/freeswitch;
do
rm -rf $x
done
fi
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

+ 12
- 0
debian/kazoo-configs.install View File

@ -0,0 +1,12 @@
#### Do not edit! This file is auto-generated from debian/bootstrap.sh.
app.config /etc/kazoo
config.ini /etc/kazoo
vm.args /etc/kazoo
freeswitch /etc/kazoo
kamailio /etc/kazoo
haproxy /etc/kazoo
bigcouch /etc/kazoo
rabbitmq /etc/kazoo

+ 11
- 0
debian/rules View File

@ -0,0 +1,11 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
%:
dh $@
override_dh_auto_build:
override_dh_auto_install:

Loading…
Cancel
Save