mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 23:37:05 +02:00
- updated to the latest release - re-enabled ffmpeg support - switched to openrc init - used /var/lib/motion for storage - disabled cpu optimization
91 lines
3.3 KiB
Diff
91 lines
3.3 KiB
Diff
--- motion-4.0.1/motion-dist.conf.in
|
|
+++ ./motion-dist.conf.in
|
|
@@ -1,6 +1,6 @@
|
|
# Rename this distribution example file to motion.conf
|
|
#
|
|
-# This config file was generated by @PACKAGE_NAME@ @PACKAGE_VERSION@
|
|
+# This config file was generated by motion 4.0.1
|
|
|
|
|
|
############################################################
|
|
@@ -447,7 +447,7 @@
|
|
|
|
# Target base directory for pictures and films
|
|
# Recommended to use absolute path. (Default: current working directory)
|
|
-#target_dir /tmp/motion
|
|
+target_dir /var/lib/motion
|
|
|
|
# File path for snapshots (jpeg or ppm) relative to target_dir
|
|
# Default: %v-%Y%m%d%H%M%S-snapshot
|
|
@@ -666,70 +666,6 @@
|
|
# It depends on the driver, some drivers dosn't detect a lost camera at all
|
|
# Some hangs the motion thread. Some even hangs the PC! (default: none)
|
|
; on_camera_lost value
|
|
-
|
|
-#####################################################################
|
|
-# Common Options for database features.
|
|
-# Options require database options to be active also.
|
|
-#####################################################################
|
|
-
|
|
-# Log to the database when creating motion triggered picture file (default: on)
|
|
-; sql_log_picture on
|
|
-
|
|
-# Log to the database when creating a snapshot image file (default: on)
|
|
-; sql_log_snapshot on
|
|
-
|
|
-# Log to the database when creating motion triggered movie file (default: off)
|
|
-; sql_log_movie off
|
|
-
|
|
-# Log to the database when creating timelapse movies file (default: off)
|
|
-; sql_log_timelapse off
|
|
-
|
|
-# SQL query string that is sent to the database
|
|
-# Use same conversion specifiers has for text features
|
|
-# Additional special conversion specifiers are
|
|
-# %n = the number representing the file_type
|
|
-# %f = filename with full path
|
|
-# Default value:
|
|
-# Create tables :
|
|
-##
|
|
-# Mysql
|
|
-# CREATE TABLE security (camera int, filename char(80) not null, frame int, file_type int, time_stamp timestamp(14), event_time_stamp timestamp(14));
|
|
-#
|
|
-# Postgresql
|
|
-# CREATE TABLE security (camera int, filename char(80) not null, frame int, file_type int, time_stamp timestamp without time zone, event_time_stamp timestamp without time zone);
|
|
-#
|
|
-# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
|
-; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
|
-
|
|
-
|
|
-############################################################
|
|
-# Database Options
|
|
-############################################################
|
|
-
|
|
-# database type : mysql, postgresql, sqlite3 (default : not defined)
|
|
-; database_type value
|
|
-
|
|
-# database to log to (default: not defined)
|
|
-# for sqlite3, the full path and name for the database.
|
|
-; database_dbname value
|
|
-
|
|
-# The host on which the database is located (default: localhost)
|
|
-; database_host value
|
|
-
|
|
-# User account name for database (default: not defined)
|
|
-; database_user value
|
|
-
|
|
-# User password for database (default: not defined)
|
|
-; database_password value
|
|
-
|
|
-# Port on which the database is located
|
|
-# mysql 3306 , postgresql 5432 (default: not defined)
|
|
-; database_port value
|
|
-
|
|
-# Database wait time in milliseconds for locked database to
|
|
-# be unlocked before returning database locked error (default 0)
|
|
-; database_busy_timeout 0
|
|
-
|
|
|
|
|
|
############################################################
|