2018-07-09 09:05:16 +00:00

42 lines
1.3 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-radiusperl
_pkgreal=Authen-Radius
pkgver=0.27
pkgrel=0
pkgdesc="Perl module for RadiusPerl"
url="http://search.cpan.org/dist/RadiusPerl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-data-hexdump perl-digest-perl-md5 perl-data-dumper"
depends="$cpandepends"
makedepends="perl-dev freeradius-dev $cpanmakedepends"
checkdepends="perl-test-nowarnings perl-net-ip"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PO/PORTAONE/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
mkdir -p ${pkgdir}/etc/raddb
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"
mkdir -p ${pkgdir}/etc/raddb
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="0b039b3b5b434225a92596075a3943f278f87c634c6764de477a31de515065d1ded762b38621c338785f73fe2a0e132d835a33a00891707950777a16e0277f67 Authen-Radius-0.27.tar.gz"