From afdab1377746943ac3ce678a62459e7c6e704b00 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 26 May 2023 09:27:18 +0200 Subject: [PATCH] Initial upload: motionplus 0.1.1-1 --- motionplus/.SRCINFO | 23 +++++++++++++++++++++ motionplus/PKGBUILD | 34 ++++++++++++++++++++++++++++++ motionplus/motionplus.service | 39 +++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 motionplus/.SRCINFO create mode 100644 motionplus/PKGBUILD create mode 100644 motionplus/motionplus.service diff --git a/motionplus/.SRCINFO b/motionplus/.SRCINFO new file mode 100644 index 0000000..8fb2f5b --- /dev/null +++ b/motionplus/.SRCINFO @@ -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 diff --git a/motionplus/PKGBUILD b/motionplus/PKGBUILD new file mode 100644 index 0000000..6d5ef47 --- /dev/null +++ b/motionplus/PKGBUILD @@ -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 +} diff --git a/motionplus/motionplus.service b/motionplus/motionplus.service new file mode 100644 index 0000000..19847f2 --- /dev/null +++ b/motionplus/motionplus.service @@ -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