Commit Graph

547 Commits

Author SHA1 Message Date
Travis Cross 2184af8ea6 Remove explicit set of WorkingDirectory
In the systemd unit for FS/debian, if the WorkingDirectory is not set
then it defaults to '/'.  This is fine for FS, and is a common and
expected chdir choice for daemons.

We had previously set this to /run/freeswitch.  Due to Debian having
systemd-coredump(8) disabled, this was causing core files to be
written to /run/freeswitch, which is a bad place for them as it's
mounted on tmpfs.  So in commit cd68e0f we changed this to the log
directory /var/log/freeswitch.  That choice is a bit usual as well on
Debian.

It's better to leave FS as running on '/'.  This will prevent core
files from being written unless the user adjusts `sysctl
kernel.core_pattern`, which is a reasonable thing to expect if the
user wants these files.  Core files can be huge, and even having them
go to /var/log unexpectedly can be a problem.

When Debian adds the systemd-coredumps support this will all work
nicely and automatically.

ref: http://www.freedesktop.org/software/systemd/man/coredump.conf.html
ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744964

References-commit: cd68e0fe1b

FS-7909
2015-09-22 05:34:15 +00:00
Travis Cross 16d0538fb5 Move chown of /etc/freeswitch/tls to postinst
Doing a chown of something in /etc/ as part of a systemd service file
is totally broken.  It's far too large a sledgehammer to point at /etc
here.  Someone may legitimately not be using /etc/freeswitch/tls in
his configuration, in which case this chown would fail and cause FS to
fail to start.  Or someone may legitimately need /etc/freeswitch/tls
to have different ownership, in which case we would clobber it here.

The right thing to do is to create this directory in the
postinst (which we already are, assuming there is not an existing
configuration) and then perform the chown of it at the same time.

FS-7697
2015-09-22 04:58:50 +00:00
Travis Cross 12e90ce989 Use systemd RuntimeDirectory for /run/freeswitch
This changes how we create the temporary directory /run/freeswitch
when starting FS with systemd.  The /run directory starts empty after
a system reboot, so we need to ensure this directory is present.

Originally for the FS systemd unit we created /run/freeswitch using
ExecStartPre and mkdir.  With commit adb5f0d this was changed to use
the tmpfiles.d(5) mechanism (but the ExecStartPre/mkdir code was not
removed).

As part of systemd.exec(5), systemd provides a mechanism to
automatically manage these directories under /run and to bind their
lifetime to the lifetime of the process.  This is actually what we
want here as compared to the more general tmpfiles.d(5) mechanism.

This commit moves to using the RuntimeDirectory= mechanism and removes
the obsolete ExecStartPre/mkdir code.

References-commit: adb5f0d278
2015-09-22 04:41:00 +00:00
Raphael Lechner fbacd42c98 FS-5660 - add freeswitch.py to the freeswitch-mod-python debian package 2015-09-17 21:07:40 +02:00
Travis Cross 9cff1eb71f Cleanup non-semantic whitespace in debian/ 2015-09-15 22:36:23 +00:00
Travis Cross 9f99b12e76 Fix debian/bootstrap.sh from whitespace error
Commit e5d247d (packaging python-esl) added trailing whitespace to the
package definition.  Our trivial parser in the bootstrap script is
sensitive to this, so the change rather broke debian/bootstrap.sh.

This fixes commit e5d247df29.
2015-09-15 22:04:19 +00:00
William King 39ad66380d FS-8165 #resolve Fix debian build depends for mod_hiredis 2015-09-15 10:43:26 -07:00
Ken Rice e3e8c99567 FS-8072 #resolve fix a missed space 2015-09-09 10:34:01 -05:00
William King 5c8c4ebc62 FS-7697 chown the /etc/freeswitch/tls directory so that the freeswitch user can have read/write for TLS certificate generation 2015-09-08 14:17:33 -07:00
William King f769c692d1 FS-7168 update Debian packages so that FS core libraries are setup as runtime deps 2015-09-08 11:58:28 -07:00
Stanislav Sinyagin e45837198c debian/README.source updated
In Jessie, pbuilder disables the network by default, and we need it
to build our packages. Also currently only Jessie debs are built successfully,
and building for wheezy fails because of missing video libraries.
2015-08-24 10:27:23 -04:00
Stanislav Sinyagin a083b881f3 debian/bootstrap.sh: excluded few modules that fail to compile
applications/mod_mp4v2
codecs/mod_openh264
event_handlers/mod_smpp
formats/mod_webm
2015-08-24 08:52:44 -04:00
Stanislav Sinyagin e78c440585 FS-8019 debian/util.sh ignored -T option
Fixed the handling of -T and -t, and added debian/apt_sources.list
    that needs to build 1.7 master. The following commands need to be
    used to build Jessie packages:

    apt-get update && apt-get install -y git curl
    mkdir -p /usr/src/freeswitch
    cd /usr/src/freeswitch/
    git clone https://stash.freeswitch.org/scm/fs/freeswitch.git /usr/src/freeswitch/src
    curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
    cd /usr/src/freeswitch/src
    ./debian/util.sh build-all -i -z1 -aamd64 -cjessie -T /usr/src/freeswitch/src/debian/apt_sources.list
2015-08-22 20:22:06 -04:00
Federico Castro e5d247df29 FS-6972 Packaging a version of the python ESL wrapper for python. 2015-08-21 10:27:59 -03:00
Stanislav Sinyagin cd68e0fe1b FS-7909 working directory is now /var/log/freeswitch
This is where core is dumped by default
2015-07-31 02:13:55 +02:00
Miguelo adb5f0d278 FS-7130 make /run/freeswitch persistent, so it will start under systemd 2015-07-22 09:36:09 +02:00
William King 8b10cd3d00 Broke build.
Revert "FS-7130 make /run/freeswitch persistent, so it will start under systemd"

This reverts commit bdfb8363f5.
2015-07-21 13:32:35 -07:00
Miguelo Sana bdfb8363f5 FS-7130 make /run/freeswitch persistent, so it will start under systemd 2015-07-13 11:33:46 +02:00
Luis Azedo eaf6430e0d FS-7776 #resolve add mod_kazoo to build system 2015-07-06 23:13:00 +01:00
William King c431ed1ff9 FS-7697 #resolve Now when we install FS by default the tls directory will also be created. 2015-06-19 16:39:44 -07:00
William King 33c723e839 FS-7669 #resolve There was already a postinst file, and I missed it. 2015-06-17 20:40:19 -07:00
William King 5ab9d46691 Revert "FS-7669 #resolve now if you don't have the /etc/freeswitch directory, we will install the default packages for you. If you already have this directory, we'll let you deal with your own configs."
This reverts commit 5550f37fe0.
2015-06-17 20:38:10 -07:00
Michael Jerris 67d1d1df8f FS-7605 remove surplus config flags and fix rundir and logdir set under fhs 2015-06-17 21:55:40 -05:00
William King 19de3b0f81 FS-7605 now depends on libyuv and libvpx properly 2015-06-17 19:07:39 -07:00
William King c7eb3abc16 Revert "FS-7605 remove surplus config flags"
This reverts commit 157cac97e3.
2015-06-17 17:30:51 -07:00
William King 5550f37fe0 FS-7669 #resolve now if you don't have the /etc/freeswitch directory, we will install the default packages for you. If you already have this directory, we'll let you deal with your own configs. 2015-06-17 15:46:07 -07:00
William King 8d6c6f82e2 FS-7605 Fix typo 2015-06-17 14:49:15 -07:00
William King 157cac97e3 FS-7605 remove surplus config flags 2015-06-17 14:37:18 -07:00
Travis Cross 7f6f139fe5 Remove mod_celt and mod_vp8 remnants
Jeff added these directories back in commit 345e50d which causes our
debian/bootstrap.sh to add these back to debian/control-modules.
2015-06-17 19:35:13 +00:00
Travis Cross 0bc65d1547 Cleanup new module additions to debian
When the debian/control-modules file is properly ordered and
formatted, running (cd debian && ./bootstrap.sh) will result in no
changes to the debian/control-modules file and the
debian/control-modules.gen file being automatically deleted.  If there
is a debian/control-modules.gen file there, it should be used as a
start for a new debian/control-modules file after cleaning up the the
descriptions and adding long descriptions for each item.
2015-06-17 18:46:28 +00:00
William King e0edc956d8 FS-7605 #resolve 2015-06-16 20:24:05 -07:00
William King 601a1e8c1a FS-7609 enable building of mod_sangoma_codec 2015-06-16 13:42:30 -07:00
William King 95a941759c FS-7338 fix when the build system was deleting the keyring before it was fully finished with it. 2015-06-15 15:17:18 -07:00
William King 7432620bee FS-7338 adding debian packaging for several new modules, as well as handle system lib change for a handful of modules 2015-06-12 15:45:09 -07:00
William King 8e058adecd FS-7338: Don't download the getlib version for debian packages, instead use the system libs. Debian build systems should include the public repo as an additional repo to supply these packages. 2015-06-11 20:12:56 -07:00
William King 67ed8f4260 FS-7373 also expose the custom repo and key path to the build-all command too 2015-06-10 22:00:46 -07:00
Ken Rice 02a0a2a068 FS-7607 #resolve #comment Update URLs to reflect https protocol on freeswitch.org websites and update additional URLs to avoid 301 redirects. 2015-06-03 15:23:40 -05:00
William King 69d4e1d53a FS-7426 shouuld not be disabled on all, only squeeze and wheezy 2015-06-01 17:51:15 -07:00
Michael Jerris d376150e0e FS-7488: [mod_managed] fix build error and enable on debina packages 2015-05-28 12:47:26 -05:00
Michael Jerris e2236ad559 FS-7508: remove mod_vp8 which has been replaced by mod_vpx 2015-05-28 12:47:25 -05:00
Michael Jerris 91a6fc82c0 FS-7338: remove libsndfile from tree, use system lib instead
FS-7338: remove libsilk from tree, use system lib instead
FS-7338: change to always use system liblua
FS-7338: remove libbroadvoice from tree, use system lib instead
FS-7338: remove libilbc from tree, use system lib instead
FS-7338: remove libs using system libs from bootstrap
FS-7338: remove libg722_1 from tree, use system lib instead
FS-7338: remove mod_celt, it has be superseded by mod_opus
FS-7338: remove libcodec2 from tree, use system lib instead
FS-7338: remove libopus from tree, use system lib instead
FS-7338: remove libsoundtouch build from tree, use system lib instead
FS-7338: remove flite build from tree, use system lib instead
FS-7338: remove openldap build from tree, use system lib instead
FS-7338: remove libmongoc build from tree, use system lib instead
FS-7338: remove mod_mongo deps that are no longer actually required
FS-7338: remove some dup demo modules and don't include demo code in packages
2015-05-28 12:47:24 -05:00
Michael Jerris 535cfbbd4f FS-7426: #resolve fix typo in control-modules for debian build 2015-04-13 15:52:43 -04:00
William King 39728a9888 FS-7426 fix the debian packaging for wheezy when the newer librabbitmq1 package isn't installed 2015-04-10 09:07:08 -07:00
William King 3f685a25a0 Adding debian packaging for mod_amqp 2015-04-03 15:51:33 -07:00
William King 4738da1325 When using the debian/utils.sh script to build FreeSWITCH packages,
add the ability to pass -T[path to custom sources path] and -K[custom keyfile path]
options to build the FS packages with a custom sources and keyring path.

FS-7373
2015-03-16 09:35:36 -07:00
Michael Jerris 3a70750b42 FS-7340: remove all build system references to json-c because we are no longer using it anywhere 2015-03-04 14:06:18 -05:00
William King 7437b3112f Debian rules update to handle a pre-bootstrapped orig file 2015-02-16 16:04:50 -08:00
Markus Lindenberg 5c5b9fcd21 If available, use libjpeg-turbo in Debian build dependencies
Debian is transitioning to libjepg-turbo in Jessie.

See the libjpeg-turbo transition plan for details:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754988

FS-7151 #resolve
2015-01-15 09:21:32 +01:00
Brian West adb0de93c5 #comment update debian utils for flite 2.0.0 #resolve 2015-01-14 11:08:53 -06:00
Travis Cross 2a05f8c39c Drop limit on stack size via systemd
Setting the 240k hard limit here is too aggressive and causes FS to
crash on startup.
2015-01-05 07:11:40 +00:00