Re: [gentoo-user] Re: /usr/share/doc/openrc/net.example not found

2012-12-16 Thread Neil Bothwick
On Sun, 16 Dec 2012 12:50:02 -0800, Bryan Gardiner wrote:

> What about software that refers to files in /usr/share/doc?  I can't
> remember what program it was, but one I used a while back had a Help
> menu item that tried to open a manual living there, but of course the
> manual was compressed and under a different name and it couldn't be
> found.

You can, at least with HTML documentation, have it linked to a consistent
location, see DOC_SYMLINKS_DIR in man make.conf.

> It's a minor inconvenience, but should files be left
> uncompressed for cases like this?

See PORTAGE_COMPRESS and associated variables in the same man page.


-- 
Neil Bothwick

Beware! The end is... 


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: /usr/share/doc/openrc/net.example not found

2012-12-16 Thread Bryan Gardiner
On Sat, 15 Dec 2012 10:08:54 +0200
nunojsi...@ist.utl.pt (Nuno J. Silva) wrote:

> On 2012-12-15, Chris Stankevitz wrote:
> 
> > Hello,
> >
> > The file
> >
> >   /etc/conf.d/net
> >
> > reports that I can seen an example format at this location:
> >
> >   /usr/share/doc/openrc/net.example
> 
> As dale found, it's under a compression suffix. In fact, most (all?)
> of the stuff that goes under /usr/share/doc is compressed by default
> under gentoo. This used to be gzip -5, and was then changed to bzip
> -9, and you can change it to anything else, including no compression
> at all.

What about software that refers to files in /usr/share/doc?  I can't
remember what program it was, but one I used a while back had a Help
menu item that tried to open a manual living there, but of course the
manual was compressed and under a different name and it couldn't be
found.  It's a minor inconvenience, but should files be left
uncompressed for cases like this?

Cheers,
Bryan



Re: [gentoo-user] Re: /usr/share/doc/openrc/net.example not found

2012-12-15 Thread Dustin C. Hatch

On 12/15/2012 02:08, Nuno J. Silva wrote:

On 2012-12-15, Chris Stankevitz wrote:


PS: I'm trying to find a way to prevent dhcpd from updating my ntp.conf


dhcpd? Don't you mean dchpcd (the c stands for *client*, dhcpd would be
the DHCP daemon granting leases to clients)?

If so, and if you don't mind using the same settings for all network
interfaces, have a look at /etc/dhcpcd.conf, which has an option "option
ntp_servers". I'd guess that disabling this would do what you want.

Actually, you can use /etc/conf.d/net to turn off receiving NTP 
configuration for just one interface, if you want. The `dhcp_IFACE` 
parameter takes several values, one of which is `nontp`, which will do 
exactly that. For example:


config_eth0="dhcp"
dhcp_eth0="nontp"

When you find the net.example file, you'll find that documented under 
GENERIC DHCP OPTIONS, about midway through the file.


Regards,

--
♫Dustin



[gentoo-user] Re: /usr/share/doc/openrc/net.example not found

2012-12-15 Thread Nuno J. Silva
On 2012-12-15, Chris Stankevitz wrote:

> Hello,
>
> The file
>
>   /etc/conf.d/net
>
> reports that I can seen an example format at this location:
>
>   /usr/share/doc/openrc/net.example

As dale found, it's under a compression suffix. In fact, most (all?) of
the stuff that goes under /usr/share/doc is compressed by default under
gentoo. This used to be gzip -5, and was then changed to bzip -9, and
you can change it to anything else, including no compression at all.

> On my machine that example file does not exist.  Did I do something
> wrong or is this just a documentation oversight?
>
> Thank you,
>
> Chris
>
> PS: I'm trying to find a way to prevent dhcpd from updating my ntp.conf

dhcpd? Don't you mean dchpcd (the c stands for *client*, dhcpd would be
the DHCP daemon granting leases to clients)?

If so, and if you don't mind using the same settings for all network
interfaces, have a look at /etc/dhcpcd.conf, which has an option "option
ntp_servers". I'd guess that disabling this would do what you want.

-- 
Nuno Silva (aka njsg)
http://njsg.sdf-eu.org/