summaryrefslogtreecommitdiffstats
path: root/main/tftp-hpa/APKBUILD
blob: 9e148b4ad6d2f920b0014e64bd40aad83e41b0e7 (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=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/$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
3430e0b0e42c3321689d2c87e73d0749  in.tftpd.initd
914b43dd531176a8bb58fdb23d900fef  in.tftpd.confd"
sha256sums="afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b  tftp-hpa-5.2.tar.xz
c992ca77c7a42a0ccdc673b8344f34925cdb38d93ad3949ac659dd75dd2bd3b4  in.tftpd.initd
afa2397529a4f1494962fc1b9620763561d8237886e62e1ec669e06e96c171d0  in.tftpd.confd"
sha512sums="a5198e923a6e58281f749dc77b3f3ed8579e56b6f0fd6a17482cc88bdc8d34b6702c7c709717885b9b937ecae459d9a832328a49a2e3536dc7432cdb39d2a394  tftp-hpa-5.2.tar.xz
f86908215a5595c506ee8e22cea3f6f8a1dc4ae2951dfc73459dea34f8f25921d6121d8c91f21656735150a0e765593b86667d484404c3c649fe9588f3dc4a07  in.tftpd.initd
8a5de40dde8a5e569fce4309e01341a77a4e36cdcb5fe602948d5b34ee2646bd83840158d7d61a45c17e71cc893f3e9bd04a38ebcc7a6a8fff98f46a50d74e96  in.tftpd.confd"