summaryrefslogtreecommitdiff
path: root/nonsystemd/tor-openrc/PKGBUILD
blob: f596c03f5863836c4b235c7e205da6fbd7e4affd (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
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Artix): Rafli Akmal <rafliakmaltejakusuma@gmail.com>
# Contributor (Artix): artoo <artoo@artixlinux.org>
# Contributor (Artix): Oscar Campos <damnwidget@artixlinux.org>

pkgname=tor-openrc
pkgver=20210521
pkgrel=1
pkgdesc="OpenRC tor init script"
arch=('any')
url="https://github.com/artix-linux/packages-galaxy"
license=('GPL2')
groups=('openrc-galaxy')
provides=('init-tor')
conflicts=('init-tor')
backup=('etc/conf.d/tor')
source=("tor.confd"
        "tor.initd")
sha256sums=('ff97bcf48d7e1bb95a71ab8953c8f719a8c0e0da45b231ef538968340291066e'
            '943e544b1e70600da1fdfa653b48356929ad69c0f1b1dde7b2aab1e02eca4bf7')

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

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

package() {
    depends=('openrc' 'tor')
    _inst_confd 'tor'
    _inst_initd 'tor'
}