diff options
author | tsarna <tsarna> | 1998-08-20 15:16:34 +0000 |
---|---|---|
committer | tsarna <tsarna> | 1998-08-20 15:16:34 +0000 |
commit | db15bf80499e7f80cd5a72bdb557eefa0a145748 (patch) | |
tree | 02014b09f0272e3c01f055156a42a91ab10cda59 /pkgtools/pkglint | |
parent | c80b25b4e3bf2c7e16e12023ee0d2cbda0fd9347 (diff) | |
download | pkgsrc-db15bf80499e7f80cd5a72bdb557eefa0a145748.tar.gz |
The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
the home page of the software if it has one.
- The value of HOMEPAGE is used to add a link from the
README.html files.
- pkglint updated to know about it. The "correct" location for
HOMEPAGE in the Makefile is after MAINTAINER, in that same
section.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/Makefile | 5 | ||||
-rw-r--r-- | pkgtools/pkglint/files/CHANGELOG | 5 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 23 |
3 files changed, 26 insertions, 7 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 9cb702e9887..3900b909a86 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,12 +1,13 @@ -# $NetBSD: Makefile,v 1.2 1998/08/08 12:35:41 frueauf Exp $ +# $NetBSD: Makefile,v 1.3 1998/08/20 15:16:49 tsarna Exp $ # -DISTNAME= pkglint-1.65 +DISTNAME= pkglint-1.66 CATEGORIES= devel MASTER_SITES= # empty DISTFILES= # empty MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.netbsd.org/Documentation/netbsd/Packages.txt USE_PERL5= YES diff --git a/pkgtools/pkglint/files/CHANGELOG b/pkgtools/pkglint/files/CHANGELOG index 5f85a8683da..51d5199ed91 100644 --- a/pkgtools/pkglint/files/CHANGELOG +++ b/pkgtools/pkglint/files/CHANGELOG @@ -1,4 +1,4 @@ -$NetBSD: CHANGELOG,v 1.1 1998/08/07 22:13:43 tsarna Exp $ +$NetBSD: CHANGELOG,v 1.2 1998/08/20 15:16:49 tsarna Exp $ TODO - report line# for each errors/warnings in Makefile @@ -6,6 +6,9 @@ TODO --- +r1.66 Thu Aug 20 09:00:51 CDT 1998 + - Add support for HOMEPAGE + r1.65 Fri Aug 7 14:43:24 CDT 1998 - Rename to pkglint - apply patches to sources and keep files under ${FILESDIR}. diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 3da98c4f9c7..e38900559e0 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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.1 1998/08/07 22:13:44 tsarna Exp $ +# $NetBSD: pkglint.pl,v 1.2 1998/08/20 15:16:50 tsarna Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org> and @@ -878,6 +878,21 @@ EOF if ($verbose); $tmp = $sections[$idx++]; + # check the order of items. + @tocheck=split(/\s+/, <<EOF); +MAINTAINER +EOF + if ($osname eq "NetBSD") { + push(@tocheck,"HOMEPAGE"); + } + &checkorder('MAINTAINER', $tmp, @tocheck); + + # warnings for missing HOMEPAGE + $tmp = "\n" . $tmp; + if ($tmp !~ /\nHOMEPAGE=/) { + &perror("WARN: please add HOMEPAGE if the package has one."); + } + &checkearlier($tmp, @varnames); $tmp = "\n" . $tmp; if ($tmp =~ /\nMAINTAINER=[^\n]+/) { @@ -888,9 +903,9 @@ EOF } $tmp =~ s/\n\n+/\n/g; - &checkextra($tmp, 'MAINTAINER'); - - push(@varnames, 'MAINTAINER'); + push(@varnames, split(/\s+/, <<EOF)); +MAINTAINER HOMEPAGE +EOF # # section 5: *_DEPENDS (may not be there) |