blob: aece4709f908462efbb2f0654b8af4d399930955 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
pkgname='ivideon-server-headless'
pkgver='3.14.0'
pkgrel='11543'
_rel='d694e54'
pkgdesc='Ivideon-server daemon'
arch=('x86_64')
url='https://ivideon.com'
license=('freeware')
depends=('portaudio' 'ffmpeg' 'gst-plugins-good' 'gst-plugins-base')
makedepends=('libarchive')
conflicts=('ivideon-video-server-nogui')
source=("https://packages.ivideon.com/ubuntu/pool/non-free/i/${pkgname}/${pkgname}_${pkgver}-${pkgrel}~${_rel}_amd64.deb"
"https://packages.ivideon.com/ubuntu/pool/non-free/i/ivideon-server-dahua-bin-module/ivideon-server-dahua-bin-module_${pkgver}-${pkgrel}~${_rel}_amd64.deb"
"https://packages.ivideon.com/ubuntu/pool/non-free/libd/libdahuasdk/libdahuasdk_1.0.2_amd64.deb"
"videoserverd.service"
"videoserverd.conf"
"sysusers.conf"
"videoservertmp.conf")
noextract=("${source[@]%%::*}")
sha256sums=('310741022f4d0a54099d0da4bbcf157415aa5398abf37cb31897f8ddfa3b167b'
'6fb3230a8e8cdc0bceeb6d2900b0f54248f3fab6c7fc73a5e98faba5502c2971'
'7da74ca97c53669f95efea718bbf05ddd7b0d5b0b97dc93d2777ed8c64388254'
'4b0fcdf8cc77eb8748041fbc78d2d7b3e75ced0d1b96b6ce38c17241441bc022'
'f0010bc64cd7c1b5aefcc7241f0e0074528aec1a4b51dd08bd429e95acd26012'
'91c4b133ad4d1fda72679ab393b647ac24a56e3c0d46cd2a908a47ed8524ec81'
'ad8029bf201260608daf7ed4d109731bbf247e8597e36cc1dea915fceae51b56')
backup=("etc/videoserverd.conf")
prepare() {
bsdtar xf "${srcdir}/${pkgname}_${pkgver}-${pkgrel}~${_rel}_amd64.deb"
bsdtar xf "data.tar.gz"
sed -i 's|$(dirname "$(readlink /etc/init.d/videoserver)")|/opt/ivideon/ivideon-server|g' "opt/ivideon/ivideon-server/serverctl.sh"
mkdir "${srcdir}/ivideon-server-dahua-bin-module"
cd "${srcdir}/ivideon-server-dahua-bin-module"
bsdtar xf "${srcdir}/ivideon-server-dahua-bin-module_${pkgver}-${pkgrel}~${_rel}_amd64.deb"
bsdtar xf "data.tar.gz"
mkdir "${srcdir}/libdahuasdk"
cd "${srcdir}/libdahuasdk"
bsdtar xf "${srcdir}/libdahuasdk_1.0.2_amd64.deb"
bsdtar xf "data.tar.xz"
}
build() {
rm "opt/ivideon/ivideon-server/ivideon-server.service"
rm "opt/ivideon/ivideon-server/remote-svc.service"
rm "opt/ivideon/ivideon-server/remote_service"
rm "opt/ivideon/ivideon-server/serverctl.sh"
}
package() {
cp -ax "opt" "${pkgdir}"
cp -ax "${srcdir}/ivideon-server-dahua-bin-module/opt" "${pkgdir}"
cp -ax "${srcdir}/libdahuasdk/opt" "${pkgdir}"
install -Dm0644 "videoserverd.service" "${pkgdir}/usr/lib/systemd/system/videoserverd.service"
install -Dm0644 "videoserverd.conf" "${pkgdir}/etc/videoserverd.conf"
install -Dm0644 "sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/videoserverd.conf"
install -Dm0644 "videoservertmp.conf" "${pkgdir}/usr/lib/tmpfiles.d/videoserverd.conf"
install -dm0755 -o 176 -g 176 "${pkgdir}/run/videoserverd"
install -dm0775 -o 176 -g 176 "${pkgdir}/var/log/videoserverd"
}
|