[arch-commits] Commit in perl-authen-radius/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Jun 1 11:26:42 UTC 2017


    Date: Thursday, June 1, 2017 @ 11:26:41
  Author: foutrelis
Revision: 232189

archrelease: copy trunk to community-staging-any

Added:
  perl-authen-radius/repos/community-staging-any/
  perl-authen-radius/repos/community-staging-any/PKGBUILD
    (from rev 232187, perl-authen-radius/trunk/PKGBUILD)
  perl-authen-radius/repos/community-staging-any/undef-warn-fix.patch
    (from rev 232187, perl-authen-radius/trunk/undef-warn-fix.patch)

----------------------+
 PKGBUILD             |   35 +++++++++++++++++++++++++++++++++++
 undef-warn-fix.patch |   14 ++++++++++++++
 2 files changed, 49 insertions(+)

Copied: perl-authen-radius/repos/community-staging-any/PKGBUILD (from rev 232187, perl-authen-radius/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2017-06-01 11:26:41 UTC (rev 232189)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=perl-authen-radius
+pkgver=0.26
+pkgrel=2
+pkgdesc="perl radius client"
+arch=('any')
+url="http://search.cpan.org/dist/Authen-Radius/"
+#url="http://search.cpan.org/dist/RadiusPerl"
+license=('GPL' 'PerlArtistic')
+depends=('perl-data-hexdump>=0.02')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/P/PO/PORTAONE/Authen-Radius-$pkgver.tar.gz
+	undef-warn-fix.patch)
+sha256sums=('4f272c19b8a9f6514a1107e98efae6773208233df4db11f2dc4764b4784b17c3'
+            '61357e54d3d6e9e609aebd3dcd22ea84fb49bce336fff87b2926ceccffc73bed')
+
+prepare() {
+  cd  "$srcdir"/Authen-Radius-$pkgver
+#  patch -p1 <"$srcdir"/undef-warn-fix.patch
+}
+
+build() {
+  cd  "$srcdir"/Authen-Radius-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd  "$srcdir"/Authen-Radius-$pkgver
+  make install DESTDIR="$pkgdir"
+  find "$pkgdir" -name '.packlist' -delete
+  find "$pkgdir" -name '*.pod' -delete
+}

Copied: perl-authen-radius/repos/community-staging-any/undef-warn-fix.patch (from rev 232187, perl-authen-radius/trunk/undef-warn-fix.patch)
===================================================================
--- community-staging-any/undef-warn-fix.patch	                        (rev 0)
+++ community-staging-any/undef-warn-fix.patch	2017-06-01 11:26:41 UTC (rev 232189)
@@ -0,0 +1,14 @@
+diff --git a/Radius.pm b/Radius.pm
+index db56f23..b88db32 100644
+--- a/Radius.pm
++++ b/Radius.pm
+@@ -436,7 +436,8 @@ sub vendorID ($) {
+ 	return defined $dict_vendor_name{ $attr->{'Vendor'} }{'id'} ? $dict_vendor_name{ $attr->{'Vendor'} }{'id'} : int($attr->{'Vendor'});
+     } else {
+ 	# look up vendor by attribute name
+-	my $vendor_name = $dict_name{$attr->{'Name'}}{'vendor'};
++	my $vendor_name = defined ($dict_name{$attr->{'Name'}}{'vendor'}) ?
++	    $dict_name{$attr->{'Name'}}{'vendor'} : 'not defined';
+ 	my $vendor_id = defined ($dict_vendor_name{$vendor_name}{'id'}) ?
+ 	    $dict_vendor_name{$vendor_name}{'id'} : 'not defined';
+ 	return $vendor_id;



More information about the arch-commits mailing list