[patch] to notify users about the deprecation of apache13/20 without touching any port

Olli Hauer ohauer at FreeBSD.org
Sat Jun 25 23:41:07 UTC 2011


Hi Philip,

what do you think about the following patch to note
user about the deprecation of apache13/20?

--
olli

-------------- next part --------------
Index: ports/Mk/bsd.apache.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.apache.mk,v
retrieving revision 1.29
diff -u -r1.29 bsd.apache.mk
--- ports/Mk/bsd.apache.mk	15 May 2011 20:21:30 -0000	1.29
+++ ports/Mk/bsd.apache.mk	25 Jun 2011 23:08:53 -0000
@@ -346,6 +346,20 @@
 _APACHE_VERSION_MAXIMUM_TMP:=	${_APACHE_VERSION_CHECK:C/.*-([1-9][0-9])/\1/}
 _APACHE_VERSION_MAXIMUM:=		${_APACHE_VERSION_MAXIMUM_TMP:M[1-9][0-9]}
 
+# Note users about the removal of apache13/20 and apache13/20 only ports
+# (mass deprecation without touching all ports ;)
+.if !defined(DEPRECATED) && !empty(_APACHE_VERSION_MAXIMUM)
+.	if ${_APACHE_VERSION_MAXIMUM}  == 20
+DEPRECATED=	will be unsupported by ASF when 2.4.0 is released, migrate to 2.2.x+ now
+.	endif
+.	if ${_APACHE_VERSION_MAXIMUM} == 13
+DEPRECATED=	apache13 is unsupported upstream, migrate to 2.2.x+ now
+.		if !defined(EXPIRATION_DATE)
+EXPIRATION_DATE=	the next FreeBSD release
+.		endif
+.	endif
+.endif
+
 .if defined(_APACHE_VERSION)
 # Validate Apache version whether it meets USE_APACHE version restriction.
 .	if !empty(_APACHE_VERSION_MINIMUM) && (${_APACHE_VERSION} < ${_APACHE_VERSION_MINIMUM})



More information about the freebsd-apache mailing list