mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# Created by: Dan Langille <dan@langille.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fruity
|
|
DISTVERSION= 1.0-rc2
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-mgmt www
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-1.0-rc2
|
|
|
|
MAINTAINER= dan@langille.org
|
|
COMMENT= Fruity is a PHP based web-frontend to your Nagios configuration
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
|
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message patch-includes-config.inc fruity.config.inc
|
|
|
|
WANT_PHP_WEB= yes
|
|
DEFAULT_PHP_VER=5
|
|
USE_MYSQL= yes
|
|
SUB_LIST+= REQ_MYSQL=mysql
|
|
USE_PHP= mysql session dba pcre
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
# the files directory contains a patch for the original file
|
|
# this removes the original copy created by that patch
|
|
@${RM} ${WRKSRC}/includes/config.inc.orig
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/includes/config.inc
|
|
|
|
# the above replace create this file, which needs to be removed
|
|
@${RM} ${WRKSRC}/includes/config.inc.bak
|
|
|
|
do-install:
|
|
@${ECHO} "Installing in ${PREFIX}/www/fruity"
|
|
${MKDIR} ${PREFIX}/www/fruity
|
|
${CP} -R ${WRKSRC}/* ${PREFIX}/www/fruity
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/fruity
|
|
|
|
post-install:
|
|
@${CP} ${WRKDIR}/fruity.config.inc ${PREFIX}/etc/fruity.config.inc-sample
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|