Skip to content

Instantly share code, notes, and snippets.

View knight-of-ni's full-sized avatar

Andrew Bauer knight-of-ni

View GitHub Profile
@knight-of-ni
knight-of-ni / gist:9036f11fb5945fa88be4fcfe0eef3616
Created February 15, 2017 15:41
packpack build failure when building debs
This file has been truncated, but you can view the full file.
+ docker pull packpack/packpack:ubuntu-xenial
Trying to pull repository docker.io/packpack/packpack ...
sha256:cbb1f8def6f1f30232de964e27c3fc21e9657c2912db9307a567f85f8ac3d1bb: Pulling from docker.io/packpack/packpack
8aec416115fd: Pulling fs layer
695f074e24e3: Pulling fs layer
946d6c48c2a7: Pulling fs layer
bc7277e579f0: Pulling fs layer
2508cbcde94b: Pulling fs layer
d35af056657e: Pulling fs layer
ed5f9fdd4bcd: Pulling fs layer
# systemd mount unit for ZoneMinder event storage
[Unit]
Description=systemd mount unit for ZoneMinder event storage
Before=zoneminder
[Mount]
What=/dev/disk/by-uuid/4241978c-bc58-483e-84c7-8ee95a0dafec
Where=/drive01
Type=ext4
# systemd bind mount unit for ZoneMinder event storage
[Unit]
Description=systemd bind mount unit for ZoneMinder event storage
After=drive01.mount
Requires=drive01.mount
[Mount]
What=/drive01/zoneminder/events
Where=/var/lib/zoneminder/events
@knight-of-ni
knight-of-ni / zoneminder-distropatternmatch.patch
Created June 14, 2017 14:23
Zoneminder 1.30.4 specfile with patches for f27
--- a/CMakeLists.txt 2017-05-09 09:54:48.000000000 -0500
+++ b/CMakeLists.txt 2017-06-13 17:45:26.224997743 -0500
@@ -150,30 +150,18 @@
"Build ZoneMinder for a specific distribution. Currently, valid names are: fc24, fc25, el6, el7, OS13, FreeBSD")
# Reassign some variables if a target distro has been specified
-if((ZM_TARGET_DISTRO STREQUAL "fc24") OR (ZM_TARGET_DISTRO STREQUAL "fc25"))
- set(ZM_RUNDIR "/var/run/zoneminder")
- set(ZM_SOCKDIR "/var/lib/zoneminder/sock")
- set(ZM_TMPDIR "/var/lib/zoneminder/temp")
$ rpmlint -v zoneminder
zoneminder.x86_64: I: checking
zoneminder.x86_64: E: explicit-lib-dependency libjpeg-turbo
zoneminder.x86_64: I: checking-url http://www.zoneminder.com/ (timeout 10 seconds)
zoneminder.x86_64: E: non-readable /etc/zm/zm.conf 640
zoneminder.x86_64: W: hidden-file-or-dir /usr/share/zoneminder/www/api/.editorconfig
zoneminder.x86_64: E: htaccess-file /usr/share/zoneminder/www/api/.htaccess
zoneminder.x86_64: E: htaccess-file /usr/share/zoneminder/www/api/app/.htaccess
zoneminder.x86_64: E: wrong-script-interpreter /usr/share/zoneminder/www/api/app/Console/cake /usr/bin/env bash
zoneminder.x86_64: E: non-executable-script /usr/share/zoneminder/www/api/app/Console/cake 644 /usr/bin/env bash
@knight-of-ni
knight-of-ni / zonemidner.spec
Created July 14, 2017 14:07
Latest ZoneMinder specfile and new patch
%global zmuid_final apache
%global zmgid_final apache
# Crud is configured as a git submodule
%global crud_version 3.0.10
%if "%{zmuid_final}" == "nginx"
%global with_nginx 1
%global wwwconfdir %{_sysconfdir}/nginx/default.d
%else
@knight-of-ni
knight-of-ni / rpmlint.txt
Created July 14, 2017 14:15
Jul 14 zoneminder rpmlint output
$ rpmlint -v zoneminder
zoneminder.x86_64: I: checking
zoneminder.x86_64: E: explicit-lib-dependency libjpeg-turbo
zoneminder.x86_64: I: checking-url http://www.zoneminder.com/ (timeout 10 seconds)
zoneminder.x86_64: E: non-readable /etc/zm/zm.conf 640
zoneminder.x86_64: W: hidden-file-or-dir /usr/share/zoneminder/www/api/app/Plugin/Crud/.semver
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/api/lib/Cake/Config/cacert.pem ../../../../../../../../etc/pki/tls/certs/ca-bundle.crt
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/cambozola.jar ../../java/cambozola.jar
zoneminder.x86_64: E: dir-or-file-in-var-run /var/run/zoneminder
zoneminder.x86_64: W: no-manual-page-for-binary zma
@knight-of-ni
knight-of-ni / Dockerfile
Created January 6, 2018 01:20
ZoneMinder Dockerfile Experimental
FROM ubuntu:xenial
MAINTAINER Markos Vakondios <[email protected]> Riley Schuit <[email protected]>
# Resynchronize the package index files
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apache2 \
build-essential \
cmake \
dh-autoreconf \
@knight-of-ni
knight-of-ni / ffmpeg35_buildfix.patch
Created January 20, 2018 14:36
This patch applies against zoneminder 1.30.4 branch. It fails against the master branch.
--- a/src/zm_mpeg.cpp
+++ b/src/zm_mpeg.cpp
@@ -29,6 +29,7 @@
{
#include <libavutil/mathematics.h>
#include <libavcodec/avcodec.h>
+#define AVFMT_RAWPICTURE 0x0020
}
bool VideoStream::initialised = false;
@knight-of-ni
knight-of-ni / odb_gcc6_fix.patch
Created February 11, 2018 20:18
patch to allow odb compiler to work with a project that uses boost libraries
From ec777147024fde72e4411cc6b1e1e49f4a1d1804 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <[email protected]>
Date: Fri, 23 Dec 2016 10:18:01 +0200
Subject: [PATCH] Fix bug in GCC 6 input_location translation
---
odb/cxx-lexer.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/odb/cxx-lexer.cxx b/odb/cxx-lexer.cxx