Ticket #695 (new Feature Requests)

Opened 7 years ago

Last modified 4 months ago

FreeBPX is Linux specific

Reported by: pneumann@gmail.com Assigned to: tm1000
Priority: minor Milestone: 2.11
Component: Installation Version: 2.11-branch
Keywords: Installation SED path Cc: GameGamer43
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Hello.

I was trying to port FreePBX to FreeBSD, and find myself to patch some things that are linux specific. Djeli told me you guys were about to take a new version out. I hope you can fix somethings for it like; - detect the bash/php/perl binaries. i.e. "#!/usr/bin/env php" instead of just "#!/usr/bin/php" - freepbx, make his own asterisk.conf, wich overrides the ones that asterisk installs. (it install a linux specific one) - install_amp has hard-coded paths too

i was doing a freebsd port/package, but its not ready. maybe its better to wait for your new release, and start from there

thanks!

Phillip.

Change History

04/25/06 14:14:04 changed by RyanCourtnage

  • milestone set to 2.2.

Phillip,

Would you be interested in creating a patch that corrects these issues?

At the very least, we would require a comprehensive list of the items that cause problems.

Thanks,

04/25/06 15:25:43 changed by RyanCourtnage

  • type changed from Bugs to Feature Requests.

05/28/06 09:19:22 changed by wozto1s

  • milestone deleted.

10/22/06 16:06:39 changed by diego_iastrubni

  • owner set to diego_iastrubni.
  • milestone set to 2.2.

I will close this bug for V 2.2

10/23/06 04:26:09 changed by diego_iastrubni

  • status changed from new to assigned.

all php cli scripts use the "/usr/bin/env php". do we need to do this also for perl scripts in freeBSD...? or "/usr/bin/perl" good enough...?

shell scripts (we do not use any shell scripts, but in theory) should use "/bin/sh". is this a good assumption for freeBSD?

10/23/06 04:56:56 changed by diego_iastrubni

About the copied asterisk.conf... look at the code:

outn("Checking for ".ASTERISK_CONF."..");
if (!file_exists(ASTERISK_CONF)) {
        out(ASTERISK_CONF." does not exist, copying default");
        copy("asterisk.conf", ASTERISK_CONF);
}
out("OK");

This means that if the installs runs after asterisk has been installed properly (and a sane asterisk.conf is installed) a new copy is not installed. I suggest you ship your own asterisk.conf anyway, since even in Linux, not everyone installs asterisk into the same locations (this violates Debian fsh for example).

As far as I see, the only problem left, is the hardcoded locations of perl scripts. Give me an accepatble solution, and I can close this bug as "fixed".

12/03/06 11:57:14 changed by p_lindheimer

  • milestone changed from 2.2 to 2.3.

01/08/07 14:46:49 changed by

  • milestone deleted.

Milestone 2.3 deleted

01/08/07 15:05:56 changed by vgster

  • milestone set to 2.3.

01/17/07 02:52:14 changed by diego_iastrubni

  • engine_version changed.
  • svn_rev changed.

Look also at ticket:761

I am thinking closing this as duplicate of ticket:761

Is this bug still valid ? is it fixed? (I think so)

04/18/07 01:33:41 changed by diego_iastrubni

See changeset:3925.

Dud you will have to path the files on install (a simple sed, or a full patch). Sorry.

07/05/07 16:17:35 changed by WAudette

  • keywords set to Installation SED path.
  • priority changed from blocker to minor.
  • milestone changed from 2.3 to 3.0.

This ticket was brought up again so I've added some ongoing notes.

Quote from Groogs: I won't address it until I have to rework the whole installer, which I would sorta like to do (theres a couple tickets about mapping, etc) but its low priority right now.

WAudette...

11/13/07 18:39:56 changed by WAudette

  • confirmation set to Unreviewed.
  • version deleted.
  • milestone deleted.

11/15/07 14:01:28 changed by WAudette

  • confirmation changed from Unreviewed to Confirmed.

07/24/08 21:01:36 changed by ryppn

  • milestone set to Cut Line.

08/17/08 18:10:35 changed by robin

I have had issues with paths also. We have asterisk/freePBX 2.4.1 installed in a freebsd jail environment. I have had issues with the backup module /usr/local/share/asterisk/bin/dumpastdb.php not found tar: /usr/local/share/asterisk/bin: Cannot stat: No such file or directory Can't exec "/bin/tar": No such file or directory at /usr/local/lib/asterisk/bin/ampbackup.pl

Thanks Robin

01/13/09 18:16:58 changed by dzone

If the path to the php interpreter is going to be hard-coded, then it seems it would be a trivial matter for the install_amp script to ask the user which one to use?

For those who may have more than one version of php on their system, the hard-coded location can be a problem, yet it would be no problem at all if the user was given an opportunity to locate a specific interpreter at installation time.

This would mean that a token replacement step is required after script updates, but that seems to be a small price for a more general solution.

01/16/13 04:36:22 changed by tm1000

  • cc changed from pneumann@gmail.com to GameGamer43.
  • owner changed from diego_iastrubni to tm1000.
  • version set to 2.11-branch.
  • status changed from assigned to new.
  • milestone changed from Undetermined to 2.11.

Let's review and complete this finally