2004-01-06 06:27:10 +00:00
|
|
|
# Ports collection makefile for: jffnms
|
|
|
|
# Date created: Aug 21 2003
|
|
|
|
# Whom: Sergey Akifyev <asa@gascom.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jffnms
|
2005-11-01 14:32:11 +00:00
|
|
|
PORTVERSION= 0.8.2
|
2005-12-06 13:43:39 +00:00
|
|
|
PORTREVISION= 1
|
2004-01-06 06:27:10 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=${PORTNAME}
|
|
|
|
|
2005-03-12 12:11:05 +00:00
|
|
|
MAINTAINER= asa@agava.com
|
2004-01-06 06:27:10 +00:00
|
|
|
COMMENT= Very advanced network monitoring and control system
|
|
|
|
|
|
|
|
RUN_DEPENDS= neato:${PORTSDIR}/graphics/graphviz \
|
2005-12-06 13:43:39 +00:00
|
|
|
rrdtool:${PORTSDIR}/net/rrdtool10 \
|
2004-01-06 06:27:10 +00:00
|
|
|
nmap:${PORTSDIR}/security/nmap \
|
2004-01-25 02:09:09 +00:00
|
|
|
${LOCALBASE}/sbin/tmpwatch:${PORTSDIR}/sysutils/tmpwatch
|
2004-01-06 06:27:10 +00:00
|
|
|
|
2004-07-19 09:42:16 +00:00
|
|
|
USE_PHP= gd snmp sockets
|
2004-01-06 06:27:10 +00:00
|
|
|
USE_MYSQL= yes
|
|
|
|
|
|
|
|
JFFNMSDIR?= share/jffnms
|
|
|
|
CRONTAB?= /usr/bin/crontab
|
|
|
|
|
2004-10-12 15:22:35 +00:00
|
|
|
PLIST_SUB= JFFNMSDIR=${JFFNMSDIR}
|
2004-01-06 06:27:10 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
|
|
|
|
do-install:
|
2004-01-20 09:42:26 +00:00
|
|
|
@-${RM} ${WRKSRC}/engine/tmpwatch.sh.orig > /dev/null 2>&1
|
|
|
|
@${MKDIR} ${PREFIX}/${JFFNMSDIR}
|
|
|
|
@${CP} -R ${WRKSRC}/* ${PREFIX}/${JFFNMSDIR}
|
|
|
|
@${CHOWN} -R www:www ${PREFIX}/${JFFNMSDIR}
|
|
|
|
@${SED} -e 's|%LOCALBASE%|${PREFIX}|g' \
|
|
|
|
-e 's|%JFFNMSDIR%|${PREFIX}/${JFFNMSDIR}|g' ${FILESDIR}/jffnms.cron \
|
|
|
|
> ${PREFIX}/${JFFNMSDIR}/jffnms.cron
|
|
|
|
@${SED} -e 's|%JFFNMSDIR%|${PREFIX}/${JFFNMSDIR}|g' \
|
2004-01-06 06:27:10 +00:00
|
|
|
-e 's|%JFFNMS%|${DISTNAME}|g' ${FILESDIR}/jffnms_db.sh \
|
2004-01-20 09:42:26 +00:00
|
|
|
> ${PREFIX}/${JFFNMSDIR}/jffnms_db.sh
|
|
|
|
@${CRONTAB} -u www ${PREFIX}/${JFFNMSDIR}/jffnms.cron
|
|
|
|
@${SED} -e 's|%JFFNMSDIR%|${PREFIX}/${JFFNMSDIR}|g' ${PKGMESSAGE}
|
2004-01-06 06:27:10 +00:00
|
|
|
|
2004-10-12 15:22:35 +00:00
|
|
|
#
|
|
|
|
# !!! Maintainer only !!!
|
|
|
|
#
|
|
|
|
packinglist: pkg-plist.new
|
|
|
|
pkg-plist.new:
|
|
|
|
@${ECHO_MSG} '---> Making ${@}'
|
|
|
|
@${FIND} '${PREFIX}/${JFFNMSDIR}' -type f | \
|
|
|
|
${SED} -e 's|^${PREFIX}/${JFFNMSDIR}|%%JFFNMSDIR%%|' | \
|
|
|
|
${SORT} -t / > ${@}
|
|
|
|
@${FIND} '${PREFIX}/${JFFNMSDIR}' -type d | \
|
|
|
|
${SORT} -rt / | \
|
|
|
|
${SED} -e 's|^${PREFIX}/${JFFNMSDIR}|@dirrm %%JFFNMSDIR%%|' >> ${@}
|
|
|
|
@${ECHO} "@exec crontab -u www %%JFFNMSDIR%%/jffnms.cron" >> ${@}
|
|
|
|
@${ECHO} "@unexec crontab -u www -l | sed 's|.*JFFNMS.*||' | crontab -u www -" >> ${@}
|
|
|
|
|
2004-01-06 06:27:10 +00:00
|
|
|
.include <bsd.port.mk>
|