blob: d91b2c43c12f0422cbca10f35d5e9a8cbc6a442f (
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
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: mutantmonkey <aur@mutantmonkey.in>
# Contributor: skydrome <skydrome@tormail.org>
pkgname=tlsdate-git
pkgver=0.0.13
pkgrel=1
epoch=1
pkgdesc='Secure rdate replacement to update local time over HTTPS'
url='https://github.com/ioerror/tlsdate'
arch=('i686' 'x86_64')
license=('BSD')
depends=('openssl' 'ca-certificates' 'dbus' 'zlib' 'libevent' 'libseccomp')
makedepends=('git')
backup=('etc/conf.d/tlsdate'
'etc/tlsdate/tlsdated.conf')
provides=('tlsdate')
conflicts=('tlsdate')
options=('emptydirs')
install=tlsdate.install
source=(${pkgname}::git+https://github.com/ioerror/tlsdate
tlsdate.conf.d
tlsdate.service
no_sslv3.patch)
sha512sums=('SKIP'
'0639dd4c7f4df14465da7a5efc8a59fa59bb0155ed0f453cab9cbcc74f22c320080b71ad5361ff2ebf83d64e8c205fbe605deb69a0cb503be5412eff5f1ac220'
'2b06abe8d7bc2133ca4f8d7cfbf63de4c2fad8356ea8d3f53e6d1c161c2ff86089c4d64f7de7ca6c6222db254ecaaccbc4706012fee50319d83860bfb3a2eab0'
'038590ebef55adae75a82fd4f697306ea56f9486f1b7ff1f9eb4c292f8ea2a960b720db72e100d1bb70f5b5e1391369a1fd9ce2e8b756e79152937289c159294')
pkgver() {
cd ${pkgname}
git describe --tags|sed -r 's|tlsdate-(.+)|\1|'|sed 's|-|+|g'
}
prepare() {
cd ${pkgname}
patch -p1 < "${srcdir}/no_sslv3.patch"
./autogen.sh
}
build() {
cd ${pkgname}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-dbus-client-group=tlsdate \
--with-unpriv-group=tlsdate \
--with-unpriv-user=tlsdate \
--without-polarssl
make
}
package() {
cd ${pkgname}
make DESTDIR="${pkgdir}" install
install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 "${srcdir}/tlsdate.conf.d" "${pkgdir}/etc/conf.d/tlsdate"
install -Dm 644 "${srcdir}/tlsdate.service" -t "${pkgdir}/usr/lib/systemd/system"
install -d "${pkgdir}/var/cache/tlsdated"
}
# vim: ts=2 sw=2 et:
|