2012-12-30 14:58:07 +01:00
|
|
|
# Created by: Lars Thegler <lars@thegler.dk>
|
2002-04-01 12:46:58 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= smokeping
|
2015-02-22 20:37:33 +01:00
|
|
|
PORTVERSION= 2.6.11
|
2015-07-05 10:13:10 +02:00
|
|
|
PORTREVISION= 4
|
2007-08-11 13:13:39 +02:00
|
|
|
CATEGORIES= net-mgmt www
|
2006-12-12 13:47:43 +01:00
|
|
|
MASTER_SITES= http://oss.oetiker.ch/smokeping/pub/ \
|
|
|
|
http://smokeping.cs.pu.edu.tw/pub/
|
2002-04-01 12:46:58 +02:00
|
|
|
|
2014-01-29 10:17:41 +01:00
|
|
|
MAINTAINER= rodrigo@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Latency logging and graphing system
|
2002-04-01 12:46:58 +02:00
|
|
|
|
2014-07-14 16:17:01 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
LIB_DEPENDS= librrd.so:${PORTSDIR}/databases/rrdtool
|
2012-12-30 14:58:07 +01:00
|
|
|
BUILD_DEPENDS= p5-CGI-Session>=0:${PORTSDIR}/www/p5-CGI-Session \
|
|
|
|
p5-Digest-HMAC>=0:${PORTSDIR}/security/p5-Digest-HMAC \
|
2015-02-22 20:37:33 +01:00
|
|
|
p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
|
|
|
|
p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
|
|
|
|
p5-IO-Pty-Easy>=0:${PORTSDIR}/devel/p5-IO-Pty-Easy \
|
2012-12-30 14:58:07 +01:00
|
|
|
p5-SNMP_Session>=0:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
|
|
|
|
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
|
2015-03-22 01:11:02 +01:00
|
|
|
p5-CGI>=0:${PORTSDIR}/www/p5-CGI \
|
2012-12-30 14:58:07 +01:00
|
|
|
p5-FCGI>=0:${PORTSDIR}/www/p5-FCGI \
|
|
|
|
p5-Config-Grammar>=0:${PORTSDIR}/devel/p5-Config-Grammar \
|
2015-02-22 20:37:33 +01:00
|
|
|
p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6 \
|
|
|
|
p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
|
|
|
|
p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet \
|
|
|
|
p5-Net-OpenSSH>=0:${PORTSDIR}/net/p5-Net-OpenSSH \
|
|
|
|
p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap
|
2012-05-14 17:03:12 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2007-12-21 14:55:08 +01:00
|
|
|
|
2013-09-14 17:39:55 +02:00
|
|
|
USES= gmake perl5
|
2012-05-13 14:54:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= PERL=${PERL} PERL5LIB=${PREFIX}/smokeping/lib
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--sysconfdir=${ETCDIR} \
|
2015-04-20 21:06:29 +02:00
|
|
|
--localstatedir="${PREFIX}/var" \
|
2012-05-13 14:54:52 +02:00
|
|
|
--with-htdocs-dir=${PREFIX}/smokeping/htdocs \
|
|
|
|
--libdir=${PREFIX}/smokeping/lib
|
|
|
|
HTDOCSDIR= ${PREFIX}/smokeping/htdocs
|
2002-04-01 12:46:58 +02:00
|
|
|
|
2006-12-12 13:47:43 +01:00
|
|
|
USE_RC_SUBR= smokeping
|
|
|
|
|
2004-02-24 13:41:38 +01:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
|
2010-02-15 13:53:24 +01:00
|
|
|
USERS= smokeping
|
|
|
|
GROUPS= smokeping
|
2004-02-24 13:41:38 +01:00
|
|
|
|
2010-02-15 13:53:24 +01:00
|
|
|
SUB_FILES= pkg-deinstall pkg-message
|
|
|
|
SUB_LIST= USERS=${USERS} \
|
2012-05-13 14:54:52 +02:00
|
|
|
GROUPS=${GROUPS}
|
2002-04-01 12:46:58 +02:00
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
FPING_DESC= Support for fping probes
|
|
|
|
ECHOPING_DESC= Support for EchoPing probes
|
|
|
|
CURL_DESC= Support for Curl probes
|
|
|
|
RADIUS_DESC= Support for Radius probes
|
|
|
|
TELNET_DESC= Support for TelnetIOSPing probes
|
|
|
|
DNS_DESC= Support for AnotherDNS probes
|
|
|
|
|
2015-02-22 20:37:33 +01:00
|
|
|
OPTIONS_DEFINE= ECHOPING CURL RADIUS TELNET DNS FPING
|
2012-12-30 14:58:07 +01:00
|
|
|
OPTIONS_DEFAULT= FPING
|
2010-02-15 13:53:24 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2013-05-24 23:19:44 +02:00
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MFPING}
|
2010-02-15 13:53:24 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MECHOPING}
|
2010-02-15 13:53:24 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/echoping:${PORTSDIR}/net/echoping
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MCURL}
|
2010-02-15 13:53:24 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MRADIUS}
|
2012-06-30 14:42:52 +02:00
|
|
|
RUN_DEPENDS+= p5-Authen-Radius>=0:${PORTSDIR}/security/p5-Authen-Radius
|
2010-02-15 13:53:24 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MTELNET}
|
2012-06-30 14:42:52 +02:00
|
|
|
RUN_DEPENDS+= p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet
|
2010-02-15 13:53:24 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-30 14:58:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MDNS}
|
2012-06-30 14:42:52 +02:00
|
|
|
RUN_DEPENDS+= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
|
2010-02-15 13:53:24 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2015-04-13 00:25:25 +02:00
|
|
|
.if ${PERL_LEVEL} >= 502100
|
|
|
|
BUILD_DEPENDS+= p5-CGI-Fast>=0:${PORTSDIR}/www/p5-CGI-Fast
|
|
|
|
RUN_DEPENDS+= p5-CGI-Fast>=0:${PORTSDIR}/www/p5-CGI-Fast
|
|
|
|
.endif
|
|
|
|
|
2012-05-13 14:54:52 +02:00
|
|
|
# We will take these from CPAN instead
|
2004-02-24 13:41:38 +01:00
|
|
|
post-extract:
|
2012-05-13 14:54:52 +02:00
|
|
|
cd ${WRKSRC}/lib ; ${RM} BER.pm SNMP_util.pm SNMP_Session.pm
|
2005-10-06 14:44:03 +02:00
|
|
|
|
2004-02-24 13:41:38 +01:00
|
|
|
post-patch:
|
2007-12-21 14:55:08 +01:00
|
|
|
${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
2012-05-14 17:03:12 +02:00
|
|
|
${WRKSRC}/doc/Makefile.in \
|
|
|
|
${WRKSRC}/bin/smokeping \
|
|
|
|
${WRKSRC}/bin/smokeping_cgi \
|
|
|
|
${WRKSRC}/bin/tSmoke
|
2002-04-01 12:46:58 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-07-14 16:17:01 +02:00
|
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/smokeping/htdocs/img
|
|
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/var/smokeping
|
|
|
|
|
2004-02-24 13:41:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|