[Freeswitch-users] Build script for Ubuntu 12.04 or Debian

Brian Foster bdfoster at davri.com
Tue Jul 30 06:10:03 MSD 2013


This script does not do any packaging, it installs from source (more
specifically, v1.2.stable branch). It installs dependencies identified in
the Debian install instructions on the wiki, enters the right directories,
builds it all, sets permissions, and has an option in there to install the
init script. Basically, it follows the instructions posted on the wiki on
how to install using git. At the time I made the script, packaging FS on
Debian was still alpha. Today, I think the packaging bit has come a long
ways, but it still doesn't seem reliable. Granted, it's not the greatest
script. Many things could be improved on. At the time, this was the best
way to do it taking into account my experience and education on the matter.
It was used on automated builds directly after Debian was installed many
many times. I could have used puppet, but at the time we didn't have that
infrastructure or the money to build it with (we do now, but I work for
another company, so...).

So the point is this: my script builds FS using community-evaluated
instructions without packaging and directly from Git. On top of doing
automated installs, it's a learning tool.

And just because I use it does not mean others have to. Yes, I throw it out
there every so often, and I will continue to until there is a better option
or the packaging method becomes the norm, standard, and/or is stable
enough. It's a tool for others and myself to use. And it works (even on
Wheezy as I discovered today).

Thank you,

Brian Foster
Project Manager/Owner's Rep.
Davri Investments, Inc.
O: 317-787-2686 x2102
M: 317-600-9753
E: bdfoster at davri.com
Indianapolis, Indiana

Sent from a mobile device.
On Jul 29, 2013 9:38 PM, "Cal Leeming [Simplicity Media Ltd]" <
cal.leeming at simplicitymedialtd.co.uk> wrote:
>
> Please let me know if I'm missing something here but, I'm still not
entirely clear on what the problem is, and this thread doesn't seem to be
going anywhere.
>
> The script provided by Brian isn't going to be at all compatible with
automated build systems, and is just wrapping the same workflow from [2]
and [3]. The builder I wrote on github [1], is one step closer but has
bypassed all of the built-in debian stuff and as such is considered
alpha/deprecated... although it supported a cleaner way of building (using
pbuilder), it ultimately increased complexity and deviated from the
standard way of doing things.
>
> As someone who has attempted to make his own build scripts for FS, I can
tell you now that it is counter-productive and you should stick with the
build system that is currently in master. If you think it can be improved,
then feel free to submit patches. Although I agree that getting to grips
with building FS is not entirely straight forward, packaging is a skill
within itself and there's a reason why finding good package maintainers is
a hard thing to do.
>
> If you are looking for an automated installer, then your best bet is to
build packages and then use something like chef/puppet/salt to control
deployment.
>
> These scripts (much like the one I wrote on github) are just wrapping an
already perfectly functional set of tools, and as shown before, FS compiles
absolutely fine on Wheezy given the command flow I specified before [2]. If
this is not the case then please can you provide full debug logs that show
us where the problem is happening so we can help.
>
> Cal
>
> [1] https://github.com/foxx/freeswitch-debian
> [2] http://pastebin.com/gCgEmH90
> [3] https://wiki.freeswitch.org/wiki/Debian_packages_buildscript
>
>
>
> On Tue, Jul 30, 2013 at 1:51 AM, Brian Foster <bdfoster at davri.com> wrote:
>>
>> There must be a reason why I still use my script when installing FS on
Debian...
>>
>> Thank you,
>>
>> Brian Foster
>> Project Manager/Owner's Representative
>> Davri Investments, Incorporated
>> P: +1-317-787-2686
>> M: +1-317-600-9753
>> Indianapolis, Indiana
>>
>>
>> On Mon, Jul 29, 2013 at 8:26 PM, Ken Rice <krice at freeswitch.org> wrote:
>>>
>>> there are official packaging scripts in the src tree btw... we use
these fornupdating the projects repo
>>>
>>> Ken
>>> Sent from my iPad
>>>
>>> On Jul 29, 2013, at 19:15, Brian Foster <bdfoster at davri.com> wrote:
>>>
>>>> Karl,
>>>>
>>>> Which module is that dependency for?
>>>>
>>>> Thank you,
>>>>
>>>> Brian Foster
>>>> Project Manager/Owner's Representative
>>>> Davri Investments, Incorporated
>>>> P: +1-317-787-2686
>>>> M: +1-317-600-9753
>>>> Indianapolis, Indiana
>>>>
>>>>
>>>> On Mon, Jul 29, 2013 at 1:59 PM, Karl Schmidt <karl at xtronics.com>
wrote:
>>>>>
>>>>> I did find one of the missing dependencies
>>>>>
>>>>> libdistro-info-perl
>>>>>
>>>>>
>>>>>
--------------------------------------------------------------------------------
>>>>> Karl Schmidt                                  EMail Karl at xtronics.com
>>>>> Transtronics, Inc.                              WEB
http://secure.transtronics.com
>>>>> 3209 West 9th Street                             Ph (785) 841-3089
>>>>> Lawrence, KS 66049                              FAX (785) 841-0434
>>>>>
>>>>> Nothing defines humans better than their
>>>>> willingness to do irrational things in the pursuit of
>>>>> phenomenally unlikely payoffs. This is the
>>>>> principle behind lotteries, dating, and religion.
>>>>>              --Scott Adams
>>>>>
>>>>>
--------------------------------------------------------------------------------
>>>>>
>>>>>
_________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://wiki.freeswitch.org
>>>>> http://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>
>>>>
>>>>
_________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> 
>>>> 
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>
>>>
>>>
_________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130729/b8ec9636/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list