blob: 4eea6ff0e47aeb0452507191567bb9e315439fcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Ports collection makefile for: jffnms
# Date created: Aug 21 2003
# Whom: Sergey Akifyev <asa@gascom.ru>
#
# $FreeBSD$
#
PORTNAME= jffnms
PORTVERSION= 0.8.3
PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Very advanced network monitoring and control system
RUN_DEPENDS= neato:${PORTSDIR}/graphics/graphviz \
rrdtool:${PORTSDIR}/databases/rrdtool10 \
nmap:${PORTSDIR}/security/nmap \
${LOCALBASE}/sbin/tmpwatch:${PORTSDIR}/sysutils/tmpwatch
USE_PHP= gd snmp sockets
USE_MYSQL= yes
CRONTAB?= /usr/bin/crontab
SUB_FILES= jffnms.cron jffnms_db.sh pkg-message
SUB_LIST= DISTNAME=${DISTNAME}
do-build:
do-install:
@${MKDIR} ${WWWDIR}
@${CP} -R ${WRKSRC}/* ${WWWDIR}
@${CHOWN} -R www:www ${WWWDIR}
@${INSTALL_DATA} ${WRKDIR}/jffnms.cron ${WWWDIR}/jffnms.cron
@${INSTALL_SCRIPT} ${WRKDIR}/jffnms_db.sh ${WWWDIR}/jffnms_db.sh
@${CRONTAB} -u www ${WWWDIR}/jffnms.cron
post-install:
@${CAT} ${PKGMESSAGE}
#
# !!! Maintainer only !!!
#
packinglist: pkg-plist.new
pkg-plist.new:
@${ECHO_MSG} '---> Making ${@}'
@${FIND} '${WWWDIR}' -type f | \
${SED} -e 's|^${WWWDIR}|%%WWWDIR%%|' | \
${SORT} -t / > ${@}
@${FIND} '${WWWDIR}' -type d | \
${SORT} -rt / | \
${SED} -e 's|^${WWWDIR}|@dirrm %%WWWDIR%%|' >> ${@}
@${ECHO} "@exec crontab -u www %%WWWDIR%%/jffnms.cron" >> ${@}
@${ECHO} "@unexec crontab -u www -l | sed 's|.*JFFNMS.*||' | crontab -u www -" >> ${@}
.include <bsd.port.mk>
|