aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-radiusperl/APKBUILD
blob: 9dcc4adaf2932023a9edc112cff4c10325c23f12 (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.23
pkgrel=1
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"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/$_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="110dde66ebb23cea256c093e139deb51eb755c051deaf1e221be20b9a7d689b234d2033d911c30f4212f47848751793c7c33393841270e230334f8528c68f61a  Authen-Radius-0.23.tar.gz"