mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
- allow to install apache modules activated by defining
AP_MODENABLE in make.conf Requested on the mailing lists - fix patch location in help text with head apache@
This commit is contained in:
parent
0dc351b6a4
commit
8a4e4e6266
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313288
@ -455,7 +455,11 @@ ap-gen-plist:
|
||||
# apache22
|
||||
@${ECHO} "@unexec ${SED} -i '' -E '/LoadModule[[:blank:]]+%%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf" >> ${PLIST}
|
||||
@${ECHO} "%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
|
||||
.if defined(AP_MODENABLE)
|
||||
@${ECHO} "@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %D/%F" >> ${PLIST}
|
||||
.else
|
||||
@${ECHO} "@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F" >> ${PLIST}
|
||||
.endif
|
||||
@${ECHO} "@unexec echo \"Don't forget to remove all ${MODULENAME}-related directives in your httpd.conf\"">> ${PLIST}
|
||||
. endif
|
||||
.else
|
||||
@ -470,7 +474,11 @@ do-build: ap-gen-plist
|
||||
|
||||
.if !target(do-install)
|
||||
do-install:
|
||||
.if defined(AP_MODENABLE)
|
||||
@${APXS} -i -A -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
|
||||
.else
|
||||
@${APXS} -i -a -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
# It's not possible to use both patches together
|
||||
#
|
||||
# For a quick description take a look into the mpm-itk* patches
|
||||
# in the apache22/files directory
|
||||
# in the files directory
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../apache22
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user