From 8ea6e43d2f65acbfda614dbd4635823d7605b6d8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 18 May 2023 10:12:16 +0100 Subject: gentoo auto-resync : 18:05:2023 - 10:12:16 --- media-video/motion/Manifest | 8 +-- media-video/motion/files/motion.initd-r5 | 12 ++++ media-video/motion/files/motion.service-r4 | 1 + media-video/motion/motion-4.3.2-r2.ebuild | 89 ------------------------------ media-video/motion/motion-4.3.2-r3.ebuild | 89 ++++++++++++++++++++++++++++++ media-video/motion/motion-4.5.1-r1.ebuild | 86 ----------------------------- media-video/motion/motion-4.5.1-r2.ebuild | 86 +++++++++++++++++++++++++++++ 7 files changed, 192 insertions(+), 179 deletions(-) delete mode 100644 media-video/motion/motion-4.3.2-r2.ebuild create mode 100644 media-video/motion/motion-4.3.2-r3.ebuild delete mode 100644 media-video/motion/motion-4.5.1-r1.ebuild create mode 100644 media-video/motion/motion-4.5.1-r2.ebuild (limited to 'media-video/motion') diff --git a/media-video/motion/Manifest b/media-video/motion/Manifest index 72cf2dc907e6..2478924ef2cf 100644 --- a/media-video/motion/Manifest +++ b/media-video/motion/Manifest @@ -1,8 +1,8 @@ AUX motion.confd-r5 884 BLAKE2B 63c497e942ae499271504d308f826f23d718ac968f7735e340ef2fa8a7b1a64d63365686cc00137141bd4b788975c00b4ea3eaf38c1dd9bd219d3d50ff0da8e0 SHA512 998dcfe4160c90adf2683f0194fcf867f0062f1e54355c1158ecb9965a5ed2c30f362147ac9a915b42ba681184d91e78c3a1d397c4b92ee48440d00f3ac0df99 -AUX motion.initd-r5 1090 BLAKE2B f8977384cb4bb39a75364688fe863e926d22cb8a6c3b1ae9363144e21b81561bc225a169c3750d9aba3f3c7e81fd17545c0b773285e0c5dc5c42d4f909c1327e SHA512 feaefc140a9d3e13ebb05c00ff148753cca4880daf3780aae18314ac778235ed85f169bf138bb2b19dcd9ef53da5de799ea489fc86892a0983c6dd935b4d1462 -AUX motion.service-r4 462 BLAKE2B 3aeac7440cb545bbf7c41a59eb81260202e7783f701ed20ad33e8f69356bcc78ff7a23b3f518df7dc0ab0eb664d05b75e449afa7abbf1f993ad3c77b0eb83fb7 SHA512 2fbcdb381888d63d0becfc04473f915d75f97e267e4fb2bcf2554e53cbc302fd45b544b7c267a99a05540fb79ce4fcf3e3bc7e973fe08d0db5481e7728c02a1f +AUX motion.initd-r5 1392 BLAKE2B 87ac71a1e75ace73ac28c52ff0b1d6bbce364e6d43ef8604f3b90c08646fcf4a66abb4d7b16170eb63e7f7f65e5155382c9bf12ff074feffd2c6f3f16479518c SHA512 0060c062e7ce7f3b9c6ae70d0d6830a1676d9a173072bb3464b42fc2bd595d6237524a1ea916f60268533087647e81eef3b39a1b086cf8e8970837d96e48146c +AUX motion.service-r4 497 BLAKE2B 8941424317635d214e74d5d558a443212129c38fed9921b101bd3689d743ed6bd68e30748075ae8c5d26aa10732fc6ce1f08707c9ed559eb89a27322e57e0995 SHA512 44e0fa13e4d93af517a06bac5191d16d528648c6b3eb9d56f80e447db7ef46b311acf6fd1d2159a24fa22200be41bdc62eeef8670ddba918bdd28f6d710f90c0 DIST motion-release-4.3.2.tar.gz 849378 BLAKE2B 2ff49f44bb1d57123760860ae17cc241ecabf3d045ac0c45e1ca08ce3ac8be2fec308492472c37c0d869bc21a7c04658c923c763f9b8f6b547403fc094b03196 SHA512 df54297eebc44b3bc50fd40890c69a9cbbfc5936224bf7027065364e794d7201ceadd99ac99bf43113ec3368f2b5ca435d2956258b9c774e03a6750b41346a7c DIST motion-release-4.5.1.tar.gz 856665 BLAKE2B 59ae638113c7f08ced4b18d7c4f19e3b3f1850ba0cd4c224b300be5ac65ae3b45aa391f26f506a91bb4c38a47b552c71db846d2b3217ccf0b2f5799873ab7ddb SHA512 3b8b60ad4f41c37cc215aa575b0295ee99b15f2d32cbf3393c0f7cdd8d87616cca1c00e11cb7bf74e4afa285caa094f08df3ba62ab21dcb28a48336e3ff5803e -EBUILD motion-4.3.2-r2.ebuild 2243 BLAKE2B b1fde23db8979ee80015afdfcde2b71f5a6e6ef6b53ffbbf75ca6a968c7a366e4c2a426acae41419e8b5395c63af556d0f12973272a75bde9ddc8b8eca030b1c SHA512 c75db500acadfe4fcfc9bb01d68e6add38335b24fb61c0864101f1115622023e60ce684e39d0b3368a2935c00eec42c6e51a3ba63f732221abe45c46f2d783da -EBUILD motion-4.5.1-r1.ebuild 2233 BLAKE2B eb765999b481dbec18f37c9356c5a01100332bb2a473bdd64e61294d2b317eb5732f75f0c4394240d1b3af8f91f0f78b0b33916d8578eb334ea7528d8f417c69 SHA512 da2d28c108e8cdba0a193fef8d495d79e893490fb98eb2c221f5906cf6d8911dc28adddabb637e2eb6378e3ca046e2591aeb97504a3d2008e0e1b5a9064605ab +EBUILD motion-4.3.2-r3.ebuild 2243 BLAKE2B b1fde23db8979ee80015afdfcde2b71f5a6e6ef6b53ffbbf75ca6a968c7a366e4c2a426acae41419e8b5395c63af556d0f12973272a75bde9ddc8b8eca030b1c SHA512 c75db500acadfe4fcfc9bb01d68e6add38335b24fb61c0864101f1115622023e60ce684e39d0b3368a2935c00eec42c6e51a3ba63f732221abe45c46f2d783da +EBUILD motion-4.5.1-r2.ebuild 2233 BLAKE2B eb765999b481dbec18f37c9356c5a01100332bb2a473bdd64e61294d2b317eb5732f75f0c4394240d1b3af8f91f0f78b0b33916d8578eb334ea7528d8f417c69 SHA512 da2d28c108e8cdba0a193fef8d495d79e893490fb98eb2c221f5906cf6d8911dc28adddabb637e2eb6378e3ca046e2591aeb97504a3d2008e0e1b5a9064605ab MISC metadata.xml 766 BLAKE2B 1385dc89a2d67fc06b0c430b7cb6a606ce22af15c633edc78382e48bc14e423a2a4ff1553531e0e373151e48d2fed1ab78f9da67680fda3eea6b3d717b077d22 SHA512 8c944d3b1bb54b25597bae085b3fdc3da3ff3677eb97fee314558597917355a2fa4db4216720dc51aa171bb032eb426ae8b1d3c9bc5efed3662af75d8d49cc54 diff --git a/media-video/motion/files/motion.initd-r5 b/media-video/motion/files/motion.initd-r5 index 315bda6c2e7f..4d7b43af585b 100644 --- a/media-video/motion/files/motion.initd-r5 +++ b/media-video/motion/files/motion.initd-r5 @@ -13,6 +13,8 @@ command=/usr/bin/motion command_user="${MOTION_USER}:${MOTION_GROUP}" +extra_started_commands="reload" +description_reload="Reread the config file" start_pre() { if [ "${MOTION_DIR}" ] ; then @@ -35,3 +37,13 @@ depend() { after bootmisc use mysql postgresq } + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + if [ "${MOTION_PIDFILE}" ] ; then + start-stop-daemon --signal SIGHUP --pidfile "${MOTION_PIDFILE}" + else + supervise-daemon ${RC_SVCNAME} --signal SIGHUP + fi + eend $? +} diff --git a/media-video/motion/files/motion.service-r4 b/media-video/motion/files/motion.service-r4 index 1564fb2699c4..66143f0e204b 100644 --- a/media-video/motion/files/motion.service-r4 +++ b/media-video/motion/files/motion.service-r4 @@ -13,6 +13,7 @@ Documentation=man:motion(1) Type=simple ExecStart=/usr/bin/motion -n -c /etc/motion/motion.conf StandardError=null +ExecReload=/bin/kill -HUP $MAINPID User=motion Group=motion diff --git a/media-video/motion/motion-4.3.2-r2.ebuild b/media-video/motion/motion-4.3.2-r2.ebuild deleted file mode 100644 index 68f6f12d35cc..000000000000 --- a/media-video/motion/motion-4.3.2-r2.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools readme.gentoo-r1 systemd - -DESCRIPTION="A software motion detector" -HOMEPAGE="https://motion-project.github.io" -SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz -> ${PN}-release-${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86" -IUSE="ffmpeg mariadb mmal mysql postgres sqlite v4l webp" - -RDEPEND=" - acct-group/motion - acct-user/motion - net-libs/libmicrohttpd:= - virtual/jpeg:= - ffmpeg? ( media-video/ffmpeg:0= ) - mariadb? ( dev-db/mariadb-connector-c ) - mmal? ( media-libs/raspberrypi-userland ) - mysql? ( dev-db/mysql-connector-c ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 ) - webp? ( media-libs/libwebp:= ) -" -DEPEND="${RDEPEND} - v4l? ( - media-libs/libv4l - virtual/os-headers - ) -" - -# Breaks src_install(), #727056 -RESTRICT="test" - -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS=" -You need to setup a configuraton file (/etc/motion/motion.conf) before -running motion for the first time. - -If motion is built with the mysql or mariadb use flags then please make -sure to configure a matching database_type in the config file. - -Motion runs by default under user motion and group motion: -- change this if needed in /etc/conf.d/motion -- or add users who need access to the output files to the motion group - -To install motion as a service, use: -- rc-update add motion default # with OpenRC -- systemctl enable motion.service # with systemd -" - -S="${WORKDIR}"/${PN}-release-${PV} - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - $(use_with ffmpeg) \ - $(use_with mariadb) \ - $(use_with mmal) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with sqlite sqlite3) \ - $(use_with v4l v4l2) \ - $(use_with webp) \ - --without-optimizecpu -} - -src_install() { - emake \ - DESTDIR="${D}" \ - docdir=/usr/share/doc/${PF} \ - examplesdir=/usr/share/doc/${PF}/examples \ - install - - newinitd "${FILESDIR}/motion.initd-r5" ${PN} - newconfd "${FILESDIR}/motion.confd-r5" ${PN} - systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" - readme.gentoo_create_doc - readme.gentoo_print_elog -} diff --git a/media-video/motion/motion-4.3.2-r3.ebuild b/media-video/motion/motion-4.3.2-r3.ebuild new file mode 100644 index 000000000000..68f6f12d35cc --- /dev/null +++ b/media-video/motion/motion-4.3.2-r3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools readme.gentoo-r1 systemd + +DESCRIPTION="A software motion detector" +HOMEPAGE="https://motion-project.github.io" +SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz -> ${PN}-release-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="ffmpeg mariadb mmal mysql postgres sqlite v4l webp" + +RDEPEND=" + acct-group/motion + acct-user/motion + net-libs/libmicrohttpd:= + virtual/jpeg:= + ffmpeg? ( media-video/ffmpeg:0= ) + mariadb? ( dev-db/mariadb-connector-c ) + mmal? ( media-libs/raspberrypi-userland ) + mysql? ( dev-db/mysql-connector-c ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 ) + webp? ( media-libs/libwebp:= ) +" +DEPEND="${RDEPEND} + v4l? ( + media-libs/libv4l + virtual/os-headers + ) +" + +# Breaks src_install(), #727056 +RESTRICT="test" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need to setup a configuraton file (/etc/motion/motion.conf) before +running motion for the first time. + +If motion is built with the mysql or mariadb use flags then please make +sure to configure a matching database_type in the config file. + +Motion runs by default under user motion and group motion: +- change this if needed in /etc/conf.d/motion +- or add users who need access to the output files to the motion group + +To install motion as a service, use: +- rc-update add motion default # with OpenRC +- systemctl enable motion.service # with systemd +" + +S="${WORKDIR}"/${PN}-release-${PV} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_with ffmpeg) \ + $(use_with mariadb) \ + $(use_with mmal) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with sqlite sqlite3) \ + $(use_with v4l v4l2) \ + $(use_with webp) \ + --without-optimizecpu +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + examplesdir=/usr/share/doc/${PF}/examples \ + install + + newinitd "${FILESDIR}/motion.initd-r5" ${PN} + newconfd "${FILESDIR}/motion.confd-r5" ${PN} + systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" + readme.gentoo_create_doc + readme.gentoo_print_elog +} diff --git a/media-video/motion/motion-4.5.1-r1.ebuild b/media-video/motion/motion-4.5.1-r1.ebuild deleted file mode 100644 index ee5f5d8492c9..000000000000 --- a/media-video/motion/motion-4.5.1-r1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools readme.gentoo-r1 systemd - -DESCRIPTION="A software motion detector" -HOMEPAGE="https://motion-project.github.io" -SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz -> ${PN}-release-${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="ffmpeg mariadb mmal mysql postgres sqlite v4l webp" - -RDEPEND=" - acct-group/motion - acct-user/motion - net-libs/libmicrohttpd:= - media-libs/libjpeg-turbo:= - >=sys-devel/gettext-0.19 - ffmpeg? ( media-video/ffmpeg:0= ) - mariadb? ( dev-db/mariadb-connector-c ) - mmal? ( media-libs/raspberrypi-userland ) - mysql? ( dev-db/mysql-connector-c ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 ) - webp? ( media-libs/libwebp:= ) -" -DEPEND="${RDEPEND} - v4l? ( - media-libs/libv4l - virtual/os-headers - ) -" -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS=" -You need to setup a configuraton file (/etc/motion/motion.conf) before -running motion for the first time. - -If motion is built with the mysql or mariadb use flags then please make -sure to configure a matching database_type in the config file. - -Motion runs by default under user motion and group motion: -- change this if needed in /etc/conf.d/motion -- or add users who need access to the output files to the motion group - -To install motion as a service, use: -- rc-update add motion default # with OpenRC -- systemctl enable motion.service # with systemd -" - -S="${WORKDIR}"/${PN}-release-${PV} - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - $(use_with ffmpeg) \ - $(use_with mariadb) \ - $(use_with mmal) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with sqlite sqlite3) \ - $(use_with v4l v4l2) \ - $(use_with webp) \ - --without-optimizecpu -} - -src_install() { - emake \ - DESTDIR="${D}" \ - docdir=/usr/share/doc/${PF} \ - examplesdir=/usr/share/doc/${PF}/examples \ - install - - newinitd "${FILESDIR}/motion.initd-r5" ${PN} - newconfd "${FILESDIR}/motion.confd-r5" ${PN} - systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" - readme.gentoo_create_doc - readme.gentoo_print_elog -} diff --git a/media-video/motion/motion-4.5.1-r2.ebuild b/media-video/motion/motion-4.5.1-r2.ebuild new file mode 100644 index 000000000000..ee5f5d8492c9 --- /dev/null +++ b/media-video/motion/motion-4.5.1-r2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools readme.gentoo-r1 systemd + +DESCRIPTION="A software motion detector" +HOMEPAGE="https://motion-project.github.io" +SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz -> ${PN}-release-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ffmpeg mariadb mmal mysql postgres sqlite v4l webp" + +RDEPEND=" + acct-group/motion + acct-user/motion + net-libs/libmicrohttpd:= + media-libs/libjpeg-turbo:= + >=sys-devel/gettext-0.19 + ffmpeg? ( media-video/ffmpeg:0= ) + mariadb? ( dev-db/mariadb-connector-c ) + mmal? ( media-libs/raspberrypi-userland ) + mysql? ( dev-db/mysql-connector-c ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 ) + webp? ( media-libs/libwebp:= ) +" +DEPEND="${RDEPEND} + v4l? ( + media-libs/libv4l + virtual/os-headers + ) +" +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need to setup a configuraton file (/etc/motion/motion.conf) before +running motion for the first time. + +If motion is built with the mysql or mariadb use flags then please make +sure to configure a matching database_type in the config file. + +Motion runs by default under user motion and group motion: +- change this if needed in /etc/conf.d/motion +- or add users who need access to the output files to the motion group + +To install motion as a service, use: +- rc-update add motion default # with OpenRC +- systemctl enable motion.service # with systemd +" + +S="${WORKDIR}"/${PN}-release-${PV} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_with ffmpeg) \ + $(use_with mariadb) \ + $(use_with mmal) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with sqlite sqlite3) \ + $(use_with v4l v4l2) \ + $(use_with webp) \ + --without-optimizecpu +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + examplesdir=/usr/share/doc/${PF}/examples \ + install + + newinitd "${FILESDIR}/motion.initd-r5" ${PN} + newconfd "${FILESDIR}/motion.confd-r5" ${PN} + systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" + readme.gentoo_create_doc + readme.gentoo_print_elog +} -- cgit v1.2.3