summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: f1aff0e4e6e3f25e0eee1015a8beb117609199b8 (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
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>

# # I maintain this because:
# Artix lacks this init script entirely
# Gentoo version doesn't drop to custom user
# Gentoo version doesn't forbid ipv6
# Gentoo version uses /usr/sbin
# Gentoo version sets the conf as executable
# Gentoo version just doesn't work properly

pkgname=chrony-openrc
pkgver=20190120
pkgrel=1
pkgdesc="OpenRC chronyd init script"
arch=('any')
url="https://neueland.iserlohn-fortress.net/gitea/jc_gargma"
license=('GPL2')
groups=('openrc-galaxy')
depends=('openrc' 'chrony')
conflicts=('ntp' 'ntp-openrc')
backup=('etc/conf.d/chronyd')
source=("chronyd.initd"
        "chronyd.confd")
sha256sums=('e8e014f125a7a8000179e9fad2aad12d4707805bb49dbf702ed4f635b620d946'
            'b3d56d7e8a1b5a6a9de5e89a86523b62b292ecca5c95e7ca74f17ffdf2779462')

pkgver() {
    date +%Y%m%d
}

_inst_initd(){
    install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
}

_inst_confd(){
    install -Dm644 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
}

package() {
    _inst_initd 'chronyd'
    _inst_confd 'chronyd'
}