diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-30 06:56:33 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-30 06:56:33 +0300 |
commit | dcf710f674075f868e84e17e04f002d0ea9a25a5 (patch) | |
tree | d91b1a019b2cfaf8b4ea8e07df9b97ff96156a1b | |
parent | a5bc6b038d311f64d170f567fcadc3f30eb547ad (diff) |
motion added
-rw-r--r-- | metadata/accounts/users/motion.conf | 3 | ||||
-rw-r--r-- | metadata/categories.conf | 1 | ||||
-rw-r--r-- | packages/media-video/motion/motion-4.1.1.exheres-0 | 6 | ||||
-rw-r--r-- | packages/media-video/motion/motion-scm.exheres-0 | 6 | ||||
-rw-r--r-- | packages/media-video/motion/motion.exlib | 63 |
5 files changed, 79 insertions, 0 deletions
diff --git a/metadata/accounts/users/motion.conf b/metadata/accounts/users/motion.conf new file mode 100644 index 0000000..7af5bbc --- /dev/null +++ b/metadata/accounts/users/motion.conf @@ -0,0 +1,3 @@ +primary_group = video +shell = /sbin/nologin +pecos = motion daemon user diff --git a/metadata/categories.conf b/metadata/categories.conf index ffef60a..c940789 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -4,6 +4,7 @@ app-misc dev-libs dev-util media-gfx +media-video net-im net-libs net-misc diff --git a/packages/media-video/motion/motion-4.1.1.exheres-0 b/packages/media-video/motion/motion-4.1.1.exheres-0 new file mode 100644 index 0000000..07d86fc --- /dev/null +++ b/packages/media-video/motion/motion-4.1.1.exheres-0 @@ -0,0 +1,6 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require motion + +PLATFORMS="~amd64 ~x86" diff --git a/packages/media-video/motion/motion-scm.exheres-0 b/packages/media-video/motion/motion-scm.exheres-0 new file mode 100644 index 0000000..07d86fc --- /dev/null +++ b/packages/media-video/motion/motion-scm.exheres-0 @@ -0,0 +1,6 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require motion + +PLATFORMS="~amd64 ~x86" diff --git a/packages/media-video/motion/motion.exlib b/packages/media-video/motion/motion.exlib new file mode 100644 index 0000000..9215757 --- /dev/null +++ b/packages/media-video/motion/motion.exlib @@ -0,0 +1,63 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require github [ user=Mr-Dave tag=release-${PV} ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] + +export_exlib_phases src_prepare src_install + +SUMMARY="A software motion detector" +HOMEPAGE="https://motion-project.github.io/" + +LICENCES="GPL-2" +SLOT="0" + +MYOPTIONS=" + ffmpeg + mysql + postgres + v4l + webp + ffmpeg? ( ( providers: ffmpeg libav ) [[ number-selected = exactly-one ]] ) + ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build+run: + user/motion + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + v4l? ( + media-libs/v4l-utils + sys-kernel/linux-headers + ) + webp? ( media-libs/libwebp ) + providers:ffmpeg? ( media/ffmpeg ) + providers:libav? ( media/libav ) + providers:ijg-jpeg? ( media-libs/jpeg:= ) + providers:jpeg-turbo? ( media-libs/libjpeg-turbo ) +" + +DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( + ffmpeg + mysql + 'postgres pgsql' + 'v4l v4l2' + webp +) + +DEFAULT_SRC_CONFIGURE_PARAMS=( + --hates=disable-silent-rules + --hates=disable-dependency-tracking + --hates=enable-fast-install +) + +motion_src_prepare() { + edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i configure.ac + autotools_src_prepare +} + +motion_src_install() { + default + insinto /etc/motion + doins motion-dist.conf +} |