diff options
author | rillig <rillig> | 2006-07-18 18:14:33 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-18 18:14:33 +0000 |
commit | 41b7e1f956916a3a62237e649c8933dc0af69963 (patch) | |
tree | e5b0d0bf939cd82eb64190465961f4dcddaee97f /pkgtools | |
parent | 0e96fb7e38485bd2e23e770158de9f848b5e767b (diff) | |
download | pkgsrc-41b7e1f956916a3a62237e649c8933dc0af69963.tar.gz |
- Added PKG_CONFIG to makevars.map.
- Make sure that the bsd.pkginstall.mk file exists before mentioning it
in diagnostic messages. Noticed by Martti Kuparinen.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/makevars.map | 6 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map index 4420d417381..89e81b3def9 100644 --- a/pkgtools/pkglint/files/makevars.map +++ b/pkgtools/pkglint/files/makevars.map @@ -1,4 +1,4 @@ -# $NetBSD: makevars.map,v 1.131 2006/07/16 09:29:39 rillig Exp $ +# $NetBSD: makevars.map,v 1.132 2006/07/18 18:14:33 rillig Exp $ # # This file contains the guessed type of some variables, according to @@ -487,6 +487,10 @@ PKG_ADMIN ShellCommand [$system] PKG_APACHE { apache13 apache2 } [$system] PKG_APACHE_ACCEPTED List of { apache13 apache2 } PKG_APACHE_DEFAULT { apache13 apache2 } [$user] +PKG_CONFIG Yes [$user] +# ^^ No, this is not the popular command from GNOME, but the setting +# whether the pkgsrc user wants configuration files automatically +# installed or not. PKG_CREATE ShellCommand [$system] PKG_DEBUG_LEVEL Integer [$cmdline] PKG_DEFAULT_OPTIONS List of Option [$user] diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index a3e7db06f16..5e2ded1f16c 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.654 2006/07/17 13:36:57 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.655 2006/07/18 18:14:33 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -2425,7 +2425,7 @@ sub load_tool_names() { # Some user-defined variables do not influence the binary # package at all and therefore do not have to be added to # BUILD_DEFS. - foreach my $bdvar (qw(DISTDIR FETCH_OUTPUT_ARGS)) { + foreach my $bdvar (qw(DISTDIR FETCH_CMD FETCH_OUTPUT_ARGS)) { $system_build_defs->{$bdvar} = true; } #$system_build_defs->{"PACKAGES"} = true; @@ -6811,7 +6811,10 @@ sub checkfile_PLIST($) { $line->log_error("RCD_SCRIPTS must not be registered in the PLIST. Please use the RCD_SCRIPTS framework."); } elsif ($text =~ qr"^etc/") { - $line->log_error("Configuration files must not be registered in the PLIST. Please use the CONF_FILES framework, which is described in mk/install/bsd.pkginstall.mk."); + my $f = "mk/pkginstall/bsd.pkginstall.mk"; + + assert(-f "${cwd_pkgsrcdir}/${f}"); + $line->log_error("Configuration files must not be registered in the PLIST. Please use the CONF_FILES framework, which is described in ${f}."); } elsif ($text =~ qr"^include/.*\.(?:h|hpp)$") { # Fine. |