On 15/11/2011 19:01, Matthew Seaman wrote: > 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?
Ooops. Wrong diff. Like this: -- 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: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.699 diff -u -u -r1.699 bsd.port.mk --- bsd.port.mk 9 Nov 2011 08:53:12 -0000 1.699 +++ bsd.port.mk 15 Nov 2011 18:59:49 -0000 @@ -4293,8 +4293,9 @@ _BUILD_SEQ= build-message pre-build pre-build-script do-build \ post-build post-build-script _INSTALL_DEP= build -_INSTALL_SEQ= install-message check-install-conflicts run-depends lib-depends apply-slist pre-install \ - pre-install-script generate-plist check-already-installed +_INSTALL_SEQ= install-message check-install-conflicts run-depends lib-depends \ + apply-slist deprecate-and-expire pre-install pre-install-script \ + generate-plist check-already-installed _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \ pre-su-install-script create-users-groups do-install \ install-desktop-entries install-license install-rc-script \ @@ -5615,6 +5616,34 @@ .endif .endif +.if !target(deprecate-and-expire) +deprecate-and-expire: +.if defined(DEPRECATED) || defined(FORBIDDEN) || defined(BROKEN) || \ + defined(IGNORE) || defined(EXPIRATION_DATE) + @if [ -f ${_PKGMESSAGE_SAVE} -a ! -f ${PKGMESSAGE} ] ; then \ + ${CP} ${_PKGMESSAGE_SAVE} ${PKGMESSAGE} ; \ + fi +.for i in DEPRECATED FORBIDDEN BROKEN +.if defined(${i}) + @${ECHO_MSG} "===> This port is ${i}: ${${i}}" + @${ECHO_CMD} "===> This port is ${i}: ${${i}}" >> ${PKGMESSAGE} +.endif +.endfor +.if defined(IGNORE) + @${ECHO_MSG} "===> This port should have been IGNORED: ${IGNORE}" + @${ECHO_CMD} "===> This port should have been IGNORED: ${IGNORE}" >> \ + ${PKGMESSAGE} +.endif +.if defined(EXPIRATION_DATE) + @${ECHO_MSG} "===> EXPIRATION DATE is set to: ${EXPIRATION_DATE}" + @${ECHO_CMD} "===> EXPIRATION DATE is set to: ${EXPIRATION_DATE}" >> \ + ${PKGMESSAGE} +.endif +_PKGMESSAGE_SAVE := ${PKGMESSAGE} +PKGMESSAGE = ${WRKDIR}/${_PKGMESSAGE_SAVE:T} +.endif +.endif + # Generate packing list. Also tests to make sure all required package # files exist.
signature.asc
Description: OpenPGP digital signature