pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/op_panel



Module Name:    pkgsrc
Committed By:   jnemeth
Date:           Mon Sep 26 05:22:23 UTC 2022

Modified Files:
        pkgsrc/comms/op_panel: Makefile distinfo
Added Files:
        pkgsrc/comms/op_panel/patches: patch-op__server.pl

Log Message:
Fix obsolete PERL and note that upstream no longer exists.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/comms/op_panel/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/comms/op_panel/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/op_panel/patches/patch-op__server.pl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/op_panel/Makefile
diff -u pkgsrc/comms/op_panel/Makefile:1.19 pkgsrc/comms/op_panel/Makefile:1.20
--- pkgsrc/comms/op_panel/Makefile:1.19 Tue Jun 28 11:31:06 2022
+++ pkgsrc/comms/op_panel/Makefile      Mon Sep 26 05:22:23 2022
@@ -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@localhost
-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
 

Index: pkgsrc/comms/op_panel/distinfo
diff -u pkgsrc/comms/op_panel/distinfo:1.5 pkgsrc/comms/op_panel/distinfo:1.6
--- pkgsrc/comms/op_panel/distinfo:1.5  Tue Oct 26 10:06:02 2021
+++ pkgsrc/comms/op_panel/distinfo      Mon Sep 26 05:22:23 2022
@@ -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

Added files:

Index: pkgsrc/comms/op_panel/patches/patch-op__server.pl
diff -u /dev/null pkgsrc/comms/op_panel/patches/patch-op__server.pl:1.1
--- /dev/null   Mon Sep 26 05:22:23 2022
+++ pkgsrc/comms/op_panel/patches/patch-op__server.pl   Mon Sep 26 05:22:23 2022
@@ -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";



Home | Main Index | Thread Index | Old Index