Commit graph

194 commits

Author SHA1 Message Date
wiz
1b7f0d246f Change COMMENT handling:
COMMENTs are now a variable in the Makefile instead of a pkg/COMMENT
file. The COMMENT var should be in the maintainer block after the
homepage.
Modify bsd.pkg.mk, pkglint, url2pkg, and port2pkg (last one untested)
for the new behaviour. Document new state in Packages.txt.
This should save lots of inodes, and lots of time when untarring/updating.
Idea by Alistair Crooks.
For the time being, accept pkg/COMMENT instead of a COMMENT var to avoid
a flag day.
2001-02-16 13:06:17 +00:00
abs
6a13219ca8 Update to pkglint-2.36
On pre NetBSD-1.4 fall back to 'sysctl -n hw.machine_arch' for MACHINE_ARCH
2001-01-29 10:48:09 +00:00
wiz
24c5b7ebe2 Update to 2.35: Note deprecated LIBTOOL_OVERRIDE. 2001-01-26 13:16:52 +00:00
tron
75d3dc432a Use "FILE" instead of "file" as variable name to avoid a "pkglint" warning
here.
2001-01-25 08:45:46 +00:00
tron
c4b254d457 Use "nroff -man" on Solaris for the moment so that this package builds
at least.
2001-01-19 21:16:51 +00:00
abs
49061b4d00 Update pkglint to 2.34.
Changes to lintpkgsrc:
    Fix DEPENDS error (was only checking first DEPENDS). Fix from Dan.
    Fix uname to work on pre NetBSD 1.4 systems.
2001-01-18 11:40:33 +00:00
dent
ba85ce4899 Update HOMEPAGE. 2001-01-12 12:47:51 +00:00
wiz
17ec9f9ae6 MIRROR_DISTFILE is deprecated; add tests for that and NO_{BIN,SRC}_ON_FTP
instead. Bump to 2.33.
2000-12-13 23:53:42 +00:00
wiz
89f4bbd64f pkglint: Recognize a different name for the main sunsite, and two
sourceforge URLs.
Bump to 2.32.
2000-12-02 02:02:59 +00:00
abs
8a657f9272 Update to pkglint-2.31
lintpkgsrc changes:
Add '-S' - List packages not in category 'SUBDIRS', rename experimental '-S'
to '-c'. Rework -h output to group by type. Fix poblem with handling certain
glob expressions for depends, clean up manpage.
2000-11-17 12:45:30 +00:00
abs
ab4f50ec20 Add -B option to lintpkgsrc, to display broken packages.
Update to 2.30
2000-11-14 17:11:42 +00:00
abs
347d1743c4 Update to 2.29
lintpkgsrc - Add '-S' to optionally generate pkgsrcmap file mapping pkgname
to pkgdir and version
2000-10-20 11:00:13 +00:00
abs
c969d72eb9 Update pkglint to 2.28 - Add '-V' to lintpkgsrc - check binary packages
against /pkgsrc/distfiles/vulnerabilities.
2000-10-12 15:07:41 +00:00
abs
97d91beea9 Update to 2.27
lintpkgsrc: Remove over enthusiastic setting of {'PKGSRCDIR'} = '/usr/pkgsrc';
2000-10-05 10:29:49 +00:00
abs
9fa328725f Update to 2.26
lintpkgsrc: Allow setting of any variable in mk.conf, including
	PACKAGES containing PKGSRCDIR.
2000-10-02 14:32:21 +00:00
abs
ce73d29ffd Update pkglint to 2.25. If this keeps on I'm going to have to start using
odd numbers for 'development' versions...

lintpkgsrc:
Rename set_pkgsrcdir to parse_mk_conf, and also extract PACKAGES as well
as PKGSRCDIR. Update check_prebuilt_packages to handle the new package data
structure that allos mulitple versions of the same package to be valid
(for -current packages etc) - Missed in previous changes.
2000-09-26 15:57:05 +00:00
abs
de8f20e180 Update pkglint to 2.24:
lintpkgsrc tried to break DEPENDS up into a packagename and version
    section, so if the version did not match it could lookup the matching
    packages and suggest valid versions. Unfortunately this excessive
    helpfulness meant globs that cover both sides such as
    'perl-{5.0*,5.6.0nb2,base-5.[6-9]*}' gave it a certain degree of
    indigestion.  It also didn't handle the '.if ${BINNAME} != common'
    correctly in www/ns-plugger-common/Makefile.
    I believe now that any outstanding -i or -d warnings are genuine...
2000-09-22 22:41:07 +00:00
abs
f489fd9111 pkglint:
lintpkgsrc - fix :S modifier behaviour - broken in last commit
2000-09-21 10:28:44 +00:00
abs
d60ae9cd6a lintpkgsrc:
Rework substitution handling to correctly deal with
    ${DISTNAME:S/-/-gnome-/:S/$/nb1/} and friends. I remember being
    in something of a hurry when that code was fist written.  Slight
    cleanup to not completely blow up on DEPENDS such as
    perl-{5.0*,5.6.0nb2,base-5.[6-9]*}, though we still do not
    handle globbing that includes packagename and version.
Update to 2.22
2000-09-20 06:39:27 +00:00
abs
76da202494 lintpkgsrc: Clean up makefile variable parsing and use to extract PKGSRCDIR
from /etc/mk.conf - now will understand .include and other make'isms in mk.conf
Update to 2.21
2000-09-11 10:39:04 +00:00
wiz
331555b566 Some cleanup; warning and error messages slightly improved.
Major changes: .include lines are honoured now, and FILESDIR, PATCHESDIR,
PKGDIR, SCRIPTSDIR, MD5_FILE, and PATCH_SUM_FILE aren't hardcoded anymore,
but the corresponding Makefile variables are used.
Adapt lintpkgsrc to the changes.
Step to 2.20 to mark the occasion.
Reviewed by hubertf.
2000-09-05 00:02:15 +00:00
wiz
e34daeb1ec fix wording, some grammar, Dd 2000-09-04 00:48:10 +00:00
hubertf
e9f2adcd7a Update to 2.16: make the actions of the switches -a, -b and -c
on by default now, to get EVERYTHING checked by default.

Suggested by Kimmo Suominen <kim@netbsd.org>
2000-09-04 00:29:51 +00:00
abs
2dc45e5381 Avoid (harmless) uninitialised variable warnings in the even of a package not
having any discernable version. Update to 2.15
2000-08-30 12:54:22 +00:00
abs
0fbfb4163e Teach lintpkgsrc a little more about variable expansions.
Update version to 2.14
2000-08-28 14:14:59 +00:00
abs
ea44ee2e86 Update lintpkgsrc -R to check for NO_BIN_ON_FTP or RESTRICTED
Now 2.13
2000-08-17 16:16:01 +00:00
rh
a775f2e178 Bump version of pkglint to 2.12. (Forgot to include this in previous
commit.)
2000-07-20 13:55:28 +00:00
rh
2fd2be1443 Warn about NO_CDROM and NO_PACKAGE. 2000-07-20 13:53:41 +00:00
hubertf
ff1f4f7f73 Deal with depends dirs properly, esp. if pkglinted is not started in a pkg
dir. Noted in PR 10584 by Damon Brodie <damon@brodiefamily.org>
Bump version to 2.11.
2000-07-14 16:09:26 +00:00
wiz
152d0eca67 Update to 2.10. Change: FATAL warnings for empty pkg/COMMENT and pkg/DESCR. 2000-06-21 23:28:27 +00:00
rh
5834a7070a Update pkglint to 2.09. Adds a check for deprecated USE_PKGLIBTOOL. 2000-06-02 06:20:40 +00:00
dmcmahill
4397a6878e - add "-M path" option to allow specifying a distfiles directory to handle cases
where PKGSRC/distfiles isn't the correct location (like on ftp.netbsd.org).

- document the option.

- bump minor version number.
2000-05-29 19:44:27 +00:00
abs
1fe4f4cc6c In the event of multiple non current versions of a package being found, take
the one iwth the highest number as 'best'
2000-05-16 11:41:07 +00:00
hubertf
243c686459 * Only warn that EXTRACT_SUFX is superfluous if DISTFILES is set AND
EXTRACT_SUFX is set to (only) .tar.gz. Fixes PRs 9771 and 9635
 * use getopt() for option parsing - "pkgling -abc" will work now.
2000-04-05 23:34:42 +00:00
wiz
f2817b385e recognize commands directly after a '@' 2000-03-16 14:22:02 +00:00
wiz
92c21a49a5 have a bit more clue about md5-files: don't warn if there's no
files/md5 but NO_CHECKSUM is set in the Makefile; bump version
2000-02-12 17:13:53 +00:00
abs
a0985e1f71 Remove debug I stupidly left in after nb<N> suffix changes to dewey_cmp 2000-02-09 17:41:20 +00:00
abs
298523f569 Handle 'nb1.2.3' type suffixes (rather than just 'nb1') 2000-02-07 11:38:53 +00:00
wiz
d59b86813d necessery -> necessary 2000-02-05 17:19:06 +00:00
abs
eb043280a1 Update to 2.01 - extend deweydecimal compare to handle nb<N> suffixes 2000-02-03 12:05:20 +00:00
abs
ba27124c6e fix lintpkgsrc -l usage - from Thomas Klausner 2000-01-26 15:25:25 +00:00
abs
bc2316c977 include Makefiles with LICENSE with -R, update to 1.99 2000-01-19 13:59:20 +00:00
abs
fea92eb9eb warn about invalid dewey-decimal numbers, plus other makefile parsing tweaks 2000-01-14 01:02:01 +00:00
abs
aa88c8683d Cleanup conditional parsing some more, and add (undocumented as of
yet) -u flag which will run -i then fetch updated sources for any
out of date installed packages.
2000-01-10 15:06:48 +00:00
abs
452eb3bb84 Rototill the makefile parsing again, resulting in a passable attempt to
parse conditionals. Now picks up correct arch determined version of navigator
and communicator packages.
2000-01-10 02:01:20 +00:00
wiz
f3d611b15c clarification in warning 2000-01-08 19:11:26 +00:00
wiz
5b6873edc6 added warning that @owner, @group and @mode in PLIST are deprecated;
bumped version number
2000-01-06 01:34:21 +00:00
wiz
0f47253288 check for known RCS tags only, instead of all strings between a '$' and
a '$' or a ':', bumped version number
2000-01-05 21:13:00 +00:00
abs
88caa31ada Check pkg/COMMENT a little more closely, and generate warnings on:
Leading/trailing whitespace
	Trailing '.'
	Leading '(a|an) ' (case insensitive)
2000-01-05 12:54:31 +00:00
abs
8de2459cd5 .if parsing is now a touch less braindamaged (still lousy) 2000-01-03 15:21:45 +00:00
wiz
9281bd222e space added in warning message, doesn't warrant version number bumping 2000-01-02 03:40:21 +00:00
wiz
917519eb95 removed warning about adding info about restricted packages to
ports/LEGAL, which is a FreeBSD-ism we don't have; bumped
version number to 1.91
1999-12-29 01:51:16 +00:00
wiz
9ae99cd258 Recognize more directly used commands (like 'ln' instead of '${LN}') 1999-12-28 03:29:56 +00:00
hubertf
bd64283d89 Fix handling of items in PATCH_* section.
Addresses PR 9049 by ITOH Yasufumi <itohy@netbsd.org>
1999-12-28 00:50:17 +00:00
abs
56d6e3aedd If we find a 'distfiles' directory in what we have been told only contains
binary packages, "Move on... move on... move on" (even if it offers to tell
you about its mother).
1999-12-22 22:07:29 +00:00
abs
883579219a Add -K, to specify basedir for binary packages.
ftp.netbsd.org gives rather interesting results from:
lintpkgsrc -P /pub/NetBSD/NetBSD-current/pkgsrc -K /pub/NetBSD/packages -R
1999-12-22 21:37:57 +00:00
abs
2c9a4f88ef Add '-R' to list any RESTRICTED binary packages (should be useful for
ftp.netbsd.org), implement dewey-decimal version matching, and add
some comments. lintpkgsrc now qualifies as "very lightly commented"
1999-12-22 21:04:17 +00:00
abs
8c09d0fdaf Update manpage and tweak parse_makefiles verbose output 1999-12-18 14:53:32 +00:00
abs
36ecaf1621 Write package_globmatch, which makes a passable attempt at implementing
the globs used in pkgsrc.  Also optimise variable expansion in parse_makefile
(The previous algorithm was somewhat.... dumb)
1999-12-18 14:39:20 +00:00
abs
85b99abfb7 Add yet more magic to parse Makefiles better. (plus be more verbose when
problems are encountered)
1999-12-16 14:04:19 +00:00
abs
2514942eb5 Update to handle wildcard dependencies 1999-12-16 11:59:13 +00:00
hubertf
2289353729 Bump to V1.81, adding code to check for existance of PLIST
(unless PLIST_SRC or NO_PKG_REGISTER are set)

Fixes PR 8953 by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1999-12-07 21:33:56 +00:00
hubertf
ba2ecdb0a6 Seems I'm maintaining this 1999-12-06 01:14:34 +00:00
hubertf
a8d0caf5c3 Bump version to 1.80 1999-11-26 03:31:09 +00:00
hubertf
584d8157a4 s/port/package/ 1999-11-26 03:30:39 +00:00
hubertf
40d6e4a48d Per suggestion by Matthias Drochner, add some more warnings:
- warn if there's a emacs backup file of a patch (patches/*~)
 - warn if there's a checksum of such a backup file in files/patch-sum
 - warn if there's something in the patch-sum file that's not in
   the patches-dir
 - vice versa
 - warn if the checksums don't match

Also, check for work* instead of work for the workdir, needed if someone
uses OBJMACHINE. Some more small changes and a versioin bump will follow
in a second.
1999-11-26 03:28:17 +00:00
hubertf
4b9855c670 Bump version to 1.79. Introduced four new warnings:
WARN: no ./files/patch-sum file. Please run 'make makepatchsum'.
	WARN: no ./files/md5 file. Please run 'make makesum'.
	WARN: RUN_DEPENDS is deprecated, please use DEPENDS.
	WARN: LIB_DEPENDS is deprecated, please use DEPENDS.

Fixes PR 8861 by Dan McMahill <mcmahill@mit.edu>
1999-11-23 20:34:26 +00:00
abs
340e896bb1 Handle package names with regex meta characters (eg gtk+ ) 1999-11-12 13:18:02 +00:00
hubertf
6412ca008e Fix type, pointed out by Berndt Josef Wulf <wulf@dingo.ping.net.au> 1999-10-30 16:36:44 +00:00
drochner
a33ba672a4 put /usr/sbin into the PATH to make sure pkg_info is found 1999-09-25 16:06:54 +00:00
hubertf
5ee7d39bbf Allow package versions to contain more than one consecutive characters.
Pointed out by Simon Burge <simonb@netbsd.org> on tech-pkg@netbsd.org.

Bumped version to 1.77.
1999-09-13 02:44:46 +00:00
hubertf
75fe0baebf Don't recomment using MASTER_SITE_SUBDIR, recomment the new way instead.
While there, add all our known MASTER_SITE_xxx's.
Fixes PR 8350 by John A. Maier <johnam@mail.kemper.org>
1999-09-09 20:21:17 +00:00
agc
5a663366ac Small change to make pkglint run on Linux, much the same as the change
used to make it run on Solaris - force the osname to be NetBSD, since
pkgsrc is the same on all these different operating systems.

Bump version number to 1.75 accordingly.
1999-08-10 10:38:09 +00:00
abs
931b8af7f8 Add -P flag to lintpkgsrc to override PKGSRCDIR 1999-08-01 18:34:40 +00:00
agc
a5f5c941eb bsd.pkg.mk recognises patch files of the form "patches/patch-*", rather
than "patches/patch-??" - fix pkglint.pl to mirror this.
Bump version number to 1.73, and update CHANGELOG
1999-07-08 09:46:08 +00:00
agc
0b51cf6eee Make this package work on Solaris. 1999-07-02 13:57:56 +00:00
abs
ce69506c08 Update to 1.72 (new '-p' flag to lintpkgsrc to report (and optionaly remove)
old binary packages.
1999-06-24 23:40:13 +00:00
abs
2e7a953911 Update to 1.71.
Avoid uninit var warning, plus tighten up 'Maybe ...' check for unknown packages
1999-06-05 00:32:39 +00:00
tv
c1dc1dbc3a Allow PKGNAME to be derived from DISTNAME (substitute as necessary). 1999-05-23 20:32:00 +00:00
abs
3b73290549 Correct old '-u' reference (now '-o') 1999-04-19 17:59:05 +00:00
abs
d5b0e42311 Bugger. s/pkg_check/lintpkgsrc/ in the usage. 1999-04-19 07:36:43 +00:00
abs
2a3362124e Add pkg_check (renamed to lintpkgsrc, and add orginal lintpkgsrc functionality
(fixed up to work a little better).
lintpkgsrc can:
    -d : Check each Makefile's 'DEPENDS' matches current pkgsrc versions.
    -i : Check versions of installed packages against pkgsrc.
    -l : Run pkglint on every package in pkgsrc.
    -m : Report md5 mismatches for files in 'distfiles'.
    -o : Report old/obsolete 'distfiles' (not referenced by any md5).
    -r : Remove any 'bad' distfiles (Without -m or -o, implies both).
1999-04-19 07:32:09 +00:00
agc
74e7dd98a3 If running on Solaris, just use the NetBSD settings - it's the same pkgsrc.
Bump version number to denote Solaris support.
1999-03-10 08:24:16 +00:00
kim
bf300f279f Storing ${.CURDIR} in a binary is not good for automounted paths.
PKGSRCDIR can now be set in /etc/mk.conf to remedy this.
1999-03-04 07:23:09 +00:00
frueauf
f534708d29 Reflect that we no longer enforce full path for install-info, bump
version to indicate change.
1999-02-18 12:27:27 +00:00
frueauf
8e64514ae1 Bump version of PKGNAME to 1.67 to indicate that there are changes since
1.66.
1998-11-26 14:23:47 +00:00
agc
569ac5bf23 Stop failing with a fatal error if ${FILESDIR}/md5 file does not exist -
some perfectly sane packages do not have ${FILESDIR}/md5 files. Including
pkgsrc/pkgtools/pkglint, funnily enough.

In its place, introduce a checkmd5 subroutine, and call it if the file is
present. This subroutine checks for the presence of the NetBSD RCS Id in
the file.
1998-11-17 17:19:23 +00:00
agc
25ebbc82ea Add a check for a NetBSD RCS Id in each of the patch files.
Correct minor spelling mistake.
Don't substitute ${PORTSDIR} for ../.. if the OS is NetBSD.

Many thanks to Hubert Feyrer and Christoph Badura for the help with Perl.
1998-11-11 12:07:44 +00:00
tsarna
818a382b1f Fix old bug: pkglint was looking for MIRROR_DISTFILES, while the actual
variable is MIRROR_DISTFILE
1998-10-23 21:16:20 +00:00
tron
db74f9f640 Add "pkgtools" to "${CATEGORIES}". 1998-09-27 18:37:51 +00:00
tsarna
6bd0d65c65 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.
1998-08-20 15:16:34 +00:00
tsarna
62dc551992 update for new name 1998-08-08 15:19:11 +00:00
frueauf
c9cc505a63 remove me as MAINTAINER. 1998-08-08 12:35:41 +00:00
tsarna
4c02b3df4e Our portlint has diverged significantly from FreeBSD's, so
rename portlint to pkglint, and keep the sources right under files.
This makes it much easier to maintain and keep up with changes to out
package system.
1998-08-07 22:11:40 +00:00