Install Process for Gentoo

This is a work in progress

Notes
Basic gentoo knowledge is required, if you don't know what a USE flag then this will be hard to follow.

Look the the requirements in the INSTALL file and get your apache/php flags correct and reemerge dev-lang/php if needed.

emerge asterisk >= 1.2 - http://gentoo-portage.com/net-misc/asterisk

and asterisk-addons - http://gentoo-portage.com/net-misc/asterisk-addons

note: as of this writing the correct ebuild is asterisk-1.2.9_p1

Both are masked with ~x86 so (if you're not on x86 modify as needed) umask them with

`echo "net-misc/asterisk ~x86" >> /etc/portage/package.keywords`

and

`echo "net-misc/asterisk-addons ~x86" >> /etc/portage/package.keywords`

To emerge:

`emerge asterisk asterisk-addons`

Note: I have `net-misc/asterisk zaptel speex mysql -vmdbmysql` in
my package.use for asterisk but you may need otherwise, read the use
flags descriptions at gentoo-portage.com

This will get asterisk to be ready to futher configure.

Amportal Issues:

  • It appears some gentoo paths are not compatible with amportal:

in /usr/sbin/safe_asterisk change

ASTSBINDIR=/sbin to

ASTSBINDIR=/usr/sbin

  • amportal can't run the safe_opserver because the asterisk user on my machine had /bin/false for it's shell

check in /etc/passwd and make the asterisk user have /bin/bash as the shell if it's not already such.

I also needed asterisk ownership on the htdocs folder above the freepbx files.

  • note: this article used to tell you how to implement it
    with lighthttpd but I've cleared out that info as it is more specific
    than it needs to be and novices may make serious mistakes following
    them.

Comments

chrisbaran.net's picture

I just got done writing this up: http://blog.chrisbaran.net/2009/03/04/freepbx-on-gentoo/

This is a more detailed and complete version of these instructions.

Enjoy!