summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2018-03-16 14:37:24 -0700
committerDonald Webster2018-03-16 14:41:57 -0700
commit02c8822e162c2630f95a59d2b7c0c2e0fb73f3da (patch)
treea0d76c137d7d4ff68272108fd155797e2729635b
parent1008a536603c1773088fe06b7a02422dda2a1c32 (diff)
downloadaur-02c8822e162c2630f95a59d2b7c0c2e0fb73f3da.tar.gz
Switch to systemds tmpfiles.
-rw-r--r--.SRCINFO4
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD7
-rw-r--r--unifi-video.install3
-rw-r--r--unifi-video.tmpfiles2
5 files changed, 10 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9c1f9cd728f..d7a37da2123 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 3538962bab8..197327304d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
/*.deb
/*.xz
+/*.log
/src/
/pkg/
diff --git a/PKGBUILD b/PKGBUILD
index fe61c4c58db..05486f97549 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 de721604f43..13dc80d0dc1 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 00000000000..450232b5049
--- /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