# Created by: Shaun Amott # $FreeBSD$ PORTNAME= netdisco PORTVERSION= 2.032005 CATEGORIES= net-mgmt perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:OLIVER DISTNAME= App-Netdisco-${PORTVERSION} MAINTAINER= dgeo@centrale-marseille.fr COMMENT= Network discovery/management tool with web console LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENCE BUILD_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg \ p5-Net-SNMP>=6.0.1:${PORTSDIR}/net-mgmt/p5-Net-SNMP \ p5-Algorithm-Cron>=0.07:${PORTSDIR}/devel/p5-Algorithm-Cron \ p5-AnyEvent>=7.05:${PORTSDIR}/devel/p5-AnyEvent \ p5-AnyEvent-DNS-EtcHosts>=0.0103:${PORTSDIR}/dns/p5-AnyEvent-DNS-EtcHosts \ p5-App-cpanminus>=1.6108:${PORTSDIR}/devel/p5-App-cpanminus \ p5-App-local-lib-helper>=0.07:${PORTSDIR}/devel/p5-App-local-lib-helper \ p5-Archive-Extract>=0:${PORTSDIR}/archivers/p5-Archive-Extract \ p5-CGI-Expand>=2.05:${PORTSDIR}/www/p5-CGI-Expand \ p5-Data-Printer>=0:${PORTSDIR}/devel/p5-Data-Printer \ p5-DBIx-Class-Helpers>=2.023007:${PORTSDIR}/databases/p5-DBIx-Class-Helpers \ p5-Daemon-Control>=0.001.005:${PORTSDIR}/devel/p5-Daemon-Control \ p5-Dancer>=1.3132:${PORTSDIR}/www/p5-Dancer \ p5-Dancer-Plugin-DBIC>=0.2001:${PORTSDIR}/databases/p5-Dancer-Plugin-DBIC \ p5-Dancer-Plugin-Auth-Extensible>=0.30:${PORTSDIR}/security/p5-Dancer-Plugin-Auth-Extensible \ p5-Dancer-Plugin-Passphrase>=2.0.1:${PORTSDIR}/security/p5-Dancer-Plugin-Passphrase \ p5-Env-Path>=0:${PORTSDIR}/devel/p5-Env-Path \ p5-File-ShareDir>=1.03:${PORTSDIR}/devel/p5-File-ShareDir \ p5-File-Slurp>=9999.19:${PORTSDIR}/devel/p5-File-Slurp \ p5-Guard>=1.022:${PORTSDIR}/devel/p5-Guard \ p5-Graph>=0:${PORTSDIR}/math/p5-Graph \ p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz \ p5-HTML-Parser>=3.70:${PORTSDIR}/www/p5-HTML-Parser \ p5-HTTP-Tiny>=0.029:${PORTSDIR}/www/p5-HTTP-Tiny \ p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \ p5-List-MoreUtils>=0.33:${PORTSDIR}/lang/p5-List-MoreUtils \ p5-Log-Message-Simple>=0:${PORTSDIR}/devel/p5-Log-Message-Simple \ p5-Module-Find>=0.12:${PORTSDIR}/devel/p5-Module-Find \ p5-Module-Load>=0.32:${PORTSDIR}/devel/p5-Module-Load \ p5-Moo>=1.001000:${PORTSDIR}/devel/p5-Moo \ p5-MCE>=1.515:${PORTSDIR}/devel/p5-MCE \ p5-Net-DNS>=0.72:${PORTSDIR}/dns/p5-Net-DNS \ p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap \ p5-Net-OpenSSH>=0:${PORTSDIR}/net/p5-Net-OpenSSH \ p5-NetAddr-MAC>=0:${PORTSDIR}/net/p5-NetAddr-MAC \ p5-NetAddr-IP>=4.068:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \ p5-Path-Class>=0.32:${PORTSDIR}/devel/p5-Path-Class \ p5-Plack>=1.0023:${PORTSDIR}/www/p5-Plack \ p5-Plack-Middleware-Expires>=0.03:${PORTSDIR}/www/p5-Plack-Middleware-Expires \ p5-Plack-Middleware-ReverseProxy>=0.15:${PORTSDIR}/www/p5-Plack-Middleware-ReverseProxy \ p5-Role-Tiny>=1.002005:${PORTSDIR}/devel/p5-Role-Tiny \ p5-Sereal>=0:${PORTSDIR}/converters/p5-Sereal \ p5-Socket6>=0.23:${PORTSDIR}/net/p5-Socket6 \ p5-Starman>=0.4008:${PORTSDIR}/www/p5-Starman \ p5-SNMP-Info>=3.18:${PORTSDIR}/net-mgmt/p5-SNMP-Info \ p5-SQL-Translator>=0.11018:${PORTSDIR}/databases/p5-SQL-Translator \ p5-Template-Toolkit>=2.24:${PORTSDIR}/www/p5-Template-Toolkit \ p5-Template-Plugin-CSV>=0.04:${PORTSDIR}/textproc/p5-Template-Plugin-CSV \ p5-Template-Plugin-Number-Format>=1.02:${PORTSDIR}/www/p5-Template-Plugin-Number-Format \ p5-Term-UI>=0:${PORTSDIR}/devel/p5-Term-UI \ p5-Text-CSV>=0:${PORTSDIR}/textproc/p5-Text-CSV \ p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \ p5-URI>=0:${PORTSDIR}/net/p5-URI \ p5-URL-Encode>=0.01:${PORTSDIR}/www/p5-URL-Encode \ p5-YAML>=0.84:${PORTSDIR}/textproc/p5-YAML \ p5-YAML-LibYAML>=0.41:${PORTSDIR}/textproc/p5-YAML-LibYAML RUN_DEPENDS:= ${BUILD_DEPENDS} USERS= netdisco GROUPS= netdisco SUB_FILES= pkg-message netdiscologs.conf.sample localenv SUB_LIST= SITE_PERL=${STAGEDIR}${SITE_PERL} \ NETDISCO_USER=${USERS} \ NETDISCO_GROUP=${GROUPS} \ ETCDIR=${ETCDIR} \ ETCDIR_REL=${ETCDIR_REL} PLIST_SUB+= ETCDIR=${ETCDIR} USES= perl5 pgsql USE_PERL5= configure USE_RC_SUBR= netdisco post-install: ${MKDIR} ${STAGEDIR}${ETCDIR}/perl5/bin ${INSTALL_SCRIPT} ${WRKDIR}/localenv ${STAGEDIR}${ETCDIR}/perl5/bin ${INSTALL_DATA} ${WRKDIR}/netdiscologs.conf.sample ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}${ETCDIR}/environments ${INSTALL_DATA} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/auto/share/dist/App-Netdisco/environments/deployment.yml \ ${STAGEDIR}${ETCDIR}/environments/deployment.yml.sample .include