aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeradius-client/APKBUILD
blob: 48f494dd4d1aeb0cdaea34e9a3c8a0412a8d69a7 (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
# Contributor: Francesco Colsita <francesco.colista@gmail.com>
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=freeradius-client
pkgver=1.1.6
pkgrel=2
pkgdesc="FreeRADIUS Client Software"
url="http://wiki.freeradius.org/Radiusclient"
arch="all"
license="BSD"
depends=
makedepends="openssl-dev"
install=
subpackages="$pkgname-dev"
source="ftp://ftp.freeradius.org/pub/radius/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="2e46564e450ae13aedb70dc133b158ac  freeradius-client-1.1.6.tar.bz2"