summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2001-11-07 21:00:29 +0000
committerespie <espie@openbsd.org>2001-11-07 21:00:29 +0000
commit69b6fe61fa9ee67930558677d6b7804f5cfea9a5 (patch)
treed7baecaa9504f432c2e7c98feaba01b670d68d57
parentSay goodbye to @ignore_inst, we don't use it, and it doesn't even work in (diff)
downloadwireguard-openbsd-69b6fe61fa9ee67930558677d6b7804f5cfea9a5.tar.xz
wireguard-openbsd-69b6fe61fa9ee67930558677d6b7804f5cfea9a5.zip
Recognize @libdepend, even though it doesn't do anything smarter with it
than @newdepend for now.
-rw-r--r--usr.sbin/pkg/pkg.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg/pkg.pl b/usr.sbin/pkg/pkg.pl
index 8afaed25576..01484a98136 100644
--- a/usr.sbin/pkg/pkg.pl
+++ b/usr.sbin/pkg/pkg.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg.pl,v 1.4 2001/07/14 14:20:11 espie Exp $
+# $OpenBSD: pkg.pl,v 1.5 2001/11/07 21:00:29 espie Exp $
#
# Copyright (c) 2001 Marc Espie.
#
@@ -265,6 +265,13 @@ sub solve_dependencies
}
push(@{$verify{$name}}, [$pattern, $def]);
push(@lines, "\@comment newdepend $name:$pattern:$def");
+ } elsif (m/^\@libdepend\s+/) {
+ my ($libspec, $name, $pattern, $def) = split(/\:/, $');
+ unless (defined $verify{$name}) {
+ $verify{$name} = [];
+ }
+ push(@{$verify{$name}}, [$pattern, $def]);
+ push(@lines, "\@comment libdepend $libspec:$name:$pattern:$def");
} else {
push(@lines, $_);
}