On 11/11/2011 22:23, Doug Barton wrote: >> By its >> > nature, deprecated ports tends not to be updated for long time, port >> > tools like portmaster, portupgrade will not even see it because no >> > PORTREVISION bump happen.
> portmaster -L will warn you about ports marked > DEPRECATED/FORBIDDEN/IGNORE/BROKEN if you run it against an updated > ports tree. One area where we actually can improve here is to also put > this information in the INDEX. I have an idea for that, just haven't > been able to put the time into making it happen. 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. The duplication of echoing messages to STDOUT as well as the pkg-message file is not ideal, but displaying pkg-message at install time is not automatic when installing from ports. It might be an idea to have a standard port-install target to display ${PKGMESSAGE} if the file exists. 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
Index: Makefile =================================================================== RCS file: /home/ncvs/ports/ports-mgmt/p5-FreeBSD-Portindex/Makefile,v retrieving revision 1.20 diff -u -u -r1.20 Makefile --- Makefile 29 Aug 2011 04:43:56 -0000 1.20 +++ Makefile 26 Oct 2011 08:14:43 -0000 @@ -5,7 +5,7 @@ # $FreeBSD: ports/ports-mgmt/p5-FreeBSD-Portindex/Makefile,v 1.20 2011/08/29 04:43:56 dougb Exp $ PORTNAME= FreeBSD-Portindex -PORTVERSION= 2.4 +PORTVERSION= 2.6 CATEGORIES= ports-mgmt perl5 MASTER_SITES= http://www.infracaninophile.co.uk/portindex/ PKGNAMEPREFIX= p5- @@ -15,9 +15,20 @@ LICENSE= BSD +# GraphViz not required for portindex to run or generate GraphViz +# format output: this is only needed to render the output on the same +# machine. +OPTIONS= GRAPHVIZ "Add GraphViz run-time dependency" off + BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB RUN_DEPENDS:= ${BUILD_DEPENDS} +.include <bsd.port.options.mk> + +.if defined(WITH_GRAPHVIZ) && !defined(WITHOUT_GRAPHVIZ) +RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz +.endif + USE_XZ= yes PERL_CONFIGURE= yes Index: distinfo =================================================================== RCS file: /home/ncvs/ports/ports-mgmt/p5-FreeBSD-Portindex/distinfo,v retrieving revision 1.15 diff -u -u -r1.15 distinfo --- distinfo 29 Aug 2011 04:43:56 -0000 1.15 +++ distinfo 26 Oct 2011 08:14:43 -0000 @@ -1,2 +1,2 @@ -SHA256 (FreeBSD-Portindex-2.4.tar.xz) = 78f461e35dcadb9fb79665c698825fd54e081030858cf023bedfeb47b73891d0 -SIZE (FreeBSD-Portindex-2.4.tar.xz) = 50724 +SHA256 (FreeBSD-Portindex-2.6.tar.xz) = 909ea1b4ff67ea08617a54452b6ed9e999787d6ff3458cb59fb6aa81ecc67c13 +SIZE (FreeBSD-Portindex-2.6.tar.xz) = 51828 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/ports-mgmt/p5-FreeBSD-Portindex/pkg-plist,v retrieving revision 1.5 diff -u -u -r1.5 pkg-plist --- pkg-plist 14 Mar 2011 16:05:35 -0000 1.5 +++ pkg-plist 26 Oct 2011 08:14:43 -0000 @@ -8,6 +8,7 @@ @exec [ ! -f %B/portindex.cfg ] && cp -p %B/%f %B/portindex.cfg || true %%SITE_PERL%%/FreeBSD/Portindex/Config.pm %%SITE_PERL%%/FreeBSD/Portindex/Category.pm +%%SITE_PERL%%/FreeBSD/Portindex/GraphViz.pm %%SITE_PERL%%/FreeBSD/Portindex/Port.pm %%SITE_PERL%%/FreeBSD/Portindex/Tree.pm %%SITE_PERL%%/FreeBSD/Portindex/TreeObject.pm
signature.asc
Description: OpenPGP digital signature