On 2010-08-27 , at 06:39 , James Hozier wrote:
> 
> configure.args  --with-default-server=irc.freenode.net \
>    --mandir=${prefix}/share/man \
>    --enable-ipv6
> 
> Followed by the livecheck of whatever. For that second line
> "configure.args  --with-default-server=irc.freenode.net"
> I want to know where that information is stored and how to change it
> the way the Ports changed it when it first installed on my system

What you want to know is "how is ircii built and where does it put things". 
That's not a function of MacPorts, that's a function of whatever the people who 
work on ircii do.

Step 1 - port fetch ircii
Step 2 - port configure ircii

notice that what you want to know is part of the configure args - probably has 
to do with the configure step

Step 3 - cd `port work ircii`

Step 4 - grep -r freenode *

ircii-20081115/config.status:# ./configure  --prefix=/opt/local 
--with-default-server=irc.freenode.net --mandir=/opt/local/share/man 
--enable-ipv6
ircii-20081115/config.status:    echo "running ${CONFIG_SHELL-/bin/sh} 
./configure  --prefix=/opt/local --with-default-server=irc.freenode.net 
--mandir=/opt/local/share/man --enable-ipv6 --no-create --no-recursion"
ircii-20081115/config.status:    exec ${CONFIG_SHELL-/bin/sh} ./configure  
--prefix=/opt/local --with-default-server=irc.freenode.net 
--mandir=/opt/local/share/man --enable-ipv6 --no-create --no-recursion ;;
ircii-20081115/config.status:${ac_dA}DEFAULT_SERVER${ac_dB}DEFAULT_SERVER${ac_dC}"irc.freenode.net"${ac_dD}
ircii-20081115/config.status:${ac_uA}DEFAULT_SERVER${ac_uB}DEFAULT_SERVER${ac_uC}"irc.freenode.net"${ac_uD}
ircii-20081115/config.status:${ac_eA}DEFAULT_SERVER${ac_eB}DEFAULT_SERVER${ac_eC}"irc.freenode.net"${ac_eD}
ircii-20081115/defs.h:#define DEFAULT_SERVER "irc.freenode.net"


Looking carefully we see that freenode occurs in 2 files - config.status and 
defs.h
config.status isn't used once the actual building of the application starts, so 
that leads us to "defs.h"

The simple answer to your question "where that information is stored and how to 
change it" is

 It is a compiled into the program constant. You change it by altering the 
definition of DEFAULT_SERVER in defs.h
and recompile the program.

In the ports world you need a custom Portfile that has a different 
configuration argument.

It might do you some good to go off and read about how ircII is used in the 
Unix world to get an idea of how to configure things (and where to put them).

        http://www.irchelp.org/

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to