diff options
author | Neil Blakey-Milner <nbm@FreeBSD.org> | 2001-02-02 15:00:42 +0000 |
---|---|---|
committer | Neil Blakey-Milner <nbm@FreeBSD.org> | 2001-02-02 15:00:42 +0000 |
commit | 43a1c1abf7019454df727db0762a60c680c0550b (patch) | |
tree | fe94ca23d3941d555940063dd01c045ad0ed2bca /Tools | |
parent | Add homepage. (diff) |
Some minor additions so that we act a bit more like NetBSD's url2pkg; we
now autogenerate MASTER_SITES if we're given an URL. Also check the
PKGMAINTAINER environment variable.
Submitted by: Tomasz Luchowski <zuntum@eik.pl>
Notes
Notes:
svn path=/head/; revision=37909
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/mkptools/mkpskel | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tools/scripts/mkptools/mkpskel b/Tools/scripts/mkptools/mkpskel index bc5336812ed6..c6e61637c819 100755 --- a/Tools/scripts/mkptools/mkpskel +++ b/Tools/scripts/mkptools/mkpskel @@ -39,7 +39,7 @@ my (%cap); chomp($initdir = `pwd`); -$cap{"MAINTAINER"} = ($ENV{"MAINTAINER"} || "ports\@freebsd.org"); +$cap{"MAINTAINER"} = ($ENV{"MAINTAINER"} || $ENV{"PKGMAINTAINER"} || "ports\@freebsd.org"); getopts('n'); @@ -49,6 +49,7 @@ $filename = $ARGV[0]; if ($filename =~ m#^(f|ht)tp\://#) { print `fetch $filename`; + $cap{"MASTER_SITES"} = dirname($filename) . '/'; $filename = basename($filename); } chdir(dirname($filename)); @@ -119,6 +120,11 @@ EOF } } + if ($tmp{"MASTER_SITES"}) { + print MAKEFILE "MASTER_SITES= ". $tmp{"MASTER_SITES"} . "\n\n"; + delete($tmp{"MASTER_SITES"}); + } + print MAKEFILE "\nMAINTAINER=\t" . $tmp{"MAINTAINER"} . "\n\n"; delete($tmp{"MAINTAINER"}); |