| @@ -1,49 +1,45 @@ | | | @@ -1,49 +1,45 @@ |
1 | # $NetBSD: check-files.mk,v 1.35 2017/06/14 16:23:09 prlw1 Exp $ | | 1 | # $NetBSD: check-files.mk,v 1.36 2017/10/02 14:14:04 wiz 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" |
14 | # | | 14 | # |
15 | # CHECK_FILES_STRICT | | 15 | # CHECK_FILES_STRICT |
16 | # When set to "yes", VARBASE and PKG_SYSCONFDIR are checked in | | 16 | # When set to "yes", VARBASE and PKG_SYSCONFDIR are checked in |
17 | # addition to LOCALBASE. | | 17 | # addition to LOCALBASE. |
18 | # | | 18 | # |
19 | # Package-settable variables: | | 19 | # Package-settable variables: |
20 | # | | 20 | # |
21 | # CHECK_FILES_SKIP | | 21 | # CHECK_FILES_SKIP |
22 | # A list of regular expressions (FIXME: all other checks use shell | | 22 | # A list of regular expressions (FIXME: all other checks use shell |
23 | # patterns) that names files to be skipped. This is useful to | | 23 | # patterns) that names files to be skipped. This is useful to |
24 | # avoid getting errors triggered by changes in directories not | | 24 | # avoid getting errors triggered by changes in directories not |
25 | # really handled by pkgsrc. | | 25 | # really handled by pkgsrc. |
26 | # | | 26 | # |
27 | | | 27 | |
28 | _VARGROUPS+= check-files | | 28 | _VARGROUPS+= check-files |
29 | _USER_VARS.check-files= CHECK_FILES CHECK_FILES_STRICT | | 29 | _USER_VARS.check-files= CHECK_FILES CHECK_FILES_STRICT |
30 | _PKG_VARS.check-files= CHECK_FILES_SKIP | | 30 | _PKG_VARS.check-files= CHECK_FILES_SKIP |
31 | | | 31 | |
32 | .if ${PKG_DEVELOPER:Uno} != "no" | | | |
33 | CHECK_FILES?= yes | | 32 | CHECK_FILES?= yes |
34 | .else | | | |
35 | CHECK_FILES?= no | | | |
36 | .endif | | | |
37 | CHECK_FILES_STRICT?= no | | 33 | CHECK_FILES_STRICT?= no |
38 | | | 34 | |
39 | # Info index files updated when a new info file is added. | | 35 | # Info index files updated when a new info file is added. |
40 | .if defined(INFO_FILES) | | 36 | .if defined(INFO_FILES) |
41 | CHECK_FILES_SKIP+= ${PREFIX}/.*/dir | | 37 | CHECK_FILES_SKIP+= ${PREFIX}/.*/dir |
42 | .endif | | 38 | .endif |
43 | | | 39 | |
44 | # Perl's perllocal.pod index that is regenerated when a local module | | 40 | # Perl's perllocal.pod index that is regenerated when a local module |
45 | # is added. | | 41 | # is added. |
46 | # | | 42 | # |
47 | CHECK_FILES_SKIP+= ${PERL5_INSTALLARCHLIB}/perllocal.pod | | 43 | CHECK_FILES_SKIP+= ${PERL5_INSTALLARCHLIB}/perllocal.pod |
48 | | | 44 | |
49 | # R's index files that are regenerated when a local module | | 45 | # R's index files that are regenerated when a local module |