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
$ 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 / 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")
# 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
# 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
@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
[abauer@bauerhaus ~]$ rpm -qR zoneminder
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/usr/bin/gpasswd
/usr/bin/less
/usr/bin/perl
/usr/bin/pkexec
cambozola
@knight-of-ni
knight-of-ni / gist:87962ab97a6ffbc139083b07d0522231
Created December 28, 2016 14:11
email discussion w/ Fedora concerning future of zoneminder package
I just read the process on their web page:
https://rpmfusion.org/Contributors
If you would like, I could help sponsor you for *Fedora* packaging
because it seems it will be beneficial for RPMFusion too. They both
use the same set of guidelines and process/tools for the most part.
https://fedoraproject.org/wiki/Join_the_package_collection_maintainers
@knight-of-ni
knight-of-ni / gist:cf2e4e2169ed8d4147b6367d6a60a843
Last active December 28, 2016 15:20
newest zoneminder rpm spec file
%global zmuid_final apache
%global zmgid_final apache
# In some cases older distros do not have this macro defined
%{!?make_build: %global make_build %{__make} %{?_smp_mflags} }
%if "%{zmuid_final}" == "nginx"
%global with_nginx 1
%global wwwconfdir /etc/nginx/default.d
%else
@knight-of-ni
knight-of-ni / gist:e944c47a5cfdfe71cf68d3ac2366afe2
Created December 27, 2016 17:35
rpmlint output on zoneminder 1.30.1 rpm/srpm
[abauer@vFedora25 x86_64]$ rpmlint zoneminder-1.30.1-1.fc25.src.rpm
zoneminder.src: W: invalid-url Source0: ZoneMinder-1.30.1.tar.gz
1 packages and 0 specfiles checked; 0 errors, 1 warnings.
[abauer@vFedora25 x86_64]$ rpmlint zoneminder-1.30.1-1.fc25.x86_64.rpm
zoneminder.x86_64: E: non-readable /etc/zm/zm.conf 640
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/cambozola.jar ../../java/cambozola.jar
zoneminder.x86_64: E: explicit-lib-dependency libcurl
zoneminder.x86_64: E: explicit-lib-dependency libjpeg-turbo
perl -e 'use POSIX qw(uname); my @uname = uname(); foreach (@uname) { print $_,"\n"; }'