[Pkg-shadow-devel] [PATCH v2 3/5] Filter out non-applicable settings from login.defs when compiled with PAM support.

Dimitri John Ledkov dimitri.j.ledkov at intel.com
Mon Apr 6 09:27:06 UTC 2015


On 5 April 2015 at 03:54, Mike Frysinger <vapier at gentoo.org> wrote:
> On 01 Apr 2015 13:43, Dimitri John Ledkov wrote:
>> This is similar to manpage generation, which excludes documentation
>> for non-PAM settings.
>
> heh, no one uses m4 anymore :).  could use sed in a hacky way as people are more
> likely to know that nowadays ...
>

Haha. I *just* learned it. </kidding>

> ...
> #@START: NO_PAM@
> #
> # Enable logging and display of /var/log/faillog login(1) failure info.
> #
> FAILLOG_ENAB            yes
> #@END: NO_PAM@
> ...
>
> sed -e '/@START: NO_PAM@/,/@END: NO_PAM@/d' $< > $@
>
> not sure that's really better though :/

Well, we could split them into login.defs.standard, login.defs.pam,
etc. and simply concat them together. But that would result in
relative re-arrangement of the stanzas in the file.... dpkg configure
file prompt will go crazy about it.

-- 
Regards,

Dimitri.

https://clearlinux.org
Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.



More information about the Pkg-shadow-devel mailing list