On 16/11/2011 08:52, Matthew Seaman wrote: >> How about something like the attached? Rather than adding to the INDEX, >> >> this appends DEPRECATED, FORBIDDEN, IGNORE, BROKEN and EXPIRATION_DATE >> >> values to pkg-message, creating one if the port doesn't already have it.
So I spent a bit of time polishing up my idea and have submitted it: http://www.freebsd.org/cgi/query-pr.cgi?pr=162924 > Won't work for my use case, which is 'portmaster -L --index-only' With this change you could display the pkg-message with all the flags for DEPRECATION etc. before doing any package update. You'ld have to download the package tarball first though. Anyhow, as an aside from all that, while working on this I discovered that some 1958 ports contain explicit code which is some variation on post-install: @${CAT} ${PKGMESSAGE} Surely a candidate for genericizing and factoring out into bsd.ports.mk? Except that some hundred-ish of those ports are non-trivial to modify simply by running a script, due to conditionalising the display of pkg-message on other settings, or using pkg-message for messages at the pre-build stage or other oddities. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature