mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Improve plist generation.
It fixes problems when you deinstall a port with $PREFIX != $(apxs -q prefix). Now plist is aware of real location of apache module.
This commit is contained in:
parent
5238e91085
commit
c36c607e27
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113383
@ -79,17 +79,28 @@ AP_EXTRAS+= -I ${AP_INC}
|
||||
AP_EXTRAS+= -L ${AP_LIB}
|
||||
.endif
|
||||
|
||||
.if exists(${APXS})
|
||||
APXS_PREFIX!= ${APXS} -q prefix
|
||||
.else
|
||||
APXS_PREFIX= ${APXS:S/\/sbin\/apxs//}
|
||||
.endif
|
||||
|
||||
.if defined(AP_FAST_BUILD)
|
||||
|
||||
ap-gen-plist:
|
||||
.if defined(AP_GENPLIST)
|
||||
. if !exists(${PLIST})
|
||||
@${ECHO} "===> Generating apache plist"
|
||||
@${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%%" > ${PLIST}
|
||||
@${ECHO} "@cwd ${APXS_PREFIX}" > ${PLIST}
|
||||
@${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
|
||||
@${ECHO} "%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
|
||||
@${ECHO} "@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F" >> ${PLIST}
|
||||
@${ECHO} "@cwd ${PREFIX}" >> ${PLIST}
|
||||
. endif
|
||||
.else
|
||||
@${DO_NADA}
|
||||
.endif
|
||||
|
||||
do-build: ap-gen-plist
|
||||
@cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
|
||||
|
||||
|
@ -79,17 +79,28 @@ AP_EXTRAS+= -I ${AP_INC}
|
||||
AP_EXTRAS+= -L ${AP_LIB}
|
||||
.endif
|
||||
|
||||
.if exists(${APXS})
|
||||
APXS_PREFIX!= ${APXS} -q prefix
|
||||
.else
|
||||
APXS_PREFIX= ${APXS:S/\/sbin\/apxs//}
|
||||
.endif
|
||||
|
||||
.if defined(AP_FAST_BUILD)
|
||||
|
||||
ap-gen-plist:
|
||||
.if defined(AP_GENPLIST)
|
||||
. if !exists(${PLIST})
|
||||
@${ECHO} "===> Generating apache plist"
|
||||
@${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%%" > ${PLIST}
|
||||
@${ECHO} "@cwd ${APXS_PREFIX}" > ${PLIST}
|
||||
@${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
|
||||
@${ECHO} "%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
|
||||
@${ECHO} "@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F" >> ${PLIST}
|
||||
@${ECHO} "@cwd ${PREFIX}" >> ${PLIST}
|
||||
. endif
|
||||
.else
|
||||
@${DO_NADA}
|
||||
.endif
|
||||
|
||||
do-build: ap-gen-plist
|
||||
@cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user