diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2020-10-01 16:37:49 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2020-10-01 16:37:49 +0000 |
commit | c9d175ea908f26e19afd4e1168c61f4f2a54c998 (patch) | |
tree | 47bf21a014c573e5355c59d3c597e7d3018b8756 /lib/libc/net | |
parent | d213476d1cb7a0266812395a6b7a143c912f5aa3 (diff) | |
download | src-c9d175ea908f26e19afd4e1168c61f4f2a54c998.tar.gz src-c9d175ea908f26e19afd4e1168c61f4f2a54c998.zip |
Eliminate duplicate `afterinstallconfigs` target
Define separate dependent targets which `afterinstallconfigs` relies on, in
order to modify `${DESTDIR}/etc/master.passwd` and
`${DESTDIR}/etc/nsswitch.conf`.
Mark these targets .PHONY, since they manipulate configurations on the fly and
the generation logic isn't 100% defined in terms of the source files/logic,
and is variable, based on MK_foo flags.
MFC after: 2 weeks
Reviewed by: bapt, brd
Differential Revision: https://reviews.freebsd.org/D20330
Notes
Notes:
svn path=/head/; revision=366327
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index b31c1a36fcfe..6628028ccc83 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -124,8 +124,9 @@ SRCS+= hesiod.c MAN+= hesiod.3 .endif +afterinstallconfig: modify-nsswitch-conf +modify-nsswitch-conf: .PHONY .if ${MK_NIS} == "no" -afterinstallconfig: sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \ ${DESTDIR}/etc/nsswitch.conf .endif |