On 03/14/2016 03:51 AM, Thomas D. wrote:
> Hi,
> 
> Tom Eastep wrote:
>> The PAGER isn't compiled into the generated script; the script doesn't
>> produce output requiring a pager. So it is strictly within the CLI that
>> PAGER is used.
> 
> Mh, OK. I only noticed that when I set "PAGER=foo" in shorewall[6].conf
> I'll get an error regarding PAGER on safe-restart. That's why I thought
> it will be compiled into the script. My fault.
> 
> 
>> When it comes to default settings, I generally don't change them except
>> at a major release. As you have noted, another factor is that there is
>> no uniformity with respect to the default pager implementation among the
>> distributions. The current Shorewall philosophy is that
>> distribution-specific settings are in the shorewallrc file. So we could
>> add a new variable such as DEFAULTPAGER to the shorewallrc file and set
>> it via the configure[.pl] script(s). Then, shorewall[6].conf could have
>> PAGER=$DEFAULTPAGER.
> 
> Well, specifying PAGER in shorewallrc is another thing for me:
> 
> For me the main idea was to use the system (user) default if set. So the
> user has something working out of the box. Only if the user don't want
> to use the default PAGER in shorewall or no pager at all
> shorewall[6].conf needs to be touched.
> 
> So when you set PAGER=/usr/bin/less in shorewallrc because currently the
> user has set PAGER=/usr/bin/less environment variable this wouldn't be
> dynamic: If the user changes the default pager, shorewall should
> instantly use the same new default pager if shorewall is set to use
> "system default".
> 
> That was at least my idea. :)

Apologies for dropping this thread for a while.

What I envision is that for Gentoo, you would have DEFAULTPAGER=$PAGER.

$PAGER would get expanded when the shorewallrc file was read by the CLI,
not when the shorewallrc file was created. That is similar to
VARDIR=/${VARLIB}/$PRODUCT in the current shorewallrc file.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to