blob: 1d3ea368f64ff6fd0ece90c7513bc246742e6c5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-authen-radius
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Authen-Radius
pkgver=0.32
pkgrel=0
pkgdesc="Perl module for Authen-Radius"
url="https://metacpan.org/release/Authen-Radius/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-net-ip perl-data-hexdump"
makedepends="perl-dev freeradius-dev "
checkdepends="perl-test-nowarnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PO/PORTAONE/Authen-Radius-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
replaces="perl-radiusperl"
provides="perl-radiusperl"
build() {
mkdir -p $pkgdir/etc/raddb
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
sed -i "s:/etc/raddb:$pkgdir/etc/raddb:" install-radius-db.PL
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
mkdir -p $pkgdir/etc/raddb
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="323bddead9465d60da8d1b0f4500fec436c14a8c82552b24da54a6798c0583dffb37005f7abc627ea9532ca46bd442063cddd52d8c5923aa10fa7954c728bca5 Authen-Radius-0.32.tar.gz"
|