Initial upload: motionplus 0.1.1-1
This commit is contained in:
23
motionplus/.SRCINFO
Normal file
23
motionplus/.SRCINFO
Normal file
@@ -0,0 +1,23 @@
|
||||
pkgbase = motionplus
|
||||
pkgdesc = Monitor and record video signals from many types of cameras
|
||||
pkgver = 0.1.1
|
||||
pkgrel = 1
|
||||
url = https://github.com/Motion-Project/motionplus
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
depends = sqlite
|
||||
depends = ffmpeg
|
||||
depends = libmicrohttpd
|
||||
depends = libwebp
|
||||
depends = postgresql-libs
|
||||
depends = mariadb-libs
|
||||
optdepends = gettext: native language support
|
||||
conflicts = motion
|
||||
conflicts = motion-git
|
||||
backup = etc/motionplus/motionplus.conf
|
||||
source = https://github.com/Motion-Project/motionplus/archive/refs/tags/release-0.1.1.tar.gz
|
||||
source = motionplus.service
|
||||
b2sums = 7fcc10bc87948108141acb3f3b4d8ca1759b365c3a220e0eb8c0ff92cf0091e50737ac6a70ee0b18263f3c012b9ae197d026ece049fc2c79ff194b96fc9a8dfc
|
||||
b2sums = 4cfb2e9e3429e3ccd014f7bfa7a8ee27f0c3494a3c902d857893ae09a7a7c2fbdef6799c477302e41d47b87692e6827ec7a10bf66b9dca1f66833a96b9e0634a
|
||||
|
||||
pkgname = motionplus
|
34
motionplus/PKGBUILD
Normal file
34
motionplus/PKGBUILD
Normal file
@@ -0,0 +1,34 @@
|
||||
# Maintainer: Giovanni Harting <539@idlegandalf.com>
|
||||
|
||||
pkgname=motionplus
|
||||
pkgver=0.1.1
|
||||
pkgrel=1
|
||||
pkgdesc="Monitor and record video signals from many types of cameras"
|
||||
arch=('x86_64')
|
||||
license=('GPL')
|
||||
url="https://github.com/Motion-Project/motionplus"
|
||||
conflicts=(motion motion-git)
|
||||
depends=('sqlite' 'ffmpeg' 'libmicrohttpd' 'libwebp' 'postgresql-libs' 'mariadb-libs')
|
||||
optdepends=('gettext: native language support')
|
||||
backup=('etc/motionplus/motionplus.conf')
|
||||
source=("https://github.com/Motion-Project/motionplus/archive/refs/tags/release-0.1.1.tar.gz"
|
||||
'motionplus.service')
|
||||
b2sums=('7fcc10bc87948108141acb3f3b4d8ca1759b365c3a220e0eb8c0ff92cf0091e50737ac6a70ee0b18263f3c012b9ae197d026ece049fc2c79ff194b96fc9a8dfc'
|
||||
'4cfb2e9e3429e3ccd014f7bfa7a8ee27f0c3494a3c902d857893ae09a7a7c2fbdef6799c477302e41d47b87692e6827ec7a10bf66b9dca1f66833a96b9e0634a')
|
||||
|
||||
build() {
|
||||
cd $pkgname-release-$pkgver
|
||||
|
||||
export TEMP_LDFLAGS="$LDFLAGS"
|
||||
autoreconf -fi
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package(){
|
||||
cd $pkgname-release-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 data/motionplus-dist.conf "$pkgdir"/etc/motionplus/motionplus.conf
|
||||
install -Dm644 "$srcdir"/motionplus.service "$pkgdir"/usr/lib/systemd/system/motionplus.service
|
||||
}
|
39
motionplus/motionplus.service
Normal file
39
motionplus/motionplus.service
Normal file
@@ -0,0 +1,39 @@
|
||||
[Unit]
|
||||
Description=Motion daemon
|
||||
After=local-fs.target network.target
|
||||
|
||||
[Service]
|
||||
User=motion
|
||||
ExecStart=/usr/bin/motion -n
|
||||
DynamicUser=true
|
||||
Type=simple
|
||||
RuntimeDirectory=motion
|
||||
LogsDirectory=motion
|
||||
StateDirectory=motion
|
||||
ReadWritePaths=/etc/motion/
|
||||
AmbientCapabilities=
|
||||
CapabilityBoundingSet=
|
||||
LockPersonality=true
|
||||
NoNewPrivileges=True
|
||||
PrivateDevices=true
|
||||
PrivateTmp=true
|
||||
PrivateUsers=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectHostname=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
RestrictSUIDSGID=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallErrorNumber=EPERM
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user