Add a user warning so that everyone get a notice about the upcoming EoL of pkg_install

Add a end user NO_WARNING_PKG_INSTALL_EOL to allow users willing to stay a bit more with pkg_install
to not get bothered all the time with the warning

With hat:	portmgr
This commit is contained in:
Baptiste Daroussin 2014-02-04 14:23:08 +00:00
parent 456e8c1221
commit 3ea3e4e09f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342537

View file

@ -1206,6 +1206,12 @@ WITH_PKGNG?= yes
.endif
.endif
.if !defined(WITH_PKGNG) && !defined(NO_WARNING_PKG_INSTALL_EOL)
WARNING+= "pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng"
WARNING+= "http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/"
WARNING+= "If you do not want to see this message again set NO_WARNING_PKG_INSTALL_EOL=yes in your make.conf"
.endif
# Enable new xorg for FreeBSD versions after Radeon KMS was imported unless
# WITHOUT_NEW_XORG is set.
.if ${OSVERSION} >= 1100000
@ -4169,6 +4175,10 @@ fix-plist-sequence: ${TMPPLIST}
@${EGREP} -v -e '^@exec echo.*Creating users and' -e '^@exec.*${PW}' -e '^@exec ${INSTALL} -d -g' ${TMPPLIST} >> ${TMPGUCMD}
@${MV} -f ${TMPGUCMD} ${TMPPLIST}
.endif
.if !defined(WITH_PKGNG)
@${ECHO_CMD} "@exec echo pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng" >> ${TMPPLIST}
@${ECHO_CMD} "@exec echo http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/" >> ${TMPPLIST}
.endif
.endif
.if !defined(DISABLE_SECURITY_CHECK)