Index: head/net-mgmt/Makefile =================================================================== --- head/net-mgmt/Makefile (revision 393855) +++ head/net-mgmt/Makefile (revision 393856) @@ -1,338 +1,339 @@ # $FreeBSD$ # COMMENT = Network management tools SUBDIR += 2ping SUBDIR += TkTopNetFlows SUBDIR += aggregate SUBDIR += aircrack-ng SUBDIR += ap-utils SUBDIR += argus3 SUBDIR += argus3-clients SUBDIR += arpalert SUBDIR += arpscan SUBDIR += arpwatch SUBDIR += arts++ SUBDIR += bandwidthd SUBDIR += bgpq SUBDIR += bgpq3 SUBDIR += bpft SUBDIR += braa SUBDIR += bsnmp-jails SUBDIR += bsnmp-regex SUBDIR += bsnmp-ucd SUBDIR += bsnmptools SUBDIR += bwm-ng SUBDIR += cacti SUBDIR += cacti-spine SUBDIR += ccnet SUBDIR += cdpd SUBDIR += cdpr SUBDIR += centreon-clib SUBDIR += check_logfiles SUBDIR += check_multi SUBDIR += check_mysql_health SUBDIR += chillispot SUBDIR += choparp SUBDIR += cidr SUBDIR += ciscoconf SUBDIR += clog SUBDIR += cnagios SUBDIR += collectd SUBDIR += collectd5 SUBDIR += confregdecode SUBDIR += coovachilli SUBDIR += cowpatty SUBDIR += cricket SUBDIR += darkstat SUBDIR += devmon SUBDIR += devmon-templates SUBDIR += dhcdrop SUBDIR += dhcp_probe SUBDIR += disco SUBDIR += docsis SUBDIR += driftnet SUBDIR += ehnt SUBDIR += etherape SUBDIR += ettercap SUBDIR += ezradius SUBDIR += fetchconfig SUBDIR += flow-extract SUBDIR += flow-tools SUBDIR += flow-tools-ng SUBDIR += flowd SUBDIR += flowviewer SUBDIR += fprobe SUBDIR += glpi-plugins-fusioninventory-server SUBDIR += grepcidr SUBDIR += grepip SUBDIR += gsnmp SUBDIR += guifi-snpservices SUBDIR += hastmon SUBDIR += hawk SUBDIR += icinga SUBDIR += icinga2 SUBDIR += icli SUBDIR += icmpmonitor SUBDIR += icmpquery SUBDIR += iftop SUBDIR += iog SUBDIR += ipacctd SUBDIR += ipaudit SUBDIR += ipcad SUBDIR += ipcalc SUBDIR += ipfm SUBDIR += ipplan SUBDIR += ipv6calc SUBDIR += ipv6gen SUBDIR += ipv6mon SUBDIR += irrtoolset SUBDIR += isic SUBDIR += jnettop SUBDIR += kismet SUBDIR += lanmap SUBDIR += lg SUBDIR += librenms SUBDIR += libsmi SUBDIR += lldpd SUBDIR += mbrowse SUBDIR += mk-livestatus SUBDIR += monitoring-plugins SUBDIR += mrtg SUBDIR += mrtg-ping-probe SUBDIR += mtrace SUBDIR += nagcon SUBDIR += nagios SUBDIR += nagios-certexp-plugin SUBDIR += nagios-check_bacula SUBDIR += nagios-check_bacula5 SUBDIR += nagios-check_clamav SUBDIR += nagios-check_cpu_usage SUBDIR += nagios-check_dhcp.pl SUBDIR += nagios-check_email_delivery SUBDIR += nagios-check_hdd_health SUBDIR += nagios-check_hp_bladechassis SUBDIR += nagios-check_memcached_paranoid SUBDIR += nagios-check_mysql_slave SUBDIR += nagios-check_netsnmp SUBDIR += nagios-check_ports SUBDIR += nagios-check_postgres SUBDIR += nagios-check_puppet SUBDIR += nagios-check_relayd_status SUBDIR += nagios-check_smartmon SUBDIR += nagios-check_tftp SUBDIR += nagios-geom SUBDIR += nagios-openldap-plugins SUBDIR += nagios-pf-plugin SUBDIR += nagios-plugins SUBDIR += nagios-snmp-plugins SUBDIR += nagios-snmp-plugins-extras SUBDIR += nagios-spamd-plugin SUBDIR += nagios4 SUBDIR += nagiosagent SUBDIR += nagiosgraph SUBDIR += nagiosql SUBDIR += nagircbot SUBDIR += nagstamon SUBDIR += nagtail SUBDIR += nagvis SUBDIR += nat SUBDIR += nbtscan SUBDIR += ndoutils SUBDIR += ndpmon SUBDIR += nedi SUBDIR += nefu SUBDIR += net-snmp SUBDIR += netams SUBDIR += netdisco SUBDIR += netdisco-mibs SUBDIR += netdot SUBDIR += netleak SUBDIR += netmagis-common SUBDIR += netmagis-database SUBDIR += netmagis-detecteq SUBDIR += netmagis-metro SUBDIR += netmagis-servers SUBDIR += netmagis-topo SUBDIR += netmagis-utils SUBDIR += netmagis-www SUBDIR += netmask SUBDIR += netmond SUBDIR += netspoc SUBDIR += netustad SUBDIR += netwag SUBDIR += netwox SUBDIR += netxms SUBDIR += nfdump SUBDIR += nfsen SUBDIR += ng_ipacct SUBDIR += nitpicker SUBDIR += nrpe SUBDIR += nrpe-ssl SUBDIR += nsca SUBDIR += nsca-client SUBDIR += nsca-ng SUBDIR += nsca-ng-client SUBDIR += nsca27 SUBDIR += nsca27-client SUBDIR += nstreams SUBDIR += observium SUBDIR += ocsinventory-agent SUBDIR += ocsinventory-ng SUBDIR += omping SUBDIR += openlldp SUBDIR += p0f SUBDIR += p0f2 SUBDIR += p5-AnyEvent-SNMP SUBDIR += p5-BigIP-iControl SUBDIR += p5-Cflow SUBDIR += p5-Cisco-Reconfig SUBDIR += p5-Data-Validate-IP SUBDIR += p5-FusionInventory-Agent SUBDIR += p5-FusionInventory-Agent-Task-NetDiscovery SUBDIR += p5-FusionInventory-Agent-Task-SNMPQuery SUBDIR += p5-GRNOC-Config SUBDIR += p5-GRNOC-TL1 SUBDIR += p5-MRTG-Parse SUBDIR += p5-Mon SUBDIR += p5-Monitoring-Plugin SUBDIR += p5-NSNMP SUBDIR += p5-Nagios-Object SUBDIR += p5-Nagios-Plugin SUBDIR += p5-Nagios-Plugin-Beanstalk SUBDIR += p5-Nagios-Plugin-LDAP SUBDIR += p5-Nagios-Plugins-Memcached SUBDIR += p5-Net-ACL SUBDIR += p5-Net-Abuse-Utils SUBDIR += p5-Net-Abuse-Utils-Spamhaus SUBDIR += p5-Net-CIDR SUBDIR += p5-Net-ILO SUBDIR += p5-Net-IP SUBDIR += p5-Net-IP-Match-Regexp SUBDIR += p5-Net-IP-Match-XS SUBDIR += p5-Net-IP-Resolver SUBDIR += p5-Net-IPAddress SUBDIR += p5-Net-IPv4Addr SUBDIR += p5-Net-IPv6Addr SUBDIR += p5-Net-NSCA-Client SUBDIR += p5-Net-Netmask + SUBDIR += p5-Net-OpenVPN-Manage SUBDIR += p5-Net-SNMP SUBDIR += p5-Net-SNMP-Util SUBDIR += p5-Net-SNMPTrapd SUBDIR += p5-Net-Telnet-Cisco-IOS SUBDIR += p5-NetAddr-IP SUBDIR += p5-NetAddr-IP-Lite SUBDIR += p5-NetApp SUBDIR += p5-POE-Component-SNMP SUBDIR += p5-SNMP-Info SUBDIR += p5-SNMP-MIB-Compiler SUBDIR += p5-SNMP-Simple SUBDIR += p5-SNMP-Trapinfo SUBDIR += p5-SNMP-Util SUBDIR += p5-SNMP_Session SUBDIR += p5-Telnet-Cisco SUBDIR += p5-Tie-NetAddr-IP SUBDIR += p5-Xymon SUBDIR += p5-Xymon-Client SUBDIR += p5-Xymon-Server SUBDIR += p5-Zenoss SUBDIR += p5-jmx4perl SUBDIR += packit SUBDIR += pads SUBDIR += pancho SUBDIR += pandorafms_agent SUBDIR += pandorafms_console SUBDIR += pandorafms_server SUBDIR += percona-monitoring-plugins SUBDIR += pftabled SUBDIR += php5-snmp SUBDIR += php55-snmp SUBDIR += php56-snmp SUBDIR += phpip SUBDIR += phpipam SUBDIR += phpweathermap SUBDIR += pixilate SUBDIR += pktstat SUBDIR += pmacct SUBDIR += pnp SUBDIR += pnp-icinga SUBDIR += portmon SUBDIR += py-flowtools SUBDIR += py-ipcalc SUBDIR += py-ipy SUBDIR += py-pyang SUBDIR += py-snmp4 SUBDIR += py-snmp4-apps SUBDIR += py-snmp4-mibs SUBDIR += py-yapsnmp SUBDIR += qkismet SUBDIR += rackmonkey SUBDIR += rancid SUBDIR += rancid3 SUBDIR += rate SUBDIR += rcpd SUBDIR += remarp SUBDIR += riemann SUBDIR += rotorouter SUBDIR += routers2 SUBDIR += routers2-extensions SUBDIR += routers2-extras SUBDIR += rrdbot SUBDIR += rubygem-blimpy SUBDIR += rubygem-snmp SUBDIR += rubygem-visage-app SUBDIR += sblim-wbemcli SUBDIR += scli SUBDIR += sdig SUBDIR += seafile SUBDIR += seafile-gui SUBDIR += send SUBDIR += sendip SUBDIR += sipcalc SUBDIR += sjitter SUBDIR += slate SUBDIR += smokeping SUBDIR += snmp++ SUBDIR += snmp4nagios SUBDIR += snmptt SUBDIR += softflowd SUBDIR += spectools SUBDIR += ssgless SUBDIR += statsd SUBDIR += statsite SUBDIR += subcalc SUBDIR += sx SUBDIR += sysmon SUBDIR += tcpreplay SUBDIR += tcptrack SUBDIR += torrus SUBDIR += unifi2 SUBDIR += unifi3 SUBDIR += unifi4 SUBDIR += victorops-nagios SUBDIR += vidalia SUBDIR += virt-viewer SUBDIR += wdiag SUBDIR += weathermap SUBDIR += weplab SUBDIR += whatmask SUBDIR += wifimgr SUBDIR += wmi-client SUBDIR += xymon-client SUBDIR += xymon-server SUBDIR += yaf SUBDIR += zabbix2-agent SUBDIR += zabbix2-frontend SUBDIR += zabbix2-proxy SUBDIR += zabbix2-server SUBDIR += zabbix22-agent SUBDIR += zabbix22-frontend SUBDIR += zabbix22-proxy SUBDIR += zabbix22-server SUBDIR += zabbix24-agent SUBDIR += zabbix24-frontend SUBDIR += zabbix24-proxy SUBDIR += zabbix24-server .include Index: head/net-mgmt/p5-Net-OpenVPN-Manage/Makefile =================================================================== --- head/net-mgmt/p5-Net-OpenVPN-Manage/Makefile (nonexistent) +++ head/net-mgmt/p5-Net-OpenVPN-Manage/Makefile (revision 393856) @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= Net-OpenVPN-Manage +PORTVERSION= 0.02 +CATEGORIES= net-mgmt perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= Manage an OpenVPN process via its management port + +LICENSE= ART10 GPLv2 +LICENSE_COMB= dual + +RUN_DEPENDS= p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet + +USES= perl5 +USE_PERL5= configure + +.include Property changes on: head/net-mgmt/p5-Net-OpenVPN-Manage/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/p5-Net-OpenVPN-Manage/distinfo =================================================================== --- head/net-mgmt/p5-Net-OpenVPN-Manage/distinfo (nonexistent) +++ head/net-mgmt/p5-Net-OpenVPN-Manage/distinfo (revision 393856) @@ -0,0 +1,2 @@ +SHA256 (Net-OpenVPN-Manage-0.02.tar.gz) = b7fd691c24e4fbc78c2af992550abc96bf0db48d6f9e1406f0ebcb22ba0eeb57 +SIZE (Net-OpenVPN-Manage-0.02.tar.gz) = 12066 Property changes on: head/net-mgmt/p5-Net-OpenVPN-Manage/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/p5-Net-OpenVPN-Manage/files/patch-lib_Net_OpenVPN_Manage.pm =================================================================== --- head/net-mgmt/p5-Net-OpenVPN-Manage/files/patch-lib_Net_OpenVPN_Manage.pm (nonexistent) +++ head/net-mgmt/p5-Net-OpenVPN-Manage/files/patch-lib_Net_OpenVPN_Manage.pm (revision 393856) @@ -0,0 +1,104 @@ +--- lib/Net/OpenVPN/Manage.pm.orig 2006-07-10 18:21:19 UTC ++++ lib/Net/OpenVPN/Manage.pm +@@ -1,3 +1,5 @@ ++# -*- mode: cperl; mode: follow; -*- ++ + package Net::OpenVPN::Manage; + + use strict; +@@ -217,6 +219,84 @@ sub status_ref() { + return $ref; + } + ++# $hash_ref = $vpn->status_hash(); ++sub status_hash() { ++ my $ref; ++ my $self = shift; ++ my $arg = 2; ++ my $telnet = $self->{objects}{_telnet_}; ++ my @output = $telnet->cmd(String => 'status '.$arg, Prompt => '/(SUCCESS:.*\n|ERROR:.*\n|END.*\n)/'); ++ unless ($telnet->last_prompt =~ /(SUCCESS:.*|END.*\n)/){ ++ $self->{error_msg} = $telnet->last_prompt(); ++ return 0; ++ } ++ unless ($telnet->last_prompt =~ /END.*\n/){ ++ return $telnet->last_prompt(); ++ } ++ my ( $i, @arr ); ++ foreach my $ln ( @output ){ ++ chomp $ln; ++ if (( $ln eq '' ) || ( $ln =~ /^\s*$/ )){ ++ next; ++ } elsif ( $ln =~ s/^(CLIENT_LIST),// ) { ++ @arr = split ',', $ln; ++ chomp @arr; ++ $ref->{$1}->{$arr[0]} = { ++ ip_real => $arr[1], ++ ip_virt => $arr[2], ++ b_recv => $arr[3], ++ b_sent => $arr[4], ++ ts => $arr[5], ++ ts_s => $arr[6], ++ name => $arr[7], ++ }; ++ undef @arr; ++ } elsif ( $ln =~ s/^(ROUTING_TABLE),// ) { ++ @arr = split ',', $ln; ++ chomp @arr; ++ $ref->{$1}->{$arr[1]} = { ++ ip_virt => $arr[0], ++ ip_real => $arr[2], ++ ts => $arr[3], ++ ts_s => $arr[4], ++ }; ++ undef @arr; ++ } elsif ( $ln =~ /^HEADER,ROUTING_TABLE/ ) { ++ @arr = split ',', $ln; ++ chomp @arr; ++ $ref->{HEADER}->{$arr[1]} = { ++ ip_virt => 'Virtual Address', ++ cn => 'Common Name', ++ ip_real => 'Real Address', ++ ts => 'Last Ref', ++ ts_s => 'Last Ref (time_t)', ++ }; ++ undef @arr; ++ } elsif ( $ln =~ /^HEADER,CLIENT_LIST/ ) { ++ @arr = split ',', $ln; ++ chomp @arr; ++ $ref->{HEADER}->{$arr[1]} = { ++ cn => 'Common Name', ++ ip_real => 'Real Address', ++ ip_virt => 'Virtual Address', ++ b_recv => 'Bytes Received', ++ b_sent => 'Bytes Sent', ++ ts => 'Connected Since', ++ ts_s => 'Connected Since (time_t)', ++ name => 'Username', ++ }; ++ undef @arr; ++ } elsif ( $ln =~ s/^(TITLE),// ){ ++ $ref->{$1}=$ln; ++ } elsif ( $ln =~ s/^(TIME),// ){ ++ $ref->{$1}=$ln; ++ } elsif ( $ln =~ s/^(GLOBAL_STATS),// ){ ++ $ref->{$1}=$ln; ++ } ++ } ++ return $ref; ++} ++ + # Not implemented + sub test { + my $self = shift; +@@ -478,6 +558,10 @@ If called without an argument, it will r + # Print the connection status page using the version 2 format. + print $vpn->status(2); + ++=item $vpn->status_hash( ); ++ ++Returns the active connections status information as a hash to hashes. ++ + =item $vpn->status_ref( ); + + Returns the active connections status information as a reference to a hash of arrays. Property changes on: head/net-mgmt/p5-Net-OpenVPN-Manage/files/patch-lib_Net_OpenVPN_Manage.pm ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-descr =================================================================== --- head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-descr (nonexistent) +++ head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-descr (revision 393856) @@ -0,0 +1,4 @@ +This module connects to the OpenVPN management interface, executes commands +on the interface, and returns the results or errors that result. + +WWW: http://search.cpan.org/dist/Net-OpenVPN-Manage/ Property changes on: head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-plist =================================================================== --- head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-plist (nonexistent) +++ head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-plist (revision 393856) @@ -0,0 +1,3 @@ +%%PERL5_MAN3%%/Net::OpenVPN::Manage.3.gz +%%SITE_PERL%%/Net/OpenVPN/Manage.html +%%SITE_PERL%%/Net/OpenVPN/Manage.pm Property changes on: head/net-mgmt/p5-Net-OpenVPN-Manage/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property