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

Mike Frysinger vapier at gentoo.org
Sun Apr 5 02:54:22 UTC 2015


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 ...

...
#@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 :/
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20150404/ad9feab3/attachment.sig>


More information about the Pkg-shadow-devel mailing list