From 5d7330b654860ad1145f1a92427c03b509acbccf Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 26 Oct 2022 17:06:43 +0200 Subject: [PATCH] Initial upload: motion-git 3.4.1.r793.db94a89-1 --- motion-git/.SRCINFO | 26 +++++++++++++++++++ motion-git/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++ motion-git/motion.service | 12 +++++++++ motion-git/motion.sysusers | 2 ++ motion-git/motion.tmpfiles | 1 + 5 files changed, 93 insertions(+) create mode 100644 motion-git/.SRCINFO create mode 100644 motion-git/PKGBUILD create mode 100644 motion-git/motion.service create mode 100644 motion-git/motion.sysusers create mode 100644 motion-git/motion.tmpfiles diff --git a/motion-git/.SRCINFO b/motion-git/.SRCINFO new file mode 100644 index 0000000..2167de4 --- /dev/null +++ b/motion-git/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = motion-git + pkgdesc = Monitor and record video signals from many types of cameras + pkgver = 3.4.1.r793.db94a89 + pkgrel = 1 + url = https://motion-project.github.io + arch = x86_64 + license = GPL + makedepends = git + depends = sqlite + depends = ffmpeg + depends = libmicrohttpd + depends = libwebp + depends = mariadb-libs + optdepends = gettext: native language support + conflicts = motion + backup = etc/motion/motion.conf + source = git+https://github.com/Motion-Project/motion.git + source = motion.service + source = motion.sysusers + source = motion.tmpfiles + b2sums = SKIP + b2sums = c66ca8a7723b78f05cf4750377276891cb6025a74ec33960ccaa3939a25edb6eca713d36ded94d20db70cd1bd6694629eb6d43ba63e8165be145bb9d6a668771 + b2sums = e923b20ceb893fb52cffc530f3d777ccbaffd7aef447f368a6a83b73043795acfb6a26da0bcdeb695a3b356baebe9ad89ea9aabd27e986c482dcd71670957a84 + b2sums = 3f39854b561200ad052529f187a83f135be3ca4ea20e9897fe41fbae7ed898850017bdd496996199afc00f151a2302314aef8c2f6847337cf1b8e8e7579be4e7 + +pkgname = motion-git diff --git a/motion-git/PKGBUILD b/motion-git/PKGBUILD new file mode 100644 index 0000000..a35d467 --- /dev/null +++ b/motion-git/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Giovanni Harting <539@idlegandalf.com> +# Contributor: Felix Yan +# Contributor: mrxx +# Contributor: Evgeny Kurnevsky +# Contributor: Sergej Pupykin + +pkgname=motion-git +pkgver=3.4.1.r793.db94a89 +pkgrel=1 +pkgdesc="Monitor and record video signals from many types of cameras" +arch=('x86_64') +license=('GPL') +url="https://motion-project.github.io" +conflicts=(motion) +depends=('sqlite' 'ffmpeg' 'libmicrohttpd' 'libwebp' 'mariadb-libs') +makedepends=(git) +optdepends=('gettext: native language support') +backup=('etc/motion/motion.conf') +source=("git+https://github.com/Motion-Project/motion.git" + 'motion.service' + 'motion.sysusers' + 'motion.tmpfiles') +b2sums=('SKIP' + 'c66ca8a7723b78f05cf4750377276891cb6025a74ec33960ccaa3939a25edb6eca713d36ded94d20db70cd1bd6694629eb6d43ba63e8165be145bb9d6a668771' + 'e923b20ceb893fb52cffc530f3d777ccbaffd7aef447f368a6a83b73043795acfb6a26da0bcdeb695a3b356baebe9ad89ea9aabd27e986c482dcd71670957a84' + '3f39854b561200ad052529f187a83f135be3ca4ea20e9897fe41fbae7ed898850017bdd496996199afc00f151a2302314aef8c2f6847337cf1b8e8e7579be4e7') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "%s" "$(git describe --long | sed 's/release-//g;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +build() { + cd ${pkgname%-git} + autoreconf -fi + ./configure --prefix=/usr \ + --without-pgsql \ + --without-mysql \ + --sysconfdir=/etc \ + --with-ffmpeg \ + --with-webp + make +} + +package(){ + cd ${pkgname%-git} + make DESTDIR="$pkgdir" install + install -Dm644 data/motion-dist.conf "$pkgdir"/etc/motion/motion.conf + install -Dm644 "$srcdir"/motion.service "$pkgdir"/usr/lib/systemd/system/motion.service + install -Dm644 "$srcdir"/motion.sysusers "$pkgdir"/usr/lib/sysusers.d/motion.conf + install -Dm644 "$srcdir"/motion.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/motion.conf +} diff --git a/motion-git/motion.service b/motion-git/motion.service new file mode 100644 index 0000000..943585b --- /dev/null +++ b/motion-git/motion.service @@ -0,0 +1,12 @@ +[Unit] +Description=Motion daemon +After=local-fs.target network.target + +[Service] +User=motion +ExecStart=/usr/bin/motion -n +Type=simple +StandardError=null + +[Install] +WantedBy=multi-user.target diff --git a/motion-git/motion.sysusers b/motion-git/motion.sysusers new file mode 100644 index 0000000..1489a53 --- /dev/null +++ b/motion-git/motion.sysusers @@ -0,0 +1,2 @@ +u motion - - /var/lib/motion +m motion video diff --git a/motion-git/motion.tmpfiles b/motion-git/motion.tmpfiles new file mode 100644 index 0000000..8342ff3 --- /dev/null +++ b/motion-git/motion.tmpfiles @@ -0,0 +1 @@ +d /var/lib/motion 0700 motion motion - -