| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: check-files.mk,v 1.31 2014/10/12 23:39:17 joerg Exp $ | | 1 | # $NetBSD: check-files.mk,v 1.31.20.1 2017/04/03 19:29:41 spz Exp $ |
2 | # | | 2 | # |
3 | # This file checks that the list of installed files matches the PLIST. | | 3 | # This file checks that the list of installed files matches the PLIST. |
4 | # For that purpose it records the file list of LOCALBASE before and | | 4 | # For that purpose it records the file list of LOCALBASE before and |
5 | # after the installation of the package and compares these lists with | | 5 | # after the installation of the package and compares these lists with |
6 | # the PLIST. | | 6 | # the PLIST. |
7 | # | | 7 | # |
8 | # User-settable variables: | | 8 | # User-settable variables: |
9 | # | | 9 | # |
10 | # CHECK_FILES | | 10 | # CHECK_FILES |
11 | # "yes" to enable the check, "no" to disable it. | | 11 | # "yes" to enable the check, "no" to disable it. |
12 | # | | 12 | # |
13 | # Default value: "yes" for PKG_DEVELOPERs, "no" otherwise. | | 13 | # Default value: "yes" for PKG_DEVELOPERs, "no" otherwise. |
14 | # | | 14 | # |
| @@ -319,28 +319,28 @@ ${_CHECK_FILES_ERRMSG.prefix}: \ | | | @@ -319,28 +319,28 @@ ${_CHECK_FILES_ERRMSG.prefix}: \ |
319 | ${ECHO} "************************************************************"; \ | | 319 | ${ECHO} "************************************************************"; \ |
320 | ${ECHO} "The following files are in" \ | | 320 | ${ECHO} "The following files are in" \ |
321 | "${DESTDIR}${PREFIX} but not in the PLIST:"; \ | | 321 | "${DESTDIR}${PREFIX} but not in the PLIST:"; \ |
322 | ${SED} "s|^| |" ${_CHECK_FILES_EXTRA}; \ | | 322 | ${SED} "s|^| |" ${_CHECK_FILES_EXTRA}; \ |
323 | fi >> ${.TARGET} | | 323 | fi >> ${.TARGET} |
324 | ${RUN} \ | | 324 | ${RUN} \ |
325 | if ${_NONZERO_FILESIZE_P} ${_CHECK_FILES_MISSING_SKIP}; then \ | | 325 | if ${_NONZERO_FILESIZE_P} ${_CHECK_FILES_MISSING_SKIP}; then \ |
326 | ${ECHO} "************************************************************"; \ | | 326 | ${ECHO} "************************************************************"; \ |
327 | ${ECHO} "The following files are in both the" \ | | 327 | ${ECHO} "The following files are in both the" \ |
328 | "PLIST and CHECK_FILES_SKIP:"; \ | | 328 | "PLIST and CHECK_FILES_SKIP:"; \ |
329 | ${SED} "s|^| |" ${_CHECK_FILES_MISSING_SKIP}; \ | | 329 | ${SED} "s|^| |" ${_CHECK_FILES_MISSING_SKIP}; \ |
330 | fi >> ${.TARGET} | | 330 | fi >> ${.TARGET} |
331 | | | 331 | |
332 | # Check ${SYSCONFDIR} for files which are not in the PLIST and are also | | 332 | # Check ${PKG_SYSCONFDIR} for files which are not in the PLIST and are |
333 | # not copied into place by the INSTALL scripts. | | 333 | # also not copied into place by the INSTALL scripts. |
334 | # | | 334 | # |
335 | ${_CHECK_FILES_ERRMSG.sysconfdir}: \ | | 335 | ${_CHECK_FILES_ERRMSG.sysconfdir}: \ |
336 | ${_CHECK_FILES_PRE.sysconfdir} \ | | 336 | ${_CHECK_FILES_PRE.sysconfdir} \ |
337 | ${_CHECK_FILES_POST.sysconfdir} | | 337 | ${_CHECK_FILES_POST.sysconfdir} |
338 | ${RUN} \ | | 338 | ${RUN} \ |
339 | if ${CMP} -s ${_CHECK_FILES_PRE.sysconfdir} \ | | 339 | if ${CMP} -s ${_CHECK_FILES_PRE.sysconfdir} \ |
340 | ${_CHECK_FILES_POST.sysconfdir}; then \ | | 340 | ${_CHECK_FILES_POST.sysconfdir}; then \ |
341 | ${DO_NADA}; \ | | 341 | ${DO_NADA}; \ |
342 | else \ | | 342 | else \ |
343 | ${ECHO} "************************************************************"; \ | | 343 | ${ECHO} "************************************************************"; \ |
344 | ${ECHO} "The package has modified ${PKG_SYSCONFDIR}" \ | | 344 | ${ECHO} "The package has modified ${PKG_SYSCONFDIR}" \ |
345 | "contents directly!"; \ | | 345 | "contents directly!"; \ |
346 | ${ECHO} " The offending files/directories are:"; \ | | 346 | ${ECHO} " The offending files/directories are:"; \ |