diff options
author | Amish | 2018-05-18 20:28:14 +0530 |
---|---|---|
committer | Amish | 2018-05-18 20:28:14 +0530 |
commit | 182e91a1c9a244b052ded68e72f7d438e58baac8 (patch) | |
tree | db8e2055ac2e53e99e9e8d761be32b06ddd5619f | |
parent | fdaa52ea9cecc83aa7a5a30895bcbe4cddf0252f (diff) | |
download | aur-182e91a1c9a244b052ded68e72f7d438e58baac8.tar.gz |
Use tmpfiles.d for /var directories
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | clamav-unofficial-sigs.tmpfiles | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -13,11 +13,13 @@ pkgbase = clamav-unofficial-sigs backup = etc/clamav-unofficial-sigs/user.conf source = clamav-unofficial-sigs-5.6.2.tar.gz::https://github.com/extremeshok/clamav-unofficial-sigs/archive/5.6.2.tar.gz source = clamav-unofficial-sigs.logrotate + source = clamav-unofficial-sigs.tmpfiles source = clamav-unofficial-sigs.8 source = os.conf source = custom_config.diff sha256sums = 233404d767fcb7d2b82defef831d584cbbcc7105f6bbc586d69a0a960bc0d4df sha256sums = 0564ecac9ea02376b627fed158c9ea899c58b528d276d6d962f9e642e060239e + sha256sums = d5441953dbfafb14764ca30b75ad1ae48dbe8a9cace6d3f72ecb9fbe82aa36ca sha256sums = 4bc5487486a2bc11ba827eeaf41bf866c5da34633bef7d801af34cbe7f8d1801 sha256sums = 84b71e4db873b0aa85886b53ed46d1fc13323f04d8997b3e36b5acc524fb2d83 sha256sums = 79a4349d187da2e04ceb08de810ff48c603b95e23eeab9ccb776832d215c6a95 @@ -12,12 +12,14 @@ license=('BSD') depends=('clamav' 'rsync' 'bind-tools' 'curl') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/extremeshok/clamav-unofficial-sigs/archive/${pkgver}.tar.gz" 'clamav-unofficial-sigs.logrotate' + 'clamav-unofficial-sigs.tmpfiles' 'clamav-unofficial-sigs.8' 'os.conf' 'custom_config.diff' ) sha256sums=('233404d767fcb7d2b82defef831d584cbbcc7105f6bbc586d69a0a960bc0d4df' '0564ecac9ea02376b627fed158c9ea899c58b528d276d6d962f9e642e060239e' + 'd5441953dbfafb14764ca30b75ad1ae48dbe8a9cace6d3f72ecb9fbe82aa36ca' '4bc5487486a2bc11ba827eeaf41bf866c5da34633bef7d801af34cbe7f8d1801' '84b71e4db873b0aa85886b53ed46d1fc13323f04d8997b3e36b5acc524fb2d83' '79a4349d187da2e04ceb08de810ff48c603b95e23eeab9ccb776832d215c6a95') @@ -38,9 +40,8 @@ package() { install -Dm644 -t "${pkgdir}/usr/lib/systemd/system" systemd/${pkgname}.{service,timer} systemd/clamd.scan.service install -Dm644 -t "${pkgdir}/usr/share/man/man8" "${srcdir}/clamav-unofficial-sigs.8" install -Dm755 -t "${pkgdir}/usr/bin" clamav-unofficial-sigs.sh + install -Dm644 "${srcdir}/clamav-unofficial-sigs.tmpfiles" "${pkgdir}"/usr/lib/tmpfiles.d/clamav-unofficial-sigs.conf install -Dm644 -t "${pkgdir}/usr/share/licenses/clamav-unofficial-sigs" LICENSE - install -d -o clamav -g clamav "${pkgdir}/var/lib/clamav-unofficial-sigs" - install -d -o clamav -g clamav "${pkgdir}/var/log/clamav-unofficial-sigs" } # vim:set ts=4 sw=2 ft=sh et syn=sh ft=sh: diff --git a/clamav-unofficial-sigs.tmpfiles b/clamav-unofficial-sigs.tmpfiles new file mode 100644 index 000000000000..b117004d1b01 --- /dev/null +++ b/clamav-unofficial-sigs.tmpfiles @@ -0,0 +1,2 @@ +d /var/lib/clamav-unofficial-sigs 0700 clamav clamav - +d /var/log/clamav-unofficial-sigs 0700 clamav clamav - |