diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | unifi-video.install | 3 | ||||
-rw-r--r-- | unifi-video.tmpfiles | 2 |
5 files changed, 10 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = unifi-video pkgdesc = Centralized management system for Ubiquiti UniFi Surveillance Cameras pkgver = 3.9.4 - pkgrel = 1 + pkgrel = 2 url = https://www.ubnt.com/ install = unifi-video.install arch = x86_64 @@ -14,10 +14,12 @@ pkgbase = unifi-video source = unifi-video-3.9.4.deb::https://dl.ubnt.com/firmwares/ufv/v3.9.4/unifi-video.Ubuntu16.04_amd64.v3.9.4.deb source = unifi-video.service source = unifi-video.sysusers + source = unifi-video.tmpfiles source = unifi-video.patch sha256sums = c221bb2dbb24903faf36d276640eb8e3469618a75d5a45b8f55fffa5c340f1c6 sha256sums = 9df948b046347c25e7c83e4837284ef63d9f8d3f28daa20a6c36e203e3ebfdb3 sha256sums = 90fb2f826a70d3b7815cd6a2253c2af6754c17504be28ef92ee223bd02093730 + sha256sums = c31918e3ef0eb55f44639af0ae5db029654230b84d5ae0c55c18fbb2c80dfc70 sha256sums = 6f52396de7f587372c66b4f269fa3ed51c9c230dc4ca1c4c83f56d8cfb714990 pkgname = unifi-video diff --git a/.gitignore b/.gitignore index 3538962bab84..197327304d2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /*.deb /*.xz +/*.log /src/ /pkg/ @@ -2,7 +2,7 @@ pkgname=unifi-video pkgver=3.9.4 -pkgrel=1 +pkgrel=2 pkgdesc="Centralized management system for Ubiquiti UniFi Surveillance Cameras" arch=('x86_64') url="https://www.ubnt.com/" @@ -13,11 +13,13 @@ install=unifi-video.install source=("${pkgname}-${pkgver}.deb::https://dl.ubnt.com/firmwares/ufv/v${pkgver}/${pkgname}.Ubuntu16.04_amd64.v${pkgver}.deb" 'unifi-video.service' 'unifi-video.sysusers' + 'unifi-video.tmpfiles' 'unifi-video.patch') sha256sums=('c221bb2dbb24903faf36d276640eb8e3469618a75d5a45b8f55fffa5c340f1c6' '9df948b046347c25e7c83e4837284ef63d9f8d3f28daa20a6c36e203e3ebfdb3' '90fb2f826a70d3b7815cd6a2253c2af6754c17504be28ef92ee223bd02093730' + 'c31918e3ef0eb55f44639af0ae5db029654230b84d5ae0c55c18fbb2c80dfc70' '6f52396de7f587372c66b4f269fa3ed51c9c230dc4ca1c4c83f56d8cfb714990') package() { @@ -31,8 +33,7 @@ package() { install -D -m 644 "${srcdir}/unifi-video.service" "${pkgdir}/usr/lib/systemd/system/unifi-video.service" install -D -m 644 "${srcdir}/unifi-video.sysusers" "${pkgdir}/usr/lib/sysusers.d/unifi-video.conf" - - mkdir -p "${pkgdir}/usr/lib/unifi-video/logs" "${pkgdir}/usr/lib/unifi-video/work" + install -D -m 644 "${srcdir}/unifi-video.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/unifi-video.conf" } # vim:set ts=2 sw=2 et: diff --git a/unifi-video.install b/unifi-video.install index de721604f43c..13dc80d0dc1f 100644 --- a/unifi-video.install +++ b/unifi-video.install @@ -1,7 +1,4 @@ post_install() { - chown -R unifi-video:unifi-video /usr/lib/unifi-video/ - ln -s $( which mongod) /usr/lib/unifi-video/bin/ - if ! [[ -x $( which java ) ]]; then echo "Could not find java, please use archlinux-java to select a default." fi diff --git a/unifi-video.tmpfiles b/unifi-video.tmpfiles new file mode 100644 index 000000000000..450232b50495 --- /dev/null +++ b/unifi-video.tmpfiles @@ -0,0 +1,2 @@ +Z /usr/lib/unifi-video - unifi-video unifi-video +L /usr/lib/unifi-video/bin/mongod - - - - /usr/bin/mongod |