aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-radiusperl/APKBUILD
blob: 7850738394144e7c17a09a1f0ab18ba0bb0214a6 (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 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-radiusperl
_pkgreal=Authen-Radius
pkgver=0.29
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="843604240bdcfb2e125c4c1fadf36de828d93a353c2b86032038bec6c05626a4a654f3ce4be82f805627e286691e948a32e77b3da3964a27d547f4b8091e3851  Authen-Radius-0.29.tar.gz"