Re: ports modifying system setups

2007-11-25 Thread Chuck Robey
Gergely CZUCZY wrote: On Wed, Nov 21, 2007 at 11:43:35PM -0800, Doug Barton wrote: Gergely CZUCZY wrote: echo 'sevice_enable=YES' /etc/rc.conf.local Yes, I think we all know how to go about this manually. The question at hand is whether or not it's possible or desirable to create the

Re: ports modifying system setups

2007-11-22 Thread Doug Barton
Gergely CZUCZY wrote: echo 'sevice_enable=YES' /etc/rc.conf.local Yes, I think we all know how to go about this manually. The question at hand is whether or not it's possible or desirable to create the possibility of doing it for the user at port install time. If what you're trying to say

Re: ports modifying system setups

2007-11-22 Thread Gergely CZUCZY
On Wed, Nov 21, 2007 at 11:43:35PM -0800, Doug Barton wrote: Gergely CZUCZY wrote: echo 'sevice_enable=YES' /etc/rc.conf.local Yes, I think we all know how to go about this manually. The question at hand is whether or not it's possible or desirable to create the possibility of doing it

Re: ports modifying system setups

2007-11-22 Thread Gergely CZUCZY
On Thu, Nov 22, 2007 at 12:43:50AM -0800, Doug Barton wrote: On Thu, 22 Nov 2007, Gergely CZUCZY wrote: Gergely CZUCZY wrote: echo 'sevice_enable=YES' /etc/rc.conf.local I said, that this can be done from the Makefile as well, if that OPTIONS of yours is enabled. But that would

Re: ports modifying system setups

2007-11-22 Thread Doug Barton
On Thu, 22 Nov 2007, Gergely CZUCZY wrote: Gergely CZUCZY wrote: echo 'sevice_enable=YES' /etc/rc.conf.local I said, that this can be done from the Makefile as well, if that OPTIONS of yours is enabled. But that would violate the principle that ports shouldn't touch files in /etc.

Re: ports modifying system setups

2007-11-22 Thread RW
On Wed, 21 Nov 2007 22:48:59 -0800 Doug Barton [EMAIL PROTECTED] wrote: RW wrote: On Wed, 21 Nov 2007 12:14:17 -0800 Doug Barton [EMAIL PROTECTED] wrote: ... I have for some time wanted to add support to rc.subr for a /usr/local/etc/rc.conf.d so that ports

Re: ports modifying system setups

2007-11-21 Thread Doug Barton
Scot Hetzel wrote: On Sun, Nov 18, 2007 at 08:17:36PM -0500, Chuck Robey wrote: activate the port, and if so, the port would add a line of the form 'portname_enable=YES', and this would make your new port operate. Well, it seems from what I see of my new system, that this is no longer the

Re: ports modifying system setups

2007-11-21 Thread RW
On Wed, 21 Nov 2007 12:14:17 -0800 Doug Barton [EMAIL PROTECTED] wrote: ... I have for some time wanted to add support to rc.subr for a /usr/local/etc/rc.conf.d so that ports could install sensible defaults for rc.conf, What's the advantage of doing that over having

Re: ports modifying system setups

2007-11-21 Thread Doug Barton
RW wrote: On Wed, 21 Nov 2007 12:14:17 -0800 Doug Barton [EMAIL PROTECTED] wrote: ... I have for some time wanted to add support to rc.subr for a /usr/local/etc/rc.conf.d so that ports could install sensible defaults for rc.conf, What's the advantage of doing

Re: ports modifying system setups

2007-11-21 Thread Gergely CZUCZY
On Wed, Nov 21, 2007 at 10:48:59PM -0800, Doug Barton wrote: RW wrote: On Wed, 21 Nov 2007 12:14:17 -0800 Doug Barton [EMAIL PROTECTED] wrote: ... I have for some time wanted to add support to rc.subr for a /usr/local/etc/rc.conf.d so that ports could install

Re: ports modifying system setups

2007-11-19 Thread Scot Hetzel
On 11/18/07, Edwin Groothuis [EMAIL PROTECTED] wrote: On Sun, Nov 18, 2007 at 08:17:36PM -0500, Chuck Robey wrote: activate the port, and if so, the port would add a line of the form 'portname_enable=YES', and this would make your new port operate. Well, it seems from what I see of my new

Re: ports modifying system setups

2007-11-19 Thread Chuck Robey
Naram Qashat wrote: Also a good thing to point out is that portupgrade can be configured to automatically start or stop a port's daemon via it's /usr/local/etc/rc.d script, which still relies on having the appropriate line in /etc/rc.conf to tell the rc.d script to run, but it is helpful for

Re: ports modifying system setups

2007-11-19 Thread Naram Qashat
In the pkgtools.conf file that portupgrade installs, there's two sections, BEFOREINSTALL and AFTERINSTALL. In BEFOREINSTALL, you could put the following in to make it try to stop the service if there's an rc script for the port: '*' = proc { |origin| cmd_stop_rc(origin) } And almost the same

Re: ports modifying system setups

2007-11-19 Thread Chuck Robey
Edwin Groothuis wrote: On Sun, Nov 18, 2007 at 08:17:36PM -0500, Chuck Robey wrote: activate the port, and if so, the port would add a line of the form 'portname_enable=YES', and this would make your new port operate. Well, it seems from what I see of my new system, that this is no longer the

Re: ports modifying system setups

2007-11-19 Thread Chuck Robey
Scot Hetzel wrote: On 11/18/07, Edwin Groothuis [EMAIL PROTECTED] wrote: On Sun, Nov 18, 2007 at 08:17:36PM -0500, Chuck Robey wrote: activate the port, and if so, the port would add a line of the form 'portname_enable=YES', and this would make your new port operate. Well, it seems from what I

Re: ports modifying system setups

2007-11-19 Thread Chuck Robey
Naram Qashat wrote: In the pkgtools.conf file that portupgrade installs, there's two sections, BEFOREINSTALL and AFTERINSTALL. In BEFOREINSTALL, you could put the following in to make it try to stop the service if there's an rc script for the port: '*' = proc { |origin| cmd_stop_rc(origin)

ports modifying system setups

2007-11-18 Thread Chuck Robey
I was wondering why ports apparently aren't allowed an obvious freedom, that of being able to set themselves to run as daemons. A greate long time past, I seem to remember that there used to be a file /usr/local/etc/rc.local, which (if it existed) would be automatically sourced in at the end

Re: ports modifying system setups

2007-11-18 Thread Edwin Groothuis
On Sun, Nov 18, 2007 at 08:17:36PM -0500, Chuck Robey wrote: activate the port, and if so, the port would add a line of the form 'portname_enable=YES', and this would make your new port operate. Well, it seems from what I see of my new system, that this is no longer the case. I could

Re: ports modifying system setups

2007-11-18 Thread Naram Qashat
Also a good thing to point out is that portupgrade can be configured to automatically start or stop a port's daemon via it's /usr/local/etc/rc.d script, which still relies on having the appropriate line in /etc/rc.conf to tell the rc.d script to run, but it is helpful for upgrading ports which