multimedia/motion: update to 4.7.1 to support ffmpeg8e1b71e0b5a
motion -- Denial of Serviceentered 2020-10-28
no CVE referenced
Motion detection application
# pkg install motioninstalls 4.7.1 from latest; from quarterly (2026Q4) 4.7.1# cd /usr/ports/multimedia/motion && make install clean# make -C /usr/ports/multimedia/motion config # change options first
To use the motion service properly, you should edit
/usr/local/etc/motion/motion.conf
according to your needs.
To set up your capture device (if using BKTR):
1. Load the bktr modules
Type as root:
kldload bktr_mem.ko
kldload bktr.ko
You can setup this in your /boot/loader.conf adding:
bktr_mem_load="YES"
bktr_load="YES"
2. Configure your card settings (tuner type, format, and card)
Type as root:
sysctl hw.bt848.card=1 ( Miro pctv )
sysctl hw.bt848.tuner=10 ( PHILIPS_FR1216_PAL )
sysctl hw.bt848.format=0 ( PAL )
or add to /etc/sysctl.conf adding:
hw.bt848.card=1
hw.bt848.tuner=10
hw.bt848.format=0
To automatically start the service at boot time,
add the following line to /etc/rc.conf:
motion_enable="YES"
Then, to start the service right now without reboot, execute
service motion start| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 4.7.1 | 4.7.1 | – |
| FreeBSD 15 | 4.7.1 | 4.7.1 | – |
| FreeBSD 14 | 4.7.1 | 4.7.1 | 4.7.1 |
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 4.7.1 | 4.7.1 | – |
| FreeBSD 14 | 4.7.1 | 4.7.1 | 4.7.1 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
pkg audit for the packaged version 4.7.1.no CVE referenced
| PR | Summary | Status | Changed |
|---|---|---|---|
| 279460 | maintainer-feedback? multimedia/motion: don't run as root | New | 2025-05-19 |
multimedia/motion: update to 4.7.1 to support ffmpeg8e1b71e0b5a
multimedia/motion: Update 4.6.0 => 4.7.0 Changelog: https://github.com/Motion-Project/motion/releases/tag/release-4.7.0 PR: 285810 Approved by: ports@blievers.net (maintainer)71ffb8bcea
multimedia/motion: Fix build with NLS=off: Can't exec "autopoint" Can't exec "autopoint": No such file or directory at /usr/local/share/autoconf2.72/Autom4te/FileUtils.pm line 318. autoreconf2.72: error: autopoint failed with exit status: 2 ===> Mk/Uses/autoreconf.mk: Error running /usr/local/bin/autoreconf2.72 While here remove GNU_CONFIGURE_MANPREFIX as it's a default value now. No bump - the default build has not changed. PR: 282531 Approved by: ports@blievers.net (maintainer) MFH: 2025Q197af0fc015
multimedia/motion: drop bktr support bktr support was removed in freebsd 13.03de820ff77
multimedia/motion: Moved man to share/man Approved by: portmgr (blanket)3a007ad6cd
multimedia/motion: update to 4.6.0 Changelog: https://github.com/Motion-Project/motion/releases/tag/release-4.6.0 PR: 275250247c44927e
multimedia/motion: Update to 4.5.1 Changelogs: 4.5.1: https://github.com/Motion-Project/motion/releases/tag/release-4.5.1 4.5.0: https://github.com/Motion-Project/motion/releases/tag/release-4.5.0 4.4.0: https://github.com/Motion-Project/motion/releases/tag/release-4.4.0 PR: 273810 Approved by: zirias (mentor) Differential Revision: https://reviews.freebsd.org/D419159c67d516b5
multimedia/motion: Fix build Update patch with fix from upstream. PR: 272494 Reported by: alexvpetrov@gmail.com Approved by: ports@blievers.net (maintainer, timeout > 2 weeks)42ce6b36ff
multimedia/motion: Mark BROKEN Fails to compile with lots of: error: undefined symbol: WebP*d380df54b8
*/*: Bump jpeg-turbo users treewide New major version 3.0.0664a2fa1e5
devel/gettext: Update to 0.22 Convert post-patch commands to real patches. This way there are errors when the underlying code changes. */*: Fix gettext issues. The new gettext tools are more strict. PR: 272210 Exp-run by: antoine2c2ec62c72
*/*: Bump all users of multimedia/ffmpeg* ...to make sure all picks up new version(s)f7accb23bf
multimedia/motion: Move to FFmpeg 4 Fails to build with FFmpeg 6 PR: 270295 Approved by: 270194 Sponsored by: Blinkinbloxe7617d92c5
audio/opus: bump consumers after update to 1.4feb1fa34f5
Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
multimedia: remove 'Created by' lines A big Thank You to the original contributors of these ports: * Aaron LI <aly@aaronly.me> * Alexander Botero-Lowry <alexbl@FreeBSD.org> * Alexander Logvinov <ports@logvinov.com> * Alexey Dokuchaev <danfe@FreeBSD.org> * Anders Nordby <anders@FreeBSD.org> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Andrew Thompson <andy@fud.org.nz> * Andrew Thompson <thompsa@FreeBSD.org> * Angel Carpintero <ack@telefonica.net> * Anish Mistry (with help from mean) * Anonymous <swell.k@gmail.com> * Ashish SHUKLA <ashish@FreeBSD.org> * Ashish Shukla <wahjava@gmail.com> * Ben Woods <woodsb02@FreeBSD.org> * Brian Somers <brian@FreeBSD.org> * Bruce M Simpson <bms@FreeBSD.org> * Byung-Hee HWANG <bh@izb.knu.ac.kr> * Charlie Kester <corky1951@comcast.net> * Chess Griffin <chess@chessgriffin.com> * Chris Piazza <cpiazza@FreeBSD.org> * Christopher Key <cjk32@cam.ac.uk> * Chuck Hein <chein@FreeBSD.org> & Jim Overholt <overholt@isdw.net> * Daniel Morante <daniel@morante.net> * Diego Depaoli <trebestie@gmail.com> and Yinghong Liu <relaxbsd@gmail.com> * Dierk Sacher <dierk@blaxxtarz.de> * Dreamcat4 <dreamcat4@gmail.com> * Earl Gay <earl@eeg3.net> * Ed Schouten <ed@FreeBSD.org> * Edwin Groothuis <edwin@mavetju.org> * Emanuel Haupt <ehaupt@FreeBSD.org> * Felix Palmen <felix@palmen-it.de> * Franz Bettag <franz@bett.ag> * FreeBSD GNOME Team <gnome@freebsd.org> * Gea-Suan Lin <gslin@gslin.org> * George Reid <greid@ukug.uk.freebsd.org> * Grzegorz Blach <gblach@FreeBSD.org> * Gustau Perez <gustau.perez@gmail.com> * Harold Gutch <logix@foobar.franken.de> * Heiner <h.eichmann@gmx.de> * Heiner Eichmann <h.eichmann@gmx.de> * Hendrik Scholz <hendrik@scholz.net> * Herbert J. Skuhra <h.skuhra@gmail.com> * Herve Quiroz <hq@FreeBSD.org> * Holger Lamm * J.R. Oldroyd <fbsd@opal.com> * Jason Harmening <jason.harmening@gmail.com> * Jille Timmermans (jille@quis.cx) * Juergen Lock <nox@FreeBSD.org> * Juergen Lock <nox@jelal.kn-bremen.de> * KalleDK <plexmaintainer@k-moeller.dk> * Koop Mast <kwm@FreeBSD.org> * Koop Mast <kwm@rainbow-runner.nl> * Kozlov Sergey <kozlov.sergey.404@gmail.com> * Kris Moore * Kuan-Chung Chiu <buganini@gmail.com> * Lars Eggert <lars.eggert@gmx.net> * Leinier Cruz Salfran <salfrancl@yahoo.es> * MANTANI Nobutaka <nobutaka@nobutaka.com> * Manuel Creach <manuel.creach@icloud.com> * Marc van Woerkom <3d@FreeBSD.org> * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Mark Felder <feld@FreeBSD.org> * Martin Matuska <mm@FreeBSD.org> * Martin Neubauer <m.ne@gmx.net> * Martin Wilke <miwi@FreeBSD.org> * Michael Johnson <ahze@FreeBSD.org> * Michael Johnson <ahze@ahze.net> * Michael Nottebrock <michaelnottebrock@gmx.net> * Michael Nottebrock <michaelnottebrock@gmx.net> et al * Mina Naguib <webmaster@topfx.com> * Mykola Dzham <i@levsha.me> * Naram Qashat <cyberbotx@cyberbotx.com> * Olivier Cochard-Labbe <olivier@FreeBSD.org> * Pascal Vizeli <pvizeli@yahoo.de> * Pav Lucistnik <pav@FreeBSD.org> * Pawel Pekala <pawel@FreeBSD.org> * Petar Zhivkov Petrov <pesho.petrov@gmail.com> * Phil Oleson * Phil Oleson <oz@nixil.net> * Piotr Kubaj <pkubaj@anongoth.pl> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Raaf <freebsd@luna.afraid.org> * Randall Hopper <aa8vb@nc.rr.com> * Rodrigo OSORIO <rodrigo@FreeBSD.org> * Rozhuk Ivan 2018 <rozhuk.im@gmail.com> * Rozhuk Ivan <rozhuk.im@gmail.com> * Rozhuk Ivan rozhuk.im@gmail.com * Rusmir Dusko <nemysis@FreeBSD.org> * Stacey Son <mythdev@son.org>, Ari Maniatis <ari@ish.com.au> * Steve Wills <steve@mouf.net> * Steve Wills <swills@FreeBSD.org> * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Sylvio Cesar <sylvio@FreeBSD.org> * Thierry Thomas <thierry@pompo.net> * Thomas E. Zander * Thomas E. Zander with help from Vladimir Kushnir * Vladimir Kondratiev <wulf@mail.mipt.ru> * William Grzybowski <wg@FreeBSD.org> * William Grzybowski <william88@gmail.com> * Yi-Hsuan Hsin <mhsin@mhsin.org> * Zastupov Stepan [RedChrom] <redchrom@mail.ru> * adamw * alex * arved * erich@FreeBSD.org * freebsd-ports@evilcode.net * giffunip@asme.org * ijliao * kamikaze@bsdforen.de * michael johnson <ahze@ahze.net> * mikael.urankar@gmail.com * mm * nox@FreeBSD.org * osa * pb@FreeBSD.org * piero * se@FreeBSD.org * sumikawa With hat: portmgr63f36d3262
multimedia/motion: unbreak the port's build against MYSQL option This is not a 100% correct fix, more of a mitigation: ``pkg-config --cflags mysqlclient'' fails with default OpenSSL, and thus MySQL header files could be be found: Package openssl was not found in the pkg-config search path. Perhaps you should add the directory containing `openssl.pc' to the PKG_CONFIG_PATH environment variable Package 'openssl', required by 'mysqlclient', not found The configure script makes several other bogus (at least in FreeBSD context) assumptions, but those could be fixed in a separate commit. Drop no longer supported options from the CONFIGURE_ARGS while here.209915b076
Bump PORTREVISION after www/libmicrohttpd updated PR: 2607774499b66242
Bump PORTREVISION after www/libmicrohttpd updated PR: 260603b55bac2881
multimedia/motion: Add CPE information Approved by: portmgr (blanket)1287e53696
*: Bump PORTREVISION after www/libmicrohttpd updated PR: 255938a7309207a0
multimedia/motion: Remove KMODDIR While this is technically fine, there is no reason to set it just for the dependency check. Reported by: portscan (KMODDIR without USES=kmod)c6520cdf0a
all: Remove all other $FreeBSD keywords.135fdeebb9
Remove # $FreeBSD$ from Makefiles.305f148f48
multimedia/motion: Update to 4.3.2 ChangeLog: https://github.com/Motion-Project/motion/releases/tag/release-4.3.2 PR: 250660 Submitted by: ports@blievers.net (maintainer)d7b9c29126
Update to 4.3.1 PR: 245714 Submitted by: ports@blievers.net (maintainer) Approved by: ehaupt (mentor) MFH: 2020Q2 (blanket; bugfix) Changelog: https://github.com/Motion-Project/motion/releases/tag/release-4.3.1a4d6d87ab3
multimedia/motion: - Update to 4.3.0 - Pass maintainership to submitter PR: 243415 Submitted by: ports@blievers.netd5108f1a24
onvert to UCL & cleanup pkg-message (categories l-m)558224994b
multimedia/ffmpeg: update to 4.2 Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.2:/Changelog ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/325aed58cb
multimedia/ffmpeg: update to 4.1 Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.1:/Changelog ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/0872f77fd4
Bump PORTREVISION to chase update of multimedia/v4l_compat and libv4l84b6aee905
multimedia/motion: - Add WEBCAMD option and enable by default - Bump PORTREVISION From the initiating PR: The multimedia/pwcbsd port contains an kernel module that appears to no longer work. The multimedia/pwcbsd port distfile has not been updated since 2014 so it is very unlikely to work. The multimedia/pwcbsd port was long ago replaced by the multimedia/webcamd port. The current multimedia/motion port has a PWCBSD option. This sets --with-pwcbsd in the configure step, create a build depend on v4l_compat and creates a run depend on multimedia/pwcbsd, which is then built and installed but not used. The motion application reads from /dev/video* which is now handled by multimedia/webcamd. The patch provided adds an option named WEBCAMD to an existing radio option that contains the PWCBSD option. The WEBCAMD option sets --with-pwcbsd in the configure step, creates the build depend on v4l_compat but does not create a run depend on pwcbsd. It could create a run depend on multimedia/webcamd but I didn't add that. The only affect of --with-pwcbsd in the configure step of the downstream port is to suppress disabling video4linux support and link with v4l_compat library. At some point the downstream should be advised to change the option names in the configure.ac file to reflect the demise of pwcbsd. I left the PWCBSD option in place and unchanged. It may serve no useful purpose so it could be removed. PR: 228102 Submitted by: Curtis Villamizar <curtis@ipv6.occnc.com> MFH: yesf4d968e513
multimedia/ffmpeg: update to 4.0 - FFSERVER support was removed upstream - libressl now uses libtls backend instead of patching openssl one - Clang i386 no longer uses 16-byte aligned stack Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.0:/Changelog ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/ PR: 227726 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D15175c400a2c8b6
multimedia/motion: unbreak with ffmpeg 4.0
ffmpeg.c:442:25: error: use of undeclared identifier 'CODEC_FLAG_QSCALE'
c->flags |= CODEC_FLAG_QSCALE;
^
ffmpeg.c:450:17: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER'
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
^
ffmpeg.c:492:40: error: use of undeclared identifier 'AVFMT_RAWPICTURE'
if (!(ffmpeg->oc->oformat->flags & AVFMT_RAWPICTURE)) {
^
ffmpeg.c:708:38: error: use of undeclared identifier 'AVFMT_RAWPICTURE'
if (ffmpeg->oc->oformat->flags & AVFMT_RAWPICTURE) {
^
PR: 22772641624773e8Do not abuse INSTALL_MAN when installing documentation, examples, and other miscellaneous files that are not actually manual pages (part 2).a247b2f47d
multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed
Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk
Changes: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI: https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR: 223057
Exp-run by: antoine84e727457f* Bump Revision to fix ioctl sign-extension warning * Cleanup Makefile PR: 221241 Submitted by: <peo@bsdlabs.com> Reviewed by: matthew (mentor) Approved by: matthew (mentor) MFH: 2017Q3 Differential Revision: https://reviews.freebsd.org/D1199330c34a6260
Chase ffmpeg 3.3 update (ABI changes) PR: 218658 Submitted by: riggsb50a4186ce
- Fix an issue where netcams were not connecting [1] - When motion was updated to 4.x, it was overlooked that the default search path for the configuration files was changed. This was causing existing configurations to not be read. Fix the port to install default configuration in correct location and add an UPDATING message giving users the proper instructions on where to place their exist PR: 216189 [1] Reported by: Charles P <charlespigott@googlemail.com> Patched by: <anthony@ury.org.uk> Obtained from: upstream PR: 216466 [2] Reported by: <bakhur@inbox.ru>, tdb@ Pointy hat to: jhale MFH: 2017Q1 (blanket)0a3f2e2222
Fix daemon inability to bind to the sockey with the following error: http_bindsock: error binding on 127.0.0.1 port 8081 this problem was already fixed upstream.cd69e4a20e
Update to 4.0.1 Project has moved to Github and is under active development Add support for Sqlite 3 database Convert to options helpers Move 3 line pkg-plist into the Makefilecce364bb5b
Remove libjpeg.so.11 compatibility link that was added in r374303 to prevent massive PORTREVISION bumps. Bump dependent ports that have not been bumped since.ca2176f4ac
Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat: portmgr
Sponsored by: Absolight8d6597e0bbRemove BROKEN on Tier-2 systems statements which no longer true at least on PowerPC (verified for all of them) and some also on SPARC (whenever I was able to test those on flame.freebsd.org) and even IA64 (which should be OK to remove anyways, because it was never really supported system in ports land and was officially killed in -CURRENT a while ago.3a63ba57c2
Convert to USES=jpeg6e5719ca80
- Add LICENSE_FILE - Switch to USES=autoreconf4db3ade849
Finally retire USE_PGSQL4cb60faedd
Fix check-stagedir plist warning. https://jenkins.freebsd.org/pci/head-amd64/logs/bulk/headamd64-default/708/logs/errors/motion-3.2.12_4.log Error: Orphaned: %%ETCDIR%%.conf This was caused by motion.conf being installed by the Makefile when it should have been handled only in pkg-plist. Also switched pkg-plist to use the new @sample keyword. Submitted by: swillsaf8348bb5b
The PWCBSD option requires V4L, so remove -DWITHOUT_V4L. I'm not sure why this change was made, but it breaks the PWCBSD option. It looked obviously wrong; it added a dependency on v4l_compat and then disabled it by definining WITHOUT_V4L. Looking at the code it's obvious V4L is required for anything other than network cameras too.57b91d5448