mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net-mgmt/observium: Fix build with APACHEMOD unset
Submitted by: x0r+freebsd@x0r.fr PR: 255330
This commit is contained in:
parent
f23ac50c84
commit
c64b090a21
1 changed files with 8 additions and 3 deletions
|
@ -23,7 +23,7 @@ RUN_DEPENDS= rrdtool:databases/rrdtool \
|
|||
snmpget:net-mgmt/net-snmp \
|
||||
sudo:security/sudo
|
||||
|
||||
USES= cpe php:cli,flavors,mod python shebangfix
|
||||
USES= cpe php:cli,flavors python shebangfix
|
||||
USE_PHP= ctype filter gd iconv mysqli posix session snmp tokenizer xml zlib
|
||||
SHEBANG_FILES= \
|
||||
poller-wrapper.py \
|
||||
|
@ -69,13 +69,13 @@ PORTEXAMPLES= snmp.conf.example snmpd.conf.example
|
|||
|
||||
.if ${PORT_OPTIONS:MAPACHEMOD}
|
||||
USES+= apache:run
|
||||
.endif
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
USES+= php:mod
|
||||
.else
|
||||
# Package builder doesn't create php8 with module
|
||||
USES+= php:web
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MMYSQLD}
|
||||
USES+= mysql:server
|
||||
|
@ -89,8 +89,11 @@ pre-install:
|
|||
${MKDIR} ${WRKSRC}/logs ${WRKSRC}/rrd
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}/${WWWDIR} ${STAGEDIR}/${PREFIX}/${APACHEETCDIR}/Includes
|
||||
.if ${PORT_OPTIONS:MAPACHEMOD}
|
||||
${MKDIR} ${STAGEDIR}/${PREFIX}/${APACHEETCDIR}/Includes
|
||||
${INSTALL_DATA} ${WRKDIR}/observium.conf.sample ${STAGEDIR}/${PREFIX}/${APACHEETCDIR}/Includes
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}/${WWWDIR}
|
||||
.for dir in ${ROOT_DIRS}
|
||||
${MKDIR} ${STAGEDIR}/${WWWDIR}/${dir}
|
||||
(cd ${WRKSRC}/${dir} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/${dir})
|
||||
|
@ -117,7 +120,9 @@ do-install-EXAMPLES-on:
|
|||
.endfor
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MAPACHEMOD}
|
||||
@${ECHO_CMD} "@sample ${APACHEETCDIR}/Includes/observium.conf.sample" >> ${TMPPLIST}
|
||||
.endif
|
||||
@${FIND} -s ${STAGEDIR}${WWWDIR} -type f '(' -name '*.orig' -or -name '*.bak' ')' -delete
|
||||
@${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \
|
||||
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
||||
|
|
Loading…
Add table
Reference in a new issue