summaryrefslogtreecommitdiffstats
path: root/main/tftp-hpa/APKBUILD
blob: a42bf9408b31c6e91fc36b75647533870c9d1cde (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tftp-hpa
pkgver=5.2
pkgrel=1
pkgdesc="Official tftp server"
url="http://www.kernel.org/pub/software/network/tftp/"
arch="all"
license="BSD"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-$pkgver.tar.xz
	in.tftpd.initd
	in.tftpd.confd
	"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make INSTALLROOT="$pkgdir" install || return 1
	install -d "$pkgdir"/var/tftpboot
	install -Dm755 ../in.tftpd.initd "$pkgdir"/etc/init.d/in.tftpd
	install -Dm755 ../in.tftpd.confd "$pkgdir"/etc/conf.d/in.tftpd
}
md5sums="e86f58164166804e8ae5a46010f29317  tftp-hpa-5.2.tar.xz
3430e0b0e42c3321689d2c87e73d0749  in.tftpd.initd
914b43dd531176a8bb58fdb23d900fef  in.tftpd.confd"