Up to [cvs.NetBSD.org] / pkgsrc / security / zoneminder
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for icu 79
security/zoneminder: Update to 1.38.6 Tested on NetBSD 10. Upstream NEWS, less bugfixes and minor improvements: # ZoneMinder 1.38.6 Release Notes (some kind of packaging fix not important to pkgsrc) # ZoneMinder 1.38.5 Release Notes This is a maintenance release for the 1.38 series. It is primarily a security release: it fixes 19 reported vulnerabilities, including an authenticated remote code execution, a heap overflow and a stack overflow, as well as cross-monitor authorization bypasses throughout the web UI and API. All 1.38 users should upgrade. ## pgrade notes - **Run `zmupdate.pl -f` after upgrading** (the packages do this for you). It now replaces a `ZM_AUTH_HASH_SECRET` that is empty or still the shipped default with a random secret. Token (JWT) authentication is refused while the secret is the public default, so on a source install that skips this step API logins answer 403 until a secret is set in Options → System. - The 1.38.5 database update adds an index on `Sessions.access` and moves Controls rows from the removed `onvif` protocol module to `ONVIF`. - The API no longer answers actions a controller does not implement with generic handlers. Such requests, including Controls add/edit and Configs add, now return 404. - Adding a monitor to a group, removing it, re-parenting the group or deleting it now requires edit permission on each monitor affected, in both the web UI and the API. - Forcing, cancelling or disabling a monitor's alarms now requires edit permission on that monitor. - `ZM_GO2RTC_PATH` may now be given as the go2rtc server address (`http://host:1984`) or its API path (`http://host:1984/api`); before, only the `/api` form worked.
*: recursive bump for pcre2 10.49
*: revbump for pcre2 symbol versioning change
*: recursive bump for pcre2 10.48
security/zoneminder: Move to ffmpeg8 A different program had trouble building with old zoneminder, which prompted me to flip to ffmpeg8 and test.
security/zoneminder: tweak php-apcu handling Remove apcu from PHP_REQUIRE_MODULE and directly depends on www/php-apcu via buildlink3.mk since this package is supported by PHP 7 and later. No functional change.
security/zoneminder: Update to 1.38.4 Upstream NEWS, less bugfixes and minor improvements: # ZoneMinder 1.38.4 Release Notes This is a maintenance release for the 1.38 series: API/web authorization fixes, memory-safety and injection hardening, recording correctness fixes, and UI fixes.
security/zoneminder: Switch to use php/compat.mk
security/zoneminder: Partially rototill perl dependencies Organize perl dependencies according to - what upstream checks for in CMake - what is used by upstream foo.pm = what is likely leftover from historical zoneminder packages This commit is textually large but changes very little in the built package. It adds dependencies on several needed packages. As the research papers always say, more rototilling is needed.
security/zoneminder: Update to 1.38.3
Upstream NEWS, less bugfixes and minor improvements:
ZoneMinder 1.38.x Release Notes
TL;DR - Key Highlights
- Role-Based Access Control - Enterprise-grade permission system with user roles
- Modern Streaming - WebRTC, Go2RTC, RTSP2Web support with hardware acceleration
- Monitor Function Redesign - Granular control with separate Capturing, Analysing, and Recording settings
- Enhanced Protocols - ONVIF Events, MQTT, Amcrest API integration
-Event Tagging - Flexible labeling and organization system
- Server Monitoring - Real-time CPU, memory, and performance metrics
- Geolocation - Geographic tracking for events and servers
- Hardware Encoding - GPU acceleration for video encoding
Overview
ZoneMinder 1.38.x represents a major evolution from version 1.36.x,
introducing significant architectural improvements, new streaming
capabilities, enhanced security features, and extensive monitoring
enhancements. This release focuses on modernizing the platform with
support for contemporary streaming protocols, implementing
enterprise-grade access control, and improving performance and
scalability.
Major Feature Areas
1. Advanced User Access Control & Security
Role-Based Access Control (RBAC)
Introduced comprehensive role-based permission system with
reusable role templates New database tables: User_Roles,
Role_Groups_Permissions, Role_Monitors_Permissions Replaced legacy
comma-separated monitor ID strings with normalized permission
tables Fine-grained permissions for both monitor groups and
individual monitors
Enhanced User Management
Added user profile fields: Name, Email, Phone User-specific
montage layouts for personalized dashboards Improved security
controls with private and system configuration flags
2. Modern Streaming & Multi-Protocol Support
WebRTC Integration
Janus WebRTC Gateway support with audio streaming capabilities
Go2RTC protocol support for alternative streaming RTSP2Web
streaming with WebRTC/MSE/HLS options Configurable codec selection
and stream profiles
Hardware-Accelerated Encoding
Hardware acceleration support for video encoding (GPU encoding)
New encoder configuration options: EncoderHWAccelName and
EncoderHWAccelDevice Human-readable codec names replacing
integer-based codec selection Optimized encoding for reduced CPU
usage
3. Monitor Function Redesign
One of the most significant architectural changes in 1.38.x is the
redesign of the monitor Function field into three independent control
parameters. This provides much more granular control over monitor
behavior.
Legacy Function Field (1.36.x and earlier)
The traditional Function field was a single enum that controlled all aspects of a monitor's operation:
None - Monitor disabled
Monitor - Capture video only (no recording, no motion detection)
Modect - Motion detection with recording on motion
Record - Continuous recording without motion detection
Mocord - Continuous recording with motion detection
Nodect - Recording on external trigger, no built-in motion detection
New Granular Control (1.38.x)
The Function field has been split into three independent settings,
allowing fine-grained control:
Capturing enum (None/Ondemand/Always)
Controls whether the monitor captures video from the camera
None - No video capture (monitor effectively disabled)
Ondemand - Capture only when needed (e.g., when viewing live or triggered by events)
Always - Continuous video capture from the camera
Analysing enum (None/Always)
Controls whether motion detection and analysis is performed
None - No motion detection or analysis (equivalent to Monitor or Record modes)
Always - Perform motion detection and analysis (equivalent to Modect or Mocord modes)
Recording enum (None/OnMotion/Always)
Controls when video is saved to disk
None - No recording (live viewing only)
OnMotion - Record only when motion is detected or triggered
Always - Continuous recording
Migration from Legacy Functions
The database automatically migrates old Function values to the new settings:
None → Capturing: None, Analysing: None, Recording: None
Monitor → Capturing: Always, Analysing: None, Recording: None
Modect → Capturing: Always, Analysing: Always, Recording: OnMotion
Record → Capturing: Always, Analysing: None, Recording: Always
Mocord → Capturing: Always, Analysing: Always, Recording: Always
Nodect → Capturing: Always, Analysing: None, Recording: OnMotion
Benefits of the New Design
More flexible monitor configurations (e.g., analyze but don't record, or record without analysis)
Better resource management by independently controlling capture, analysis, and storage
Clearer separation of concerns for troubleshooting
Foundation for future enhancements like conditional recording policies
Easier to understand monitor behavior at a glance
4. Enhanced Camera Integration
Extended Protocol Support
ONVIF Event Listener for direct camera event notifications
Amcrest API support for Amcrest-branded cameras
MQTT integration for IoT device communication and message handling
Camera Management
Camera manufacturer and model database integration
5. Advanced Event Management
Event Tagging System
Flexible event labeling with custom tags
Many-to-many relationship between events and tags
Improved event organization and filtering
Event Automation & Triggers
Event start and end command execution
Multiple event close modes: system, time, duration, idle, alarm-based
Section length warnings for long recordings
Filter execution intervals for scheduled automation
Event Metadata & Analytics
Event data extensibility with custom metadata storage
Geolocation tracking (latitude/longitude) for events
Enhanced event reporting system with historical analytics
6. Performance & Infrastructure
Server Monitoring
Comprehensive server statistics tracking
CPU usage monitoring (User, Nice, System, Idle percentages)
Memory and swap utilization metrics
Timestamped performance data collection
Optimization Features
Monitor startup delay to stagger initialization and reduce system load
Enhanced status tracking with update timestamps
Analysis image channel optimization (Full Color vs. Y-Channel) (reduces cpu use)
Improved monitor soft delete with logical deletion flags
Monitor importance levels (Normal/Less/Not) for stream prioritization
Wall clock timestamp synchronization when doing passthrough
7. Display & User Interface
Montage Enhancements
Expanded grid layouts: 1/2/4/5/6/7/8/9/10/12/16 Wide configurations
User-specific montage layouts with personalized views
options to locate/hide status information to fully use space
Playback Improvements
Default player selection for preferred streaming client
Enhanced video playback controls
Improved event viewing experience
Optimal mjpeg scaling to reduce cpu/bandwidth use while maintaining fidelity
** New file explorer view **
limited to defined storage areas
** Watch and Cycle views merged **
PTZ controls improved, with toggling of visibility
8. Storage & Recording
Granular Recording Control
With the redesign of the monitor Function field (see section 3),
recording behavior is now controlled independently through the
Recording, Capturing, and Analysing settings. This provides much
greater flexibility:
Recording modes: None/OnMotion/Always
Capturing modes: None/Ondemand/Always
Analysis modes: None/Always
This allows configurations that weren't possible with the old Function
field, such as:
Capture and analyze without recording (for alerting only)
Record without analysis (for compliance/archival)
On-demand capture with triggered recording
Email Notifications
Email format options: Individual or Summary
Improved event notification formatting
Configurable alert delivery
9. Geographic & Metadata Features
Geolocation Support
Geographic coordinates for monitors, events, and servers
Location-based event tracking and analysis
10. Development & Integration
Database Schema Evolution
The 1.37.x series includes approximately 79 database schema updates
from 1.37.1 through 1.37.79, each introducing targeted improvements
and new capabilities. Key architectural changes include:
Migration from string-based configuration to normalized relational tables
Introduction of extensible metadata storage systems
Enhanced foreign key relationships for referential integrity
Improved indexing for query performance
Upgrade Considerations
Breaking Changes
Permission system migration from comma-separated strings to normalized tables
Some configuration parameters have been renamed or restructured
Monitor soft delete may require updates to custom scripts that query monitor data
Bump PKGREVISION affected by default PHP's version change.
*: recursive bump for perl5 5.44.0
*: Recursive revbump from security/nettle-4.0
*: recursive bump for nettle 4.0 shlib major bump
security/zoneminder: Depend on php-sysvsem This is used for serializing stream access. It might not be necessary, but upstream says not having it will cause a warning.
*: recursive bump for icu 78.1
security/zoneminder: Update to 1.36.37.10 Drop patches that have been pushed upstream: - adding NetBSD to RtspServer conditionals, via cherry-pick of upstream PR - %jd/intmax_t for timeval.tv_sec
security/zoneminder: Update to 1.36.37.7 This is really the release-1.36 branch, 7 commits after 1.36.37. Upstream has cherry-picked MariaDB fixes, and the pkgsrc default is now MariaDB, which should just work. GC cherry-picking of PR 3914, because those are on the upstream stable branch now. Rototill/gc/update README-pkgsrc.txt to catch up with years of zm changes. Drop ZM_DIR_IMAGES as no longer used. Clean up and improve comments in Makefile.
security/zoneminder: Add support for mysql vs MariaDB Cherry-pick commits from https://github.com/ZoneMinder/zoneminder/pull/3914/ Because of other upstream problems, there are two problems with using MariaDB, which can be mostly worked around. Leave hints in the Makefile near the MariaDB option. Hope that upstream addresses this soon. Leave the default at mysql to make it easier for anyone starting out. This has not been tested but is probably ok.
security/zoneminder: Drop 83 from PHP_VERSIONS_INCOMPATIBLE 83 used to fail, but now it's ok. (FreeBSD ports concurs.) Add comments about other versions, but there's no reason to choose older than 83.
security/zoneminder: minor gardening - drop unused ancient apache config fragment - adjust apache config example to modern practice - bring README at least somewhat up to date - Organize and clean the cmake settings in Makefile
security/zoneminder: Update to 1.36.37
Upstream NEWS, less bugfixes and minor improvements:
Fix building against FFmpeg 8.0
Use libpcre2 instead of deprecated libpcre3
Drop various foreign keys around Events table. We do this in 1.37 for performance/locking reasons. We are doing it here for zmrecover.pl
Fix for zmrecover.pl due to LinkPath using a 2 digit year not 4 in Deep Storage
security/zoneminder: Update to 1.36.36
Upstream NEWS, less bugfixes and minor improvements:
See https://github.com/ZoneMinder/zoneminder/releases/tag/1.36.36
Remove code that converts to mono audio
Add Support for the AV1 Codec
Revert change of tot_score and avg_score to unsigned ints. Make them ints so that comparison with other scores is ok
security/zoneminder: Add comments about p5 DBD mysql woes DBD-mysql no longer works with mariadb. There's a zoneminder upstream change to use DBD-MariaDB which needs addressing.
revbump for x264
*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
*: rev bump for curl
zoneminder: comment out p5-DBD-mysql p5-DBD-mysql pulls in mysql, but mysql.bl3.mk by default pulls in mariadb, and the two conflict Bump PKGREVISION.
*: bump for perl 5.42.0
*: SOEXT -> SHLIB_EXT
security/zoneminder: Update to 1.36.35 upstream changes appear to be bugfixes and minor improvements
*: recursive bump for jpeg -> libjpeg-turbo switch
*: recursive bump for default Kerberos implementation switch
*: recursive bump for icu 77 and libxml2 2.14
*: recursive bump for libtheora 1.2
security/zoneminder: Work around phpversion.mk setting PKG_SYSCONFSUBDIR phpversion.mk sets PKG_SYSCONFSUBDIR if not set, and that results in zoneminder's PKG_SYSCONFDIR being e.g. /usr/pkg/etc/php/8.2, leading to not reading the conf file and mysterious authentication failures. Work around this by setting PKG_SYSCONFSUBDIR before including lang/php/phpversion.mk, and then using PKG_SYSCONFDIR instead of PKG_SYSCONFDIR/zm. (That's arguably better anyway, separately from it working around the problem in phpversion.mk.)
security/zoneminder: multiple PHP support * Use PHP_BASE_VERS in DEPENDS if required. * Use REPLACE_PHP. * Require net/libvncserver/buildlink3.mk. Bump PKGREVISION.
security/zoneminder: Convert to cmake/build.mk This had slightly more changes than expected, but nothing mysterious: manual install rules need to reference built scripts in the cmake build directory. pkglint indent level cleanup. Note that pkglint is not perceiving ZM_PERL_PATH as a list and incorrectly warning (but that is hard to deal with). Update list of known-working database versions, and leave a hint that others have not been tested. Build tested only.
security/zoneminder: Update to 1.36.33
Note that this update brings some unresolved issues requiring manual
attention, but a) that's just how zoneminder is and b) running 1.36
and dealing with the issues seems better than 1.30 with ancient php
and 1.30's issues. The old version is in danger of being removed, so
this is better...
Significant packaging changes:
+ 1.36/1.34:
- Switch to ffmpeg6 from ffmpeg2
- gc many workarounds that are no longer necessary
+ 1.32:
- Change config to etc/zm from etc, and provide etc/zm/conf.d, because
migration from 1.30 writes there.
- Rototill hard the cmake build options, and try to document what
must be set as path configuration.
- Depend on mp4v2.
Upstream NEWS:
Generally, 1.X.0 is a significant release, and 1.X.Y, Y>0, are
bugfixes and minor improvements.
+ 1.36 (The Memory Remains):
Filters
Moved event email options from global config to per Filter
Added user to run filter as, so that users without access to certain monitors can't just use a filter to access them.
Filters now have PreSQL and PostSQL conditions. The first Post SQL condition is ExistsInFileSystem. This can be used to cleanup after a crash instead of using zmaudit.
warnings on Filter edit page when you create a filter than can delete archived events.
Added Auto Unarchive function
UI Updates
bootstrap updated to version 3
removed mootools
events list now uses bootstrap-table to enable a more modern powerful ui
scaled thumbnail on mouseover on events list
thumbnails with scaling on console
frames view updates to include stats information
many popups turned into modals
monitor edit is now a full view instead of popup
Zone edit is now scaled so high res cameras don't take the entire screen or more.
Added Estimated RAM use to Buffers tab in Monitors.
Monitor edit no longer form submits/reloads between tabs it just hides/unhides tabs using bootstrap nav.
Monitors can now have Latitude/Longitude associated and displayed on a map
General
New Monitor type VNC for recording desktops
better use of scaling when streaming to reduce bandwidth/cpu use
dynamic loading of vlc, curl and other libraries that might not be used. Saves ram
ONVIF probe can now select a network to scan
Sessions now stored in database
Event Summary tables reorganized to improve locking performance
Clicking on username in header will now list other logged in users if you have SystemView permission.
ZoneMinder will now try other Storage Areas if it can't create the event in the assigned area.
New Monitor Setting: Decoding Enabled/Disabled
/dev/shm mmap use decoupled from image buffering. You should set ImageBufferCount to 3 or larger.
mp4v2 deprecated and removed.
zma process has been turned into a thread of zmc.
Added second ffmpeg input stream for when audio is coming from another source.
added RTSP re-streaming
hwaccel encoding support for intel vaapi and nvenc
Use onmousedown/onmouseup for PTZ start/stop in PTZ controls. Amcrest is the only Protocol that supports it so far.
+ 1.34 (My Friend Of Misery):
This is largely a fixes & polish release. There are a number of bug fixes and security improvements in here.
Upgrading from 1.32.3 should be relatively painless although if your Logs table is large it may take some time to update it.
Security fixes:
We no longer store passwords using mysql's built-in password encryption.
We now support a modern JWT access token system
Replaced a lot of inline javascript.
There were a number of XSS and SQL injection issues fixed.
CVE-2019-13072
CVE-2019-6777
Other changes:
When adding a new monitor a random colour will be assigned to it instead of red.
We now have a handy resolution dropdown to help prevent typos in the width & height fields
Support for mysql8
Support for php 7.4
Can now delete database log entries for the logs popup
Timezone setting moved from php.ini to Options -> System
ffmpeg hwaccel support for h264 decoding
Improved recording to mp4 with audio
Added ZM_LOG_FFMPEG options which captures ffmpeg debug messages properly which can really help with debugging.
Added ability to use zms to stream mjpeg when the video is stored as h265. Most browsers can't play h265 so this allows you to use passthrough mode with an h265 camera and still watch the video.
Filters now have a Copy To action which copies the event files to a second storage area
We now display additional event information such as that generated by event server object detection
+ 1.32
- A re-worked web console, compared to the previous 1.30.4 release
- record to mp4 container
- record audio
- support for php 7.x
- Arbitrary website as a non-recordable, interactive monitor.
- Updated Montage Review
- Options-> Paths moved into config files under conf.d folder
- Multiple storage paths are supported. See Options -> Storage
- The old method of bind mounting the event folder is no longer needed nor recommended
- Additional system statistics on the web console
- Raspberry pi OMX hardware h264 decoder support
- Event thumbnails play video on mouseover
- Drag and drop sorting of monitors
- Scalability improvements
Upstream upgrade notes (tweaked for pkgsrc):
- The upgrade scripts will take longer than normal to run,
especially if you have many events.
- Your previous settings on the Options -> Paths tab have been
moved into the file zmcustom.conf which is found under
${PKGSYSCONFDIR}/etc/zm/conf.d
- Consider migrating your events folder from the former bind mount
method to the new method under Options -> Storage
- You should no longer have symbolic links in your webroot
folder. This resolves a long standing security issue.
- The Apache config file has changed. Hand merge it and review
your web setup.
*: recursive bump for icu 76 shlib major version bump
*: revbump for icu downgrade
*: recursive bump for icu 76.1 shlib bump
*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
revbump after icu and protobuf updates
*: recursive bump for gnutls p11-kit option (existing installations need the bl3.mk included, but it's now only optionally included)
*: Recursive revbump from multimedia/libvpx
*: revebump for new brotli option for freetype2 Addresses PR 57693
*: recursive bump for icu 74.1
*: bump for openssl 3
revbump after textproc/icu update
*: Recursive revbup from graphics/freetype2
*: bump PKGREVISION for libunistring shlib major bump
zoneminder: Update to 1.30.5 Welcome to 2016. MESSAGE content has been moved to an installed README and improved. Prepared in wip by dsainty@ with some help from gdt@. Upstream NEWS Onvif discovery is now enabled by default. This features increases build time, but the benefit is auto-discovery of any Onvif compliant camera. Please note that this feature is still experimental. It has not been tested in a large environment or with a large variety of cameras. Using this tool is largely self explanatory, but if you are looking for documentation it can be found on the @altaroca ’s blog site. As time allows, we will bring the documentation over to our readthedocs site. Volunteers to do this work are welcome. ZoneMinder now has a telemetry deamon which collects information about your machine. This was done to learn how our user base uses ZoneMinder, the most common system size, choice of distro, cpu, memory, and a couple of other things. This will help us focus our efforts on what features get used the most. Since this was written in Perl, you can easily see for yourself what information is being sent. Note that this feature defaults to ON. If this is not what you want, then you can turn it off under Options. In a future release, we plan to include an install wizard, which will prompt the user about this feature. Have you ever wished for the motion detection zones to be live, rather than a static image? Well they are now! Creating or modifying zones works exactly the same as before, but with the live stream running in the background. If you need to freeze the stream, there is a Pause button at the bottom of the window to do just that. A new feature called Montage Review has been added. This can be thought of as a modified version of the original montage feature with features such as "scrubbing" through video. The Montage Review screen has received sufficient testing to be part of the release, but you should still treat this feature as experimental. We expect there to be additional fixes and refinements.
*: recursive bump for perl 5.36
To fix Linux readv/writev, back-port: https://github.com/ZoneMinder/zoneminder/commit/417421b1d869d1b71c8ec1a1e3b082fcede6ce58#diff-484f666f58ec13f38fa402143f2f6ad8e63a013909d3941ffbb3d66745b20c8d This is also needed by the Pkgsrc WIP version. Bump PKGREVISION - though this change is unlikely to alter the outcome of previously successful builds.
The need for php-mysql seems to have vanished a long time ago. This package is quite happy to use php-mysqlnd, which in turn is a built-in component of all versions of PHP in Pkgsrc. Drop the dependency, and therefore expand the PHP_VERSIONS_ACCEPTED constraint. ZoneMinder 1.29.0 seems to work fine on at least PHP 5.6 and 7.4. Under PHP 8.0 it is logging at Error level type errors out of skin.js. Under PHP 8.1 it is logging at Panic level that strftime is deprecated. Bump PKGREVISION.
The web interface PHP uses the PHP sockets extension, at least from share/zoneminder/htdocs/ajax/stream.php. Because all the PHP extensions self-enable in this decade, there's no need to configure php-sockets. The same is also true of all the other extensions, so just remove those unnecessary instructions from MESSAGE. Bump PKGREVISION to 7 and bump year to 2022 (NZDT).
Reinstate the comment that the 5.6 limitation is for php-mysql, because that's valuable insight, and still unfortunately the case. No functional change.
Revbump for MySQL default change
*: recursive bump for perl 5.34
security/zoneminder: Re-eanable a SUBST I was confused about which SUBST was not ok, and had removed two, when only one was troubled. This is probably still not quite right, but zoneminder needs an update of multiple major versions anyway. Thanks to rillig@ for review and hints.
*: bump PKGREVISION for perl-5.32.
security/zoneminder: Update to 1.29.0 This is the last version that supports autoconf, and this update is only because it's a reasonable benefit/cost tradeoff as an intermediaate step. Tested on netbsd-9/earmv7hf-el. Upstream chanages: many bug fixes and improvements zoneminder API Multiserver limted ONVIF support See more at https://github.com/ZoneMinder/zoneminder/releases/tag/v1.29.0-rc2 and before and after. Note that when updating, one must run zmupdate to modify the db schema.
*: revbump after fontconfig bl3 changes (libuuid removal)
security/zoneminder: fix build in SUBST_NOOP_OK=no mode
Comment that PHP_VERSIONS_ACCEPTED=56 is for php-mysql
Fix conflict with <version>. Resolve argument type of std::abs.
*: Recursive revision bump for openssl 1.1.1.
security: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections.
Bump PKGREVISIONs for perl 5.30.0
security/zoneminder: Note draft update to 1.29.0 in wip
zoneminder: fix typo in comment.
security/zoneminder: Update example apache config to 24
security/zoneminder: Depend on p5-Net-SFTP-Foreign Add comment about adding dependencies on perl modules that are maybe loaded depending on the configuration.
Recursive bump for perl5-5.28.0
zoneminder: adjust fix for printf/time_t Rather than casting to long, cast to intmax_t and print with %jd, as suggested by joerg@.
zoneminder: avoid %ld for time_t (int64_t, not long on arm) zoneinder uses %ld to print tv.tv_sec, which is of type time_t. On NetBSD, that's int64_t, which happens to match long on amd64, but not on arm, and hence printf often segfaults. Kludge around this by casting to long, which should work for about 20 years, by which time a proper fix should have arrived in a zoneminder release. Not yet raised upstream, because our package is 1.28.1 and upstream has released 1.30.4.
Recursive bumps for fontconfig and libzip dependency changes.
revbump after x264-devel update
Add commit "Add IP6 address type to valid types for ConnInfo" to patches. Bump PKGREVISION.
Follow some redirects.
Pullup ticket #5331 - requested by sevan
security/zoneminder: build fix for macOS
Revisions pulled up:
- security/zoneminder/Makefile 1.33
---
Module Name: pkgsrc
Committed By: dsainty
Date: Thu Apr 20 09:59:39 UTC 2017
Modified Files:
pkgsrc/security/zoneminder: Makefile
Log Message:
Darwin does have sendfile(), but the API differs from ZoneMinder's
expectation.
Inhibit its use on Darwin to fix the build.
Hello,
Please pull up the following Darwin build fix to security/zoneminder.
Darwin does have sendfile(), but the API differs from ZoneMinder's expectation. Inhibit its use on Darwin to fix the build.
pkgrevision bump for changed apache default. bumping any package depending on a pkg with APACHE_PKG_PREFIX but without APACHE_PKG_PREFIX in its PKGNAME.
Fix error checks. Bump revision.
Recursive bump for libvpx shlib major change.
Drop "55" (php55) from PHP_VERSIONS_ACCEPTED.
Recursive revbump from multimedia/libvpx uppdate
Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.
Use REAL_ROOT_USER/REAL_ROOT_GROUP instead of ROOT_USER/ROOT_GROUP for all pkgsrc dir/file ownership rules. Fixes unprivileged user/group names from leaking into binary packages, manifest as non-fatal chown/chgrp failure messages at pkg_add time. Bump respective packages' PKGREVISION.
Bump PKGREVISION for security/openssl ABI bump.
Explicitly restrict PHP_VERSIONS_ACCEPTED to 55 and 56 for packages which use php-mysql package.
Recursive revbump from multimedia/libvpx
Comment out dependencies of the style
{perl>=5.16.6,p5-ExtUtils-ParseXS>=3.15}:../../devel/p5-ExtUtils-ParseXS
since pkgsrc enforces the newest perl version anyway, so they
should always pick perl, but sometimes (pkg_add) don't due to the
design of the {,} syntax.
No effective change for the above reason.
Ok joerg
Recursive revbump from pkgsrc/multimedia/libvpx.
Recursive PKGREVISION bump for all packages mentioning 'perl', having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
Needs libexecinfo on newer NetBSD. Needs pkg-config for autoreconf.
Pullup ticket #4654 - requested by dsainty
security/zoneminder: security update
Revisions pulled up:
- security/zoneminder/Makefile 1.18
- security/zoneminder/distinfo 1.7
- security/zoneminder/MESSAGE 1.3
- security/zoneminder/PLIST 1.4
- security/zoneminder/patches/patch-Makefile_am 1.3
- security/zoneminder/patches/patch-configure_ac 1.4
- security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm 1.2
- security/zoneminder/patches/patch-scripts_zm_in 1.3
- security/zoneminder/patches/patch-src_Makefile_am 1.3
- security/zoneminder/patches/patch-src_zm__thread.h 1.4
- security/zoneminder/patches/patch-src_zm__timer.h 1.3
- security/zoneminder/patches/patch-src_zm__utils.h 1.2
- security/zoneminder/patches/patch-src_zm_ffmpeg_camera_cpp 1.1
- security/zoneminder/patches/patch-src_zm_remote_camera_h 1.4
- security/zoneminder/patches/patch-src_zm_signal_cpp 1.1
- security/zoneminder/patches/patch-src_zm_signal_h deleted
- security/zoneminder/patches/patch-src_zmf_cpp deleted
---
Module Name: pkgsrc
Committed By: dsainty
Date: Sun Apr 5 08:51:08 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: MESSAGE Makefile PLIST distinfo
pkgsrc/security/zoneminder/patches: patch-Makefile_am
patch-configure_ac
patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm
patch-scripts_zm_in patch-src_Makefile_am patch-src_zm__thread.h
patch-src_zm__timer.h patch-src_zm__utils.h
patch-src_zm_remote_camera_h
Removed Files:
pkgsrc/security/zoneminder/patches: patch-src_zm_signal_h
patch-src_zmf_cpp
Log Message:
Update ZoneMinder from 1.25.0 to 1.28.1.
Numerous changes, documented at:
https://github.com/ZoneMinder/ZoneMinder/releases
Addresses two security advisories:
https://github.com/ZoneMinder/ZoneMinder/releases/tag/v1.28.0
http://secunia.com/advisories/62918/
Pkgsrc changes:
patch-src_zm_signal_h is no longer necessary because zm_signal.h uses
HAVE_EXECINFO_H.
patch-src_zmf_cpp appears to be applied upstream.
patch-configure_ac no longer needs to set PATH_BUILD to
PREFIX/share/zoneminder, so that zmupdate.pl can locate the database build
scripts as installed files. Upstream has now implemented this via the
ZM_PATH_DATA entry in zm.conf, and adds a ZM_PATH_DATA/db subdirectory.
src/Makefile.am no longer setuid's zmfix, as zmfix was removed from
ZoneMinder 1.26.6.
The code now uses clock_gettime(), which on some systems (like Linux), calls
for -lrt. Since the build system isn't aware of this, but Pkgsrc is, just set
PTHREAD_AUTO_VARS=yes.
The PHP code now uses PDO for DB access, but it looks like there are some
straggling dependencies on the raw MySQL driver, so both are pulled in.
---
Module Name: pkgsrc
Committed By: dsainty
Date: Tue Apr 7 12:32:59 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: Makefile
Log Message:
NetBSD's tar (6.1) does an exit(1) on the source archive, complaining:
Invalid header, starting valid header search.
As a workaround: EXTRACT_USING=gtar
---
Module Name: pkgsrc
Committed By: dsainty
Date: Tue Apr 7 12:54:36 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: distinfo
pkgsrc/security/zoneminder/patches: patch-configure_ac
Log Message:
Recognise lower-case "netbsd" as BSD.
NB: This doesn't fix the threads portability issues yet for NetBSD, but gets
through configuration.
---
Module Name: pkgsrc
Committed By: dsainty
Date: Fri Apr 10 02:53:20 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: Makefile
Log Message:
New ZoneMinder supports the newer ffmpeg APIs, so switch the ffmpeg
dependency from ffmpeg010 to ffmpeg2.
---
Module Name: pkgsrc
Committed By: dsainty
Date: Fri Apr 10 02:58:49 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: Makefile distinfo
pkgsrc/security/zoneminder/patches: patch-src_zm__thread.h
patch-src_zm__timer.h
Added Files:
pkgsrc/security/zoneminder/patches: patch-src_zm_ffmpeg_camera_cpp
patch-src_zm_signal_cpp
Log Message:
Patch up some Linux-specific assumptions in the code.
Fixes build under NetBSD.
Bump PKGREVISION for switch to ffmpeg2, and some portability changes that
aren't expected to affect functionality.
---
Module Name: pkgsrc
Committed By: dsainty
Date: Wed Apr 22 15:13:44 UTC 2015
Modified Files:
pkgsrc/security/zoneminder: Makefile
Log Message:
Fix paths in two missed installed scripts.
The intention of zmsystemctl.pl is to use bin/pkexec to allow the apache user
to start and stop the ZoneMinder services on operating systems using systemd
and newer versions of Polkit than Pkgsrc currently has.
If the base OS doesn't use systemd (E.g. anything not Linux), this file
shouldn't be used anyway.
In Pkgsrc we ignore the potentially absent pkexec interpreter in this file.
If the base OS uses systemd, it probably also has pkexec in its base
installation.
Bump PKGREVISION.
Fix paths in two missed installed scripts. The intention of zmsystemctl.pl is to use bin/pkexec to allow the apache user to start and stop the ZoneMinder services on operating systems using systemd and newer versions of Polkit than Pkgsrc currently has. If the base OS doesn't use systemd (E.g. anything not Linux), this file shouldn't be used anyway. In Pkgsrc we ignore the potentially absent pkexec interpreter in this file. If the base OS uses systemd, it probably also has pkexec in its base installation. Bump PKGREVISION.
Patch up some Linux-specific assumptions in the code. Fixes build under NetBSD. Bump PKGREVISION for switch to ffmpeg2, and some portability changes that aren't expected to affect functionality.
New ZoneMinder supports the newer ffmpeg APIs, so switch the ffmpeg dependency from ffmpeg010 to ffmpeg2.
NetBSD's tar (6.1) does an exit(1) on the source archive, complaining: Invalid header, starting valid header search. As a workaround: EXTRACT_USING=gtar
Update ZoneMinder from 1.25.0 to 1.28.1. Numerous changes, documented at: https://github.com/ZoneMinder/ZoneMinder/releases Addresses two security advisories: https://github.com/ZoneMinder/ZoneMinder/releases/tag/v1.28.0 http://secunia.com/advisories/62918/ Pkgsrc changes: patch-src_zm_signal_h is no longer necessary because zm_signal.h uses HAVE_EXECINFO_H. patch-src_zmf_cpp appears to be applied upstream. patch-configure_ac no longer needs to set PATH_BUILD to PREFIX/share/zoneminder, so that zmupdate.pl can locate the database build scripts as installed files. Upstream has now implemented this via the ZM_PATH_DATA entry in zm.conf, and adds a ZM_PATH_DATA/db subdirectory. src/Makefile.am no longer setuid's zmfix, as zmfix was removed from ZoneMinder 1.26.6. The code now uses clock_gettime(), which on some systems (like Linux), calls for -lrt. Since the build system isn't aware of this, but Pkgsrc is, just set PTHREAD_AUTO_VARS=yes. The PHP code now uses PDO for DB access, but it looks like there are some straggling dependencies on the raw MySQL driver, so both are pulled in.
Bump PKGREVISION for netpbm update. Add some build fixes where necessary.
DEPEND on netpbm instead of including its buildlink3.mk file, if you're not linking against it. Bump PKGREVISION for packages that (might be|are) changed.
Bump for perl-5.20.0. Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
Improve behaviour under NetBSD, successfully supressing error messages under NetBSD's shell, and passing the -m option to NetBSD's "su" command to support users without login shells. Add the PREFIX to all script PATHs. This can allow sudo to be installed and used as an alternative to su, should there be any value in doing that. Bump PKGREVISION.
Fix rc.d handling.
recursive bump from x264-devel builld number change (i.e. API change).
Recursive PKGREVISION bump for OpenSSL API version bump.
Fix/Update DEPENDS paterns for perl CORE modules, with some trivial fixes. Bump PKGREVISION for runtime dependency pattern changed packages.
Bump all packages for perl-5.18, that a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
Fix build with Clang and as unprivileged user.
Bump PKGREVISION from default PHP version change to 5.4.
Remove a couple of commented unused lines
ZoneMinder version 1.25.0: ZoneMinder is intended for use in single or multi-camera video security applications, including commercial or home CCTV, theft prevention and child, family member or home monitoring and other domestic care scenarios such as nanny cam installations. It supports capture, analysis, recording, and monitoring of video data coming from one or more video or network cameras attached to a system. ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom cameras using a variety of protocols. It is suitable for use as a DIY home video security system and for commercial or professional video security and surveillance. It can also be integrated into a home automation system via X.10 or other protocols.