mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
090059a210
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# New ports collection makefile for: fruity
|
|
# Date created: 29 December 2006
|
|
# Whom: Dan Langille <dan@langille.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fruity
|
|
DISTVERSION= 1.0-rc2
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-mgmt www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= fruity
|
|
|
|
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
|
|
IGNORE_WITH_PHP=4
|
|
DEFAULT_PHP_VER=5
|
|
USE_MYSQL= yes
|
|
SUB_LIST+= REQ_MYSQL=mysql
|
|
USE_PHP= mysql session dba pcre
|
|
|
|
.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>
|