diff options
author | mharo <mharo@FreeBSD.org> | 2000-01-23 06:06:04 +0800 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 2000-01-23 06:06:04 +0800 |
commit | 3d159390f4677da11a8662937beb5eb4d4245826 (patch) | |
tree | 32b3dc18e658ba1d9a437c4c40a8f074b3017ac8 /ports-mgmt | |
parent | 1c9b5dff4fad0ffeda3168b5bdac256f5f055be1 (diff) | |
download | freebsd-ports-gnome-3d159390f4677da11a8662937beb5eb4d4245826.tar.gz freebsd-ports-gnome-3d159390f4677da11a8662937beb5eb4d4245826.tar.zst freebsd-ports-gnome-3d159390f4677da11a8662937beb5eb4d4245826.zip |
add support for @owner and @group in PLIST
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index d575e78944a0..c86ef300fe56 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -280,6 +280,18 @@ 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 ($_ =~ /^\@(dirrm|option)/) { ; # no check made } else { |