diff options
author | reed <reed> | 2004-04-24 00:17:19 +0000 |
---|---|---|
committer | reed <reed> | 2004-04-24 00:17:19 +0000 |
commit | c20fd1a7446c377e8b325a594076022501d20977 (patch) | |
tree | 7db0119ce5ab80b6d63078064a1b12cea11336fb /pkgtools | |
parent | 73656f54bb2c18db30d9b19442cfc9536f9a1054 (diff) | |
download | pkgsrc-c20fd1a7446c377e8b325a594076022501d20977.tar.gz |
pkglint now reports if sees etc/rc.d in Makefile or PLIST.
Should use RCD_SCRIPTS mechanism (which can automatically
install to ${RCD_SCRIPTS_EXAMPLEDIR}) which automatically
registers the rc.d script(s) in the PLIST.
New version is 3.73.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 5d01b3934a7..b1ec09c5163 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.184 2004/04/17 17:26:40 seb Exp $ +# $NetBSD: Makefile,v 1.185 2004/04/24 00:17:20 reed Exp $ # -DISTNAME= pkglint-3.72 +DISTNAME= pkglint-3.73 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 5041c23aaff..8bb28aea4f3 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.102 2004/04/17 17:26:40 seb Exp $ +# $NetBSD: pkglint.pl,v 1.103 2004/04/24 00:17:19 reed Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -464,6 +464,13 @@ sub checkplist { $etcseen = 1; } + if ($_ =~ /etc\/rc\.d/ and !$etcrcdseen) { + &perror("FATAL: RCD_SCRIPTS must not be ". + "registered in the PLIST (don't you use the ". + "RCD_SCRIPTS framework?)"); + $etcrcdseen = 1; + } + if ($_ =~ /^info\/dir$/) { &perror("FATAL: \"info/dir\" should not be listed in ". "$file. use install-info to add/remove ". @@ -933,6 +940,11 @@ EOF &perror("FATAL: possible pkgsrc-wip pathname detected."); } + if ($whole =~ /etc\/rc\.d/) { + &perror("WARN: Use RCD_SCRIPTS mechanism to install rc.d ". + "scripts automatically to \${RCD_SCRIPTS_EXAMPLEDIR}."); + } + # # whole file: full path name # |