pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc pkglint now reports if sees etc/rc.d in Makefile or PL...
details: https://anonhg.NetBSD.org/pkgsrc/rev/28ac93acb130
branches: trunk
changeset: 473724:28ac93acb130
user: reed <reed%pkgsrc.org@localhost>
date: Sat Apr 24 00:17:19 2004 +0000
description:
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:
doc/CHANGES | 3 ++-
pkgtools/pkglint/Makefile | 4 ++--
pkgtools/pkglint/files/pkglint.pl | 14 +++++++++++++-
3 files changed, 17 insertions(+), 4 deletions(-)
diffs (65 lines):
diff -r d237376fb38b -r 28ac93acb130 doc/CHANGES
--- a/doc/CHANGES Sat Apr 24 00:16:41 2004 +0000
+++ b/doc/CHANGES Sat Apr 24 00:17:19 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.5720 2004/04/23 18:43:37 itojun Exp $
+$NetBSD: CHANGES,v 1.5721 2004/04/24 00:17:21 reed Exp $
Changes to the packages collection and infrastructure in 2004:
@@ -2224,3 +2224,4 @@
Updated mathomatic to 11.0cnb1 [minskim 2004-04-23]
Added screws-0.52 [xtraeme 2004-04-23]
Updated nsd to 2.0.2 [itojun 2004-04-23]
+ Updated pkglint to 3.73 [reed 2004-04-23]
diff -r d237376fb38b -r 28ac93acb130 pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Sat Apr 24 00:16:41 2004 +0000
+++ b/pkgtools/pkglint/Makefile Sat Apr 24 00:17:19 2004 +0000
@@ -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 -r d237376fb38b -r 28ac93acb130 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Apr 24 00:16:41 2004 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Apr 24 00:17:19 2004 +0000
@@ -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@localhost>,
@@ -464,6 +464,13 @@
$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 @@
&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
#
Home |
Main Index |
Thread Index |
Old Index