Commit Graph

118 Commits

Author SHA1 Message Date
Andrey Volk ccc4ae282a FS-11880: [Core,mod_pgsql] Remove native PostgreSQL support from the core, add mod_pgsql database module. 2019-07-18 00:20:50 +04:00
Mike Jerris 76b3bb586b FS-11494: [Debian] force build of iksemel before modules to avoid -j race condition on dep lib build 2018-10-31 15:10:53 -04:00
Andrey Volk e77c445c3a FS-11396: [mod_v8] Use proper libv8 naming. 2018-09-19 21:58:03 +03:00
Mike Jerris f82e4a5944 Revert "FS-11209: [Debian] openssl linking"
This reverts commit 0342762f59.
2018-08-31 18:29:35 +00:00
Muteesa Fred 0342762f59 FS-11209: [Debian] openssl linking 2018-07-24 07:21:55 +00:00
Stanislav Sinyagin 135d13a0a1 FS-5936 ESL.pm packaged for Debian 2016-05-03 00:39:46 +02:00
Stanislav Sinyagin ce6af25013 FS-9075 fixup for systemd and sysvinit 2016-04-25 17:29:35 +02:00
Ken Rice 0557e25b67 FS-9075 [Debian Packaging] #resolve freeswitch-all package rework
the freeswitch-all package should be operationally the same as
freeswitch-meta-all it should not conflict with any other freeswitch
pacakge it should install them all via dependancy. This patch does just
that... There is probably a better way to do it, but this is needed to
avoid issues where a dep may have been added to a sub-module (say
mod_av, but it was not added to the freeswitch-all package. This will
also allow for someone to install freeswitch-all or any part there of
without forcing a deinstall of other parts of the over all FreeSWITCH
software package.
2016-04-14 13:33:36 -05:00
Stanislav Sinyagin 77f52bb6a8 FS-7928 FS-7618 systemd and package build improvements
debian/bootstrap.sh:
 * only build one of freeswitch-sysvinit or freeswitch-systemd
 * squeeze is removed from supported releases
 * added stretch to supported releases
 * avoid_mods_wheezy extended to modules which fail to build on wheezy
 * use systemd by default for future distros
 * new command-line option -v to enforce sysvinit
 * added dependency on dh-systemd for systemd-powered distros
 * freeswitch-init is now a virtual package
 * freeswitch-sysvinit and freeswitch-systemd are set to conflict with each other

debian/freeswitch.postinst:
 * no need to call systemctl explicitly. dh-systemd does it in a standard way

debian/rules:
 * integrated dh-systemd in override_dh_installinit

debian/freeswitch-systemd.freeswitch.default renamed to
freeswitch-sysvinit.freeswitch.default:
 * /etc/default/freeswitch is not installed by freeswitch-systemd, but still
   respected if there is a need to modify the startup options

debian/freeswitch-systemd.freeswitch.service:
 * proper expansion of DAEMON_OPTS
2015-10-13 22:36:37 +02:00
Stanislav Sinyagin b2bcc8b2dd FS-8194 FS-7910 FS-7937 systemd service improvements
freeswitch-systemd.freeswitch.service:
* starting the daemon as root and switchig to freeswitch user
* respecting the options in /etc/default/freeswitch
* RuntimeDirectory parameter is replaced with a tmpfiles.d entry
  because /run/freeswitch has to be owned by freeswitch user
* instructions how to start it as non-root

debian/freeswitch-systemd.freeswitch.tmpfile:
* this defines the PID directory with correct permissions

debian/bootstrap.sh, debian/rules:
* proper handling of freeswitch.service
* deleted debian/freeswitch-systemd.install because it caused an error
  in dh_install because it's run before dh_installinit
* renamed: freeswitch-sysvinit.freeswitch.default -> freeswitch-systemd.freeswitch.default
  because sysvinit support will eventually die out

debian/freeswitch.postinst:
* run "systemctl enable freeswitch" if systemctl is available

CAVEAT: only one option is supported in /etc/default/freeswitch because the
variable ${DAEMON_OPTS} is expanded as a single token. This will be fixed
as soon as freeswitch-sysvinit is removed from freeswitch-all.
2015-10-10 16:08:11 +02: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
Travis Cross 9cff1eb71f Cleanup non-semantic whitespace in debian/ 2015-09-15 22:36:23 +00:00
Federico Castro e5d247df29 FS-6972 Packaging a version of the python ESL wrapper for python. 2015-08-21 10:27:59 -03: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
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 c7eb3abc16 Revert "FS-7605 remove surplus config flags"
This reverts commit 157cac97e3.
2015-06-17 17:30:51 -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
William King e0edc956d8 FS-7605 #resolve 2015-06-16 20:24:05 -07:00
William King 7437b3112f Debian rules update to handle a pre-bootstrapped orig file 2015-02-16 16:04:50 -08:00
Travis Cross d88bae1a62 Support optional debian parallel builds
With this commit we allow getting `make -jN` behavior by setting
`parallel=N` in `DEB_BUILD_OPTIONS`.  Setting `parallel=` will result
in `make -j` being run (i.e. no limit on the number of jobs).  The
default is to run one job at a time; this is still the safest bet when
building all modules.

Thanks to Peter Wu for suggesting a different way to do this.

ref: https://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
2014-12-25 07:13:17 +00:00
Peter Wu 51f61c7834 debian: Remove duplicate clean command
`dh clean` invokes `dh_testdir`, `dh_auto_clean` and `dh_clean`. We
don't need to invoke dh_clean twice.

Acked-by: Travis Cross <tc@traviscross.com>
2014-11-07 19:02:29 +00:00
Travis Cross c0ec552268 Set new `cache_dir` for debian 2014-09-04 21:09:46 +00:00
Peter Olsson c8fa0f0c4b mod_v8: Use parallel build by default. Use configure flag "--disable-parallel-build-v8" to disable it. It's disabled by default for Debian build scripts, since parallel build has some issues with cowbuilder. 2014-03-23 09:25:41 +01:00
Travis Cross 046df6be67 Export V=1 for debian builds
Now that we're using AM_SILENT_RULES this needs to be set so we can
see what's going on in our build logs.
2014-03-19 21:07:21 +00:00
Travis Cross db0c3ab403 Add some hardening to the debian build 2014-02-09 23:51:42 +00:00
Travis Cross 0c41db9fb1 Add support for setting custom LDFLAGS 2014-02-09 23:49:29 +00:00
Travis Cross 4106471020 Reorder build flags variables 2014-02-09 23:49:29 +00:00
Travis Cross 78be57fb98 Use simply-expanding variables for build flags 2014-02-09 23:49:29 +00:00
Peter Olsson 2e32d10503 mod_v8: Added configure flag --enable-static-v8 to enable static linking of the V8 lib. Also enabled this flag for the Debian packaging system. Please note the static linking has only been verified on Linux so far 2014-01-20 11:33:38 +01:00
Travis Cross 9501911964 Build debian packages verbosely 2014-01-20 00:31:25 +00:00
Travis Cross 8099af6564 Cleanup whitespace in debian/ 2013-12-10 03:53:17 +00:00
Travis Cross 9caae64f37 Correct shlibs of freeswitch-all wrt libfreeswitch1
The freeswitch-all package provides libfreeswitch1, so any
shlibs-generated dependency should be for libfreeswitch1 rather than
freeswitch-all.

Because dh_shlibdeps / dpkg-shlibdeps searches for shlibs files in
debian/*/DEBIAN/ it was sometimes using freeswitch-all rather than
libfreeswitch1 to satisfy dependencies for freeswitch.so.1.

FS-6029 --resolve
2013-12-09 09:22:49 +00:00
Travis Cross 37648ced3e Add freeswitch-all debian package
This package bundles all modules and extras into a single DEB.  This
can have some advantages in terms of convenience and speed of apt
operations.
2013-10-18 19:52:16 +00:00
Travis Cross 1784663d35 Use --with-storagedir in Debian build 2013-06-06 17:34:03 +00:00
Travis Cross 8ae26362e4 Show CPPFLAGS from debian/rules 2013-04-23 10:25:29 +00:00
Travis Cross b6ca76e443 Fix quoting issue in debian/rules
This amends commit f93c3f70bf
2013-04-23 10:13:01 +00:00
Travis Cross f93c3f70bf Set compiled-in storage_dir and certs_dir defaults for Debian 2013-04-21 16:44:43 +00:00
Travis Cross f15ecbb8af Use -g3 rather than -ggdb3 for debian
On a GNU/Linux system -g3 and -ggdb3 should produce the same result
under gcc, but clang only recognizes -g3.
2013-02-10 06:20:46 +00:00
William King 703b2102c5 Adding debian core pg support 2012-12-07 12:17:19 -08:00
Travis Cross fa18764474 Build debian packages with -fPIC
By building globally with -fPIC we can get mod_flite to build.
2012-11-12 19:56:27 +00:00
Michael Jerris d565fdece5 revert 6f9467992a 2012-09-24 15:35:35 -04:00
Travis Cross 6f9467992a Use the modest ClueCon nag for Debian builds 2012-09-23 07:49:26 +00:00
Travis Cross 12efacb3c6 debian: Add mechanism to set C/C++ compiler 2012-06-24 08:49:59 +00:00
Travis Cross 9f578ca440 debian: use bootstrap.sh -j
We believe it to be safe now.  In test run on multi-core machines it
is producing bit-for-bit identical result compared to the non-parallel
invocation.
2012-05-28 18:28:23 +00:00
Travis Cross 7b5a9193aa debian: remove support for building sounds and music
The various sounds and music have their own source packages now as
they have their own conventions and version numbers which fortunately
update less frequently than FreeSWITCH itself.
2012-05-24 17:27:23 +00:00
Travis Cross 3bc4aa39fe debian: handle copyright information for pocketsphinx
Debian expects all copyright information to be in one place, so we
copy the license details to debian/copyright and remove the COPYING
files when we install components.
2012-05-13 20:54:32 +00:00
Travis Cross b008f8c9d5 debian: attribution 2012-05-11 00:35:17 +00:00