aboutsummaryrefslogtreecommitdiffstats
path: root/main/tlsdate/APKBUILD
blob: 24b6ef404d523b552e7eb0d5c1c7c21d44d32400 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tlsdate
pkgver=0.0.13
pkgrel=0
pkgdesc="An secure parasitic rdate replacement"
url="https://github.com/ioerror/tlsdate"
arch="all"
license="BSD"
depends=""
depends_dev=""
pkgusers="tlsdate"
pkggroups="tlsdate"
makedepends="autoconf automake libtool openssl-dev linux-headers libevent-dev"
install=""
subpackages="$pkgname-doc"
source="saveas-https://github.com/ioerror/tlsdate/tarball/tlsdate-${pkgver}/tlsdate-${pkgver}.tar.gz
	tlsdate.confd
	tlsdate.initd
	tlsdated.confd
	tlsdated.initd
	"

_builddir="$srcdir/tlsdate-${pkgver}"
prepare() {
	local i
	mv $srcdir/ioerror-tlsdate-* "$srcdir/tlsdate-${pkgver}"
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	autoreconf --install
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--with-unpriv-user=tlsdate \
		--with-unpriv-group=tlsdate \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	for i in $source; do
		case "$i" in
		*.initd) install -Dm755 "$srcdir"/$i "$pkgdir"/etc/init.d/$i \
				|| return 1;;
		*.confd) install -Dm644 "$srcdir"/$i "$pkgdir"/etc/conf.d/$i \
				|| return 1;;
		esac
	done
}

md5sums="0c854eb5d54535540e7e953aed9589c6  tlsdate-0.0.13.tar.gz
18b3d4a8153a7d61fbd499a1d3a97231  tlsdate.confd
ee0e2f5ba3d5aa1ed12995c9af61022f  tlsdate.initd
53e956dbaf6b67c408c080e6b9f2f3a5  tlsdated.confd
e636192886e247c9144df9a747902a59  tlsdated.initd"
sha256sums="482640a5efb8489f287da1018176fb1196adf7cb1b81ac0c7f2b419b43d44258  tlsdate-0.0.13.tar.gz
d3e4f1ca2941813cdee93ef039a5156db410cea2dc4b0e1a738a9bae89835d63  tlsdate.confd
4652276edc4c4cec8b26735c81ee34c35aa887e8a5ddcfe78170360092c7f5fe  tlsdate.initd
1c52ff7bc7ce0fbd876a4f594948a70e30e6197bae2b9bc1b55cc6d398091131  tlsdated.confd
2a39cde73cf628ff168a156cd1ce14c324be5bcd0384f9979a89d79ef1d60325  tlsdated.initd"
sha512sums="9c4fd51439976a8541fdf1bb70afa5333b43b2e43b801a65b3b1ac3e4a437fd3021ef2aaeeb13fc1ba63ccd119f6eff4c10e3a5a28cf0cfd96bbc7a174dbb789  tlsdate-0.0.13.tar.gz
62149e3a9f26a71624bd851780f92a41c9aaf138793b5da762aa3002bcc5a409686d1bbe687b4abf1fc2e12205720a3825d9603cab0b0d978c2d0fd41422efe7  tlsdate.confd
c54d11ead7ee5035e4829df92b23cd54a71535199844b4f64ecfa715d9838ef954e7c2434df0767bb32c8226448d2fa080180be76ed8e417d5fa6dfc9c08dce6  tlsdate.initd
38bd7d64473ab487eea2539b11a7acadfc3fa5a627fb12e78931b62c46d3ebedab4c75d56839b0dee9fd8f42d4b7ae9ace08ea3f58941b8e2d183828c6a4fef2  tlsdated.confd
9601ab4f9bd8870ed0c8e4f9dcbc32df902a5998ea6eeb8c40b8a8286515f35bf2d755784d267f78d53ac9baaf2d20051e99c35ceabe9d846d9a2a40cf135760  tlsdated.initd"