Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

new port config in /etc?

 
   FreeBSD Hosting (Home) -> FreeBSD Ports RSS
Next:  FreeBSD Port: maia-1.0.2a_3  
Author Message
Brad Waite

External


Since: May 01, 2010
Posts: 1



(Msg. 1) Posted: Sat May 01, 2010 11:19 am
Post subject: new port config in /etc?
Archived from groups: mailing>freebsd>ports (more info?)

I'm attempting to port FreePBX (asterisk GUI) which is built for CentOS. The config file is hard coded in a number to
be "/etc/amportal.conf". I changed all occurrences to "${LOCALBASE}/etc/amportal.conf" and made patch files for the port.

That worked for the original build, but FreePBX has a built-in upgrade feature which can replace any of those patches
files with upgraded versions. Of course, the new files are using the old "/etc/amportal.conf".

What's the best way to handle this? Should I have the port create a symlink from /etc/amportal.conf to
/usr/local/etc/amportal.conf? That seems to be the simplest solution, but also vaguely feels like The Wrong Thing(tm).

Trying to patch the newly upgraded files would be a nightmare. I could try to do a search/replace on the known
directories, but there's no way to be sure there aren't new dirs created and used in the upgrade. Obviously a recursive
search from / is impractical. And what would trigger this replacement anyway? I could build it in to the initial
version via patch file, but that file could be updated in the upgrade.

In a similar situation, there's a handful of files that have a /bin/bash or /bin/perl shebang that were upgraded as well.

I was initially surprised there wasn't an existing port for FreePBX, but I'm not so surprised anymore. This is my first
porting attempt, and it's nearly enough to make me want to ditch FreeBSD for my asterisk and install the all-in-one
CentOS/Asterisk/FreePBX. That said, I'm extremely loyal to FBSD and loathe the thought of that.

Thanks in advance for any help, guys!

Brad Waite
_______________________________________________
freebsd-ports.DeleteThis@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

 >> Stay informed about: new port config in /etc? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
FreeBSD Port: subversion config - Yesterday when I upgraded subversion from 1.4.2 to 1.4.3 with portupgrade I noticed that I couldn't restart Apache because the new version was built without mod_dav_svn. This is because I originally built subversion with make -DWITH_MOD_DAV_SVN..

Port: while installing gnome2: "gnome-config: not found" ?? - Hi, I'm installing from scratch gnome2 (not upgrading!), which I do by installing the meta-port (see below). This goes on for some time and then ends with an error, that it cannot find "gnome-config". Whaah, I'm installing gnome.... Is there...

PATCH: Adding config-recursive to bsd.port.mk - This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1100214633-1102998278=:10154 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed I got tired...

Config info - --nextPart19468492.iLbdBWPo7p Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can someone tell me where the config options for a port are actually stored? TIA Beech =2D-=...

config error - This message is in MIME format. --=_2iotvs33546c Content-Type: text/plain; charset=ISO-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jaroslav =A9t=ECp=E1n M=ECstsk=FD =FA=F8ad Z=E1b=F8eh Masarykovo n=E1m. 6 789 01 ....
   FreeBSD Hosting (Home) -> FreeBSD Ports All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]