aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portlint
diff options
context:
space:
mode:
authormharo <mharo@FreeBSD.org>2000-02-03 05:07:39 +0800
committermharo <mharo@FreeBSD.org>2000-02-03 05:07:39 +0800
commitbbcc7b12c36ec99edfe2cb5bdb66b5f78077b98a (patch)
tree62358f615f7b3a79de7f05c4ab0469563adbf62b /ports-mgmt/portlint
parent4d9c54713b925be704765671b393af0c0db5684e (diff)
downloadfreebsd-ports-gnome-bbcc7b12c36ec99edfe2cb5bdb66b5f78077b98a.tar.gz
freebsd-ports-gnome-bbcc7b12c36ec99edfe2cb5bdb66b5f78077b98a.tar.zst
freebsd-ports-gnome-bbcc7b12c36ec99edfe2cb5bdb66b5f78077b98a.zip
issue a warning when @owner or @group are found in the PLIST
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r--ports-mgmt/portlint/src/portlint.pl14
1 files changed, 2 insertions, 12 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index c86ef300fe56..9def9545f34f 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -280,18 +280,8 @@ sub checkplist {
}
} elsif ($_ =~ /^\@(comment)/) {
$rcsidseen++ if (/\$$rcsidstr[:\$]/);
- } elsif ($_ =~ /^\@(owner|group)\s+$/) {
- &perror("WARN: $_ missing name in PLIST");
- } elsif ($_ =~ /^\@(owner)(\s+)(.*)/) {
- $space = $2;
- $user = $3;
- &perror("WARN: multiple spaces found in \"$_\"") if ($space =~ /\s\s+/);
- &perror("WARN: \"$user\" unknown user in PLIST") if (getpwnam($user) eq "");
- } elsif ($_ =~ /^\@(group)(\s+)(.*)/) {
- $space = $2;
- $group = $3;
- &perror("WARN: multiple spaces found in \"$_\"") if ($space =~ /\s\s+/);
- &perror("WARN: \"$group\" unknown group in PLIST") if (getgrnam($group) eq "");
+ } elsif ($_ =~ /^\@(owner|group)\s/) {
+ &perror("WARN: \@$1 should not be needed in PLIST");
} elsif ($_ =~ /^\@(dirrm|option)/) {
; # no check made
} else {