pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Nov 25 16:53:31 UTC 2026

Modified Files:
        pkgsrc/mk: apache.mk

Log Message:
mk: reduce mk/apache.mk to the minimum, USE_APR

All the rest is unnecessary with only one apache package.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 pkgsrc/mk/apache.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/apache.mk
diff -u pkgsrc/mk/apache.mk:1.33 pkgsrc/mk/apache.mk:1.34
--- pkgsrc/mk/apache.mk:1.33    Wed Nov 25 16:00:15 2026
+++ pkgsrc/mk/apache.mk Wed Nov 25 16:53:31 2026
@@ -1,124 +1,31 @@
-# $NetBSD: apache.mk,v 1.33 2026/11/25 16:00:15 wiz Exp $
+# $NetBSD: apache.mk,v 1.34 2026/11/25 16:53:31 wiz Exp $
 #
 # This file is meant to be included by packages that require an apache
 # web server.
 #
-# User-settable variables:
-#
-# PKG_APACHE_DEFAULT
-#      The default apache server to use and install. If there already
-#      is an apache installed, this will have no effect.
-#
-#      Possible values: apache24
-#
 # Package-settable variables:
 #
-# PKG_APACHE_ACCEPTED
-#      The list of apache packages that can be used as a dependency for
-#      the package.
-#
-#      Possible values: (see PKG_APACHE_DEFAULT)
-#
 # USE_APR
 #      If this variable is set to "yes", a full dependency to the
 #      Apache Portable Runtime library will be added.
 #
-# Variables defined by this file:
-#
-# PKG_APACHE
-#      The Apache version that is actually used.
-#
-#      Possible values: (see PKG_APACHE_DEFAULT)
-#
 
 .if !defined(APACHE_MK)
 APACHE_MK=                     # defined
 
 _VARGROUPS+=           apache
-_USER_VARS.apache=     PKG_APACHE_DEFAULT
-_PKG_VARS.apache=      PKG_APACHE_ACCEPTED USE_APR
-_SYS_VARS.apache=      PKG_APACHE
+_PKG_VARS.apache=      USE_APR
 
 .include "bsd.fast.prefs.mk"
 
-PKG_APACHE_DEFAULT?=           apache24
-BUILD_DEFS+=                   PKG_APACHE_DEFAULT
-BUILD_DEFS_EFFECTS+=           PKG_APACHE
-
 # Package-settable variables
-PKG_APACHE_ACCEPTED?=          ${_PKG_APACHES}
-USE_APR?=                      no
+USE_APR?=              no
 
-# The available apache packages:
-_PKG_APACHES=                  apache24
-
-_APACHE_PKGBASE.apache24=      apache-2.[456789]*
-_APACHE_PKGSRCDIR.apache24=    ../../www/apache24
-
-#
-# Sanity checks.
-#
-
-.if empty(_PKG_APACHES:M${PKG_APACHE_DEFAULT})
-_PKG_APACHE_MESSAGE:=          "[apache.mk] Invalid apache package \""${PKG_APACHE_DEFAULT:Q}"\" in PKG_APACHE_DEFAULT."
-PKG_FAIL_REASON+=              ${_PKG_APACHE_MESSAGE}
-PKG_APACHE_DEFAULT=            apache24
-.endif
-
-.for _ap_ in ${PKG_APACHE_ACCEPTED}
-.  if empty(_PKG_APACHES:M${_ap_})
-PKG_FAIL_REASON+=              "[apache.mk] Invalid apache package \""${_ap_:Q}"\" in PKG_APACHE_ACCEPTED."
-PKG_APACHE_ACCEPTED=           # none
-.  endif
-.endfor
-
-# Mark the acceptable apaches and check which apache packages are installed.
-.for _ap_ in ${PKG_APACHE_ACCEPTED}
-_APACHE_OK.${_ap_}=    yes
-_APACHE_INSTALLED.${_ap_}!= \
-       if ${PKG_INFO} -qe ${_APACHE_PKGBASE.${_ap_}:Q}; then           \
-               ${ECHO} yes;                                            \
-       else                                                            \
-               ${ECHO} no;                                             \
-       fi
-.endfor
-.for ap in ${_PKG_APACHES}
-_APACHE_OK.${ap}?=     no
-.endfor
-
-.undef PKG_APACHE
-
-# Use one of the installed apaches, ...
-.for _ap_ in ${PKG_APACHE_ACCEPTED}
-.  if ${_APACHE_INSTALLED.${_ap_}} == "yes"
-PKG_APACHE?=           ${_ap_}
-.  endif
-.endfor
-
-# ... otherwise, prefer the default one if it's accepted, ...
-.if ${_APACHE_OK.${PKG_APACHE_DEFAULT}} == "yes"
-PKG_APACHE?=           ${PKG_APACHE_DEFAULT}
-.endif
-
-# ... otherwise, just use the first accepted apache.
-.for ap in ${PKG_APACHE_ACCEPTED}
-PKG_APACHE?=           ${ap}
-.endfor
-
-.if defined(PKG_APACHE)
-.  include "${_APACHE_PKGSRCDIR.${PKG_APACHE}}/buildlink3.mk"
-.else
-PKG_FAIL_REASON+=      "[apache.mk] No acceptable apache package found."
-PKG_APACHE=            none
-.endif
+.include "../../www/apache24/buildlink3.mk"
 
 .if !empty(USE_APR:M[Yy][Ee][Ss])
 .  include "../../devel/apr/buildlink3.mk"
 .  include "../../devel/apr-util/buildlink3.mk"
 .endif
 
-#
-# Variable assignment for multi-apache packages
-MULTI+=        PKG_APACHE=${PKG_APACHE}
-
 .endif # APACHE_MK



Home | Main Index | Thread Index | Old Index