summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e522a7612f776e4e58ff2955b70f392bce32217 (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
# Maintainer: Charles Vejnar

pkgname=rsync-readcap
pkgver=0.2
pkgrel=1
pkgdesc="Create copy of rsync with read-everywhere capability under rsyncr user. For pull backups."
arch=("any")
url="https://doc.vejnar.org/doc/storage/backup"
depends=("rsync")
install="rsync-readcap.install"
source=("rsync-readcap.hook"
        "rsync-readcap.sysusers")
sha1sums=("e51c4b49f0b73e4d8676f94c850b64a2ae515a00"
          "95e5725e3fdaa0d80a8b7114031f12d14289fffa")

package() {
    cd "$srcdir"

    install -dm 700 "${pkgdir}/var/lib/${pkgname}"
    install -Dm 700 /usr/bin/rsync "$pkgdir/var/lib/${pkgname}/"

    install -Dm 644 ${pkgname}.hook "${pkgdir}/usr/share/libalpm/hooks/${pkgname}.hook"
    install -Dm 644 ${pkgname}.sysusers "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
}