diff options
author | jnemeth <jnemeth@pkgsrc.org> | 2022-09-26 05:22:23 +0000 |
---|---|---|
committer | jnemeth <jnemeth@pkgsrc.org> | 2022-09-26 05:22:23 +0000 |
commit | 5d683f8437f3e4e0003f772f8e7ba101e122d73f (patch) | |
tree | 2367e4fabe98f346c0f355aec8a34a0dc1bf20b6 /comms | |
parent | b0acd22d9f5391e59abdcef9a07bfa63e9a5ed3b (diff) | |
download | pkgsrc-5d683f8437f3e4e0003f772f8e7ba101e122d73f.tar.gz |
Fix obsolete PERL and note that upstream no longer exists.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/op_panel/Makefile | 11 | ||||
-rw-r--r-- | comms/op_panel/distinfo | 3 | ||||
-rw-r--r-- | comms/op_panel/patches/patch-op__server.pl | 171 |
3 files changed, 179 insertions, 6 deletions
diff --git a/comms/op_panel/Makefile b/comms/op_panel/Makefile index 869e2e211d7..ef03d46a37b 100644 --- a/comms/op_panel/Makefile +++ b/comms/op_panel/Makefile @@ -1,14 +1,15 @@ -# $NetBSD: Makefile,v 1.19 2022/06/28 11:31:06 wiz Exp $ +# $NetBSD: Makefile,v 1.20 2022/09/26 05:22:23 jnemeth Exp $ # DISTNAME= op_panel-0.30 -#PKGREVISION= 9 -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= comms -MASTER_SITES= http://www.asternic.org/files/ +# now points to somebody's personal page +# MASTER_SITES= http://www.asternic.org/files/ MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= https://www.asternic.org/ +# now points to somebody's personal page +# HOMEPAGE= https://www.asternic.org/ COMMENT= Flash Operator Panel for Asterisk LICENSE= gnu-gpl-v2 diff --git a/comms/op_panel/distinfo b/comms/op_panel/distinfo index 690da15767d..d8753aa4a4d 100644 --- a/comms/op_panel/distinfo +++ b/comms/op_panel/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2021/10/26 10:06:02 nia Exp $ +$NetBSD: distinfo,v 1.6 2022/09/26 05:22:23 jnemeth Exp $ BLAKE2s (op_panel-0.30.tar.gz) = 91b260e8f1034760170211906b78760b6696e57181c6cc4ea3b705dc0cefc07c SHA512 (op_panel-0.30.tar.gz) = 1fe5a1b2f5d005aeb1adf8ea20f6ed1cd7bd6968f26a6e9947f72be2494dd8268ced212b0ffa501597f30859d8b73c5c57b6e2f3c17f1746674e1be5f96ed454 Size (op_panel-0.30.tar.gz) = 355782 bytes +SHA1 (patch-op__server.pl) = 9460da17aa849292f8cf06a9c9e608136d3cae6a diff --git a/comms/op_panel/patches/patch-op__server.pl b/comms/op_panel/patches/patch-op__server.pl new file mode 100644 index 00000000000..48beafe1c33 --- /dev/null +++ b/comms/op_panel/patches/patch-op__server.pl @@ -0,0 +1,171 @@ +$NetBSD: patch-op__server.pl,v 1.1 2022/09/26 05:22:23 jnemeth Exp $ + +* fixup obsolete PERL + +--- op_server.pl.orig 2009-06-22 18:06:11.000000000 +0000 ++++ op_server.pl +@@ -2068,7 +2068,7 @@ sub generate_linked_buttons_list { + my ( undef, $contexto1 ) = split( /\&/, $nroboton ); + if ( !defined($contexto1) ) { $contexto1 = ""; } + +- if ( defined( @{ $linkbot{"$nroboton"} } ) ) { ++ if ( $linkbot{"$nroboton"} ) { + log_debug( "$heading Esta definido linkbot {$nroboton}", 32 ) if DEBUG; + foreach ( @{ $linkbot{"$nroboton"} } ) { + log_debug( "$heading y contiene $_", 32 ) if DEBUG; +@@ -2152,7 +2152,7 @@ sub erase_all_sessions_from_channel { + delete $monitoring{$canalsesion}; + if ( keys(%cache_hit) ) { + for ( keys %cache_hit ) { +- if ( defined( @{ $cache_hit{$_} } ) ) { ++ if ( $cache_hit{$_} ) { + foreach my $val ( @{ $cache_hit{$_} } ) { + if ( $val eq $canal ) { + log_debug( "$heading borro cache $_", 128 ) if DEBUG; +@@ -2195,7 +2195,7 @@ sub erase_all_sessions_from_channel { + + if ( keys(%linkbot) ) { + for ( keys %linkbot ) { +- if ( defined( @{ $linkbot{$_} } ) ) { ++ if ( $linkbot{$_} ) { + my @final = (); + foreach my $val ( @{ $linkbot{$_} } ) { + log_debug( "$heading linkbot($_) ne $val ?", 64 ) if DEBUG; +@@ -2720,7 +2720,7 @@ sub procesa_bloque { + my $blaque = shift; + my $socket = shift; + my $astmanproxy_server = shift; +- my %bloque = %$blaque if defined(%$blaque); ++ my %bloque = %$blaque if %$blaque; + + my %hash_temporal = (); + my $evento = ""; +@@ -3125,9 +3125,9 @@ sub procesa_bloque { + } + + my $tempval = $config->{$contexto}{'attendant_failure_redirect_to'}; +- $tempval =~ s/\${CHANNEL}/$hash_temporal{Channel}/g; +- $tempval =~ s/\${EXTEN}/$part_ext[0]/g; +- $tempval =~ s/\${CONTEXT}/$part_ext[1]/g; ++ $tempval =~ s/\$\{CHANNEL}/$hash_temporal{Channel}/g; ++ $tempval =~ s/\$\{EXTEN}/$part_ext[0]/g; ++ $tempval =~ s/\$\{CONTEXT}/$part_ext[1]/g; + + if ( $tempval =~ m/\@/ ) { + ( $dst_exten, $dst_context ) = split( /\@/, $tempval, 2 ); +@@ -3254,15 +3254,15 @@ sub procesa_bloque { + + if ( $srv == $hash_temporal{Server} && "SIP/$chan_name" =~ m/$match/ ) { + while ( ( $key, $val ) = each(%tmphash) ) { +- $val =~ s/\${CONTEXT}/$ctx/g; +- $val =~ s/\${CALLERID}/$calid/g; +- $val =~ s/\${CLIDNUM}/$calidnum/g; +- $val =~ s/\${CLIDNAME}/$calidname/g; +- $val =~ s/\${VOICEMAILBOX}/$voicemailbox/g; +- $val =~ s/\${VOICEMAILBOXNUM}/$voicemailboxnum/g; +- $val =~ s/\${VOICEMAILBOXCONTEXT}/$voicemailboxcontext/g; +- $val =~ s/\${ACCOUNTCODE}/$accode/g; +- $val =~ s/\${CHANNEL}/$chan_name/g; ++ $val =~ s/\$\{CONTEXT}/$ctx/g; ++ $val =~ s/\$\{CALLERID}/$calid/g; ++ $val =~ s/\$\{CLIDNUM}/$calidnum/g; ++ $val =~ s/\$\{CLIDNAME}/$calidname/g; ++ $val =~ s/\$\{VOICEMAILBOX}/$voicemailbox/g; ++ $val =~ s/\$\{VOICEMAILBOXNUM}/$voicemailboxnum/g; ++ $val =~ s/\$\{VOICEMAILBOXCONTEXT}/$voicemailboxcontext/g; ++ $val =~ s/\$\{ACCOUNTCODE}/$accode/g; ++ $val =~ s/\$\{CHANNEL}/$chan_name/g; + $autosip{"$server^$chan_name"}{$key} = $val; + } + $autosip{"$server^$chan_name"}{channel} = "SIP/$chan_name"; +@@ -3435,7 +3435,7 @@ sub procesa_bloque { + my $item_temp = $item; + my $datoon = ""; + my $datooff = ""; +- $item_temp =~ s/\${value}/$valor/g; ++ $item_temp =~ s/\$\{value}/$valor/g; + my ( $comando, $datos ) = split( /=/, $item_temp ); + if ( $datos =~ /\|/ ) { + ( $datoon, $datooff ) = split( /\|/, $datos ); +@@ -5805,7 +5805,7 @@ sub digest_event_block { + if ( !defined($contexto1) ) { $contexto1 = ""; } + my $listabotones = ""; + +- if ( !defined( @{ $linkbot{"$server^$canal"} } ) ) { ++ if ( ! $linkbot{"$server^$canal"} ) { + push @{ $linkbot{"$server^$canal"} }, ""; + pop @{ $linkbot{"$server^$canal"} }; + log_debug( "$heading DEFINIENDO linkbot ($server^$canal)", 256 ) if DEBUG; +@@ -5987,7 +5987,7 @@ sub digest_event_block { + if ( $canalid !~ /^Agent/ ) { + + # settimer agent needs to be discarded +- if ( !defined( @{ $sesbot{$interno} } ) ) { ++ if ( ! $sesbot{$interno} ) { + push @{ $sesbot{$interno} }, ""; + pop @{ $sesbot{$interno} }; + } +@@ -8269,12 +8269,12 @@ sub compute_monitoring_filename { + } + $hasha{$key} = $val; + } +- $filename =~ s/\${CLIDNAME}/$hasha{CLIDNAME}/gi; +- $filename =~ s/\${CLIDNUM}/$hasha{CLIDNUM}/gi; +- $filename =~ s/\${CLID}/$hasha{CLID}/gi; +- $filename =~ s/\${UNIQUEID}/$hasha{UNIQUEID}/gi; +- $filename =~ s/\${CHANNEL}/$hasha{CHANNEL}/gi; +- $filename =~ s/\${LINK}/$hasha{LINK}/gi; ++ $filename =~ s/\$\{CLIDNAME}/$hasha{CLIDNAME}/gi; ++ $filename =~ s/\$\{CLIDNUM}/$hasha{CLIDNUM}/gi; ++ $filename =~ s/\$\{CLID}/$hasha{CLID}/gi; ++ $filename =~ s/\$\{UNIQUEID}/$hasha{UNIQUEID}/gi; ++ $filename =~ s/\$\{CHANNEL}/$hasha{CHANNEL}/gi; ++ $filename =~ s/\$\{LINK}/$hasha{LINK}/gi; + $filename = formatdate($filename); + $filename =~ s/\//-/gi; + push @return, $filename; +@@ -8479,7 +8479,7 @@ sub first_client_status { + } + if ( keys(%botonqueuemember) ) { + for $interno ( keys %botonqueuemember ) { +- if ( defined( @{ $botonqueuemember{$interno} } ) ) { ++ if ( $botonqueuemember{$interno} ) { + my %temphash = (); + foreach my $val ( @{ $botonqueuemember{$interno} } ) { + my @datos = split( /\|/, $val ); +@@ -9700,7 +9700,7 @@ sub format_clid { + } + + $devuelve = join( "", reverse @result ); +- $devuelve =~ s/\${CLIDNAME}/$name/gi; ++ $devuelve =~ s/\$\{CLIDNAME}/$name/gi; + return $devuelve; + } + +@@ -10449,7 +10449,7 @@ sub print_cachehit { + for ( keys %cache_hit ) { + print "key $_\n"; + +- if ( defined( @{ $cache_hit{$_} } ) ) { ++ if ( $cache_hit{$_} ) { + my @final = (); + foreach my $val ( @{ $cache_hit{$_} } ) { + print "\tcache_hit($_) = $val\n"; +@@ -10471,7 +10471,7 @@ sub print_linkbot { + print "---------------------------------------------------\n"; + if ( keys(%linkbot) ) { + for ( keys %linkbot ) { +- if ( defined( @{ $linkbot{$_} } ) ) { ++ if ( $linkbot{$_} ) { + my @final = (); + foreach my $val ( @{ $linkbot{$_} } ) { + print "\tlinkbot($_) = $val\n"; +@@ -10495,7 +10495,7 @@ sub print_sesbot { + print "---------------------------------------------------\n"; + if ( keys(%sesbot) ) { + for ( keys %sesbot ) { +- if ( defined( @{ $sesbot{$_} } ) ) { ++ if ( $sesbot{$_} ) { + my @final = (); + foreach my $val ( @{ $sesbot{$_} } ) { + print "\tsesbot($_) = $val\n"; |