aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-radiusperl
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:31:04 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:31:04 +0000
commit2a76ac8b20fca9977eb079726f36559901bc83df (patch)
tree5b896fa8eccb1a6ca84237bcf1b7906fbb36933f /community/perl-radiusperl
parent06c59d36b9165e719602e1867000a8fa8c38dc6d (diff)
downloadaports-2a76ac8b20fca9977eb079726f36559901bc83df.tar.bz2
aports-2a76ac8b20fca9977eb079726f36559901bc83df.tar.xz
community/perl-radiusperl: modernize and add check
Diffstat (limited to 'community/perl-radiusperl')
-rw-r--r--community/perl-radiusperl/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/community/perl-radiusperl/APKBUILD b/community/perl-radiusperl/APKBUILD
index a036e9648e..9dcc4adaf2 100644
--- a/community/perl-radiusperl/APKBUILD
+++ b/community/perl-radiusperl/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-radiusperl
_pkgreal=Authen-Radius
pkgver=0.23
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module for RadiusPerl"
url="http://search.cpan.org/dist/RadiusPerl/"
arch="noarch"
@@ -16,23 +16,26 @@ makedepends="perl-dev freeradius-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
mkdir -p ${pkgdir}/etc/raddb
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
sed -i "s:/etc/raddb:$pkgdir/etc/raddb:" install-radius-db.PL
make
}
+check() {
+ cd "$builddir"
+ make test
+}
+
package() {
- cd "$_builddir"
+ cd "$builddir"
mkdir -p ${pkgdir}/etc/raddb
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="556c5bea85f67ab83ec247a74c65e27e Authen-Radius-0.23.tar.gz"
-sha256sums="43c0f3a5bee279156de78b7fbd99f22401994ae82e1adeda09c88b5c53dd50c3 Authen-Radius-0.23.tar.gz"
sha512sums="110dde66ebb23cea256c093e139deb51eb755c051deaf1e221be20b9a7d689b234d2033d911c30f4212f47848751793c7c33393841270e230334f8528c68f61a Authen-Radius-0.23.tar.gz"