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

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

package() {
	cd "$_builddir"
	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
ae79e81259be821e48025843bd19bb26  in.tftpd.initd
914b43dd531176a8bb58fdb23d900fef  in.tftpd.confd"
sha256sums="afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b  tftp-hpa-5.2.tar.xz
eb3a7c520c0c515ee4105a12125d9a44a9204a6f1733f43ac5613028ce95eede  in.tftpd.initd
afa2397529a4f1494962fc1b9620763561d8237886e62e1ec669e06e96c171d0  in.tftpd.confd"
sha512sums="a5198e923a6e58281f749dc77b3f3ed8579e56b6f0fd6a17482cc88bdc8d34b6702c7c709717885b9b937ecae459d9a832328a49a2e3536dc7432cdb39d2a394  tftp-hpa-5.2.tar.xz
a836823eda80e43b8914b7b045b91703faded83d2b1482a0d17f0fb903cbc0ce17dd9e0c06a2f6e35724099614ef5a74d9ba8be80237fbbb29c632cea983779a  in.tftpd.initd
8a5de40dde8a5e569fce4309e01341a77a4e36cdcb5fe602948d5b34ee2646bd83840158d7d61a45c17e71cc893f3e9bd04a38ebcc7a6a8fff98f46a50d74e96  in.tftpd.confd"