Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+17 -8
View File
@@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.7 2014/02/12 23:18:37 tron Exp $
#
# $NetBSD: Makefile,v 1.13 2014/09/08 21:24:45 wiz Exp $
DISTNAME= ZoneMinder-1.25.0
PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/}
PKGREVISION= 4
PKGREVISION= 9
CATEGORIES= security
MASTER_SITES= http://www2.zoneminder.com/downloads/
@@ -12,7 +11,7 @@ HOMEPAGE= http://www.zoneminder.com/
COMMENT= Video camera security and surveillance solution
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
PKG_OPTIONS_VAR= PKG_OPTIONS.zoneminder
PKG_SUPPORTED_OPTIONS= apache
@@ -131,12 +130,15 @@ SUBST_SED.dbpaths-path= -e 's|/usr/local/bin/|${PREFIX}/bin/|g'
SUBST_SED.dbpaths-path+= -e 's|/usr/bin|${PREFIX}/bin|g'
SUBST_SED.dbpaths-path+= -e 's|/cgi-bin/nph-zms|/zm/cgi-bin/nph-zms|g'
# Required to find the 'mysql' client executable.
#
# Required to find the 'mysql' client executable, and may also use 'sudo' if
# installed.
#
SUBST_CLASSES+= script-path
SUBST_MESSAGE.script-path= Adjusting paths in scripts.
SUBST_STAGE.script-path= pre-configure
SUBST_FILES.script-path= scripts/zmupdate.pl.in
SUBST_SED.script-path= -e 's|/usr/local/bin|${PREFIX}/bin|g'
SUBST_FILES.script-path= ${REPLACE_PERL}
SUBST_SED.script-path= -e "s|^\\([\$$]ENV{PATH} *= *'\\).*';\$$|\\1${PREFIX}/bin:/bin:/usr/bin';|g"
SUBST_CLASSES+= files
SUBST_STAGE.files= pre-configure
@@ -145,6 +147,12 @@ SUBST_SED.files= -e "s|@ZM_HTTPD_ROOT@|${PREFIX}/${ZM_HTTPD_ROOT}|g"
SUBST_SED.files+= -e "s|@ZM_HTTPD_CGIBIN@|${PREFIX}/${ZM_HTTPD_CGIBIN}|g"
SUBST_MESSAGE.files= Fixing ZoneMinder configuration file for Apache.
PLIST_VARS+= rcd
.if ${INIT_SYSTEM} == "rc.d"
PLIST.rcd= yes
.endif
post-extract:
${CP} ${FILESDIR}/zoneminder.conf ${WRKSRC}/zoneminder.conf
@@ -171,7 +179,9 @@ INSTALLATION_DIRS+= bin share/examples/rc.d share/zoneminder/db
post-install:
${INSTALL_DATA} ${WRKSRC}/zoneminder.conf ${DESTDIR}${PREFIX}/${EGDIR}/apache/zoneminder.conf
${INSTALL_DATA} ${WRKSRC}/zm.conf ${DESTDIR}${PREFIX}/${EGDIR}/config/zm.conf
.if ${INIT_SYSTEM} == "rc.d"
${INSTALL_SCRIPT} ${WRKSRC}/scripts/zm ${DESTDIR}${PREFIX}/share/examples/rc.d/zoneminder
.endif
${INSTALL_DATA} ${WRKSRC}/db/*.sql ${DESTDIR}${PREFIX}/share/zoneminder/db/
rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/events || true
rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/images || true
@@ -187,6 +197,5 @@ post-install:
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+2 -1
View File
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2014/03/11 14:05:14 jperkin Exp $
@comment $NetBSD: PLIST,v 1.3 2014/05/06 15:07:40 jperkin Exp $
bin/zma
bin/zmaudit.pl
bin/zmc
@@ -18,6 +18,7 @@ bin/zmwatch.pl
bin/zmx10.pl
${ZM_HTTPD_CGIBIN}/nph-zms
${ZM_HTTPD_CGIBIN}/zms
${PLIST.rcd}share/examples/rc.d/zoneminder
share/examples/zoneminder/apache/zoneminder.conf
share/examples/zoneminder/config/zm.conf
share/zoneminder/db/zm_create.sql
+2 -1
View File
@@ -1,10 +1,11 @@
$NetBSD: distinfo,v 1.3 2013/04/29 21:31:12 joerg Exp $
$NetBSD: distinfo,v 1.4 2014/05/20 11:30:27 dsainty Exp $
SHA1 (ZoneMinder-1.25.0.tar.gz) = a93a976a5cd82f1e197f4d7bd626d3f0387c4231
RMD160 (ZoneMinder-1.25.0.tar.gz) = 32a4f503770103e55bfe592864c1cab82e7395a6
Size (ZoneMinder-1.25.0.tar.gz) = 1119091 bytes
SHA1 (patch-Makefile_am) = 09b3ba7f9c292ef672506219be66f059290b6405
SHA1 (patch-configure_ac) = 87410ce8bc8fe42e08bf0e32e40b59619f7db90d
SHA1 (patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm) = 9aa69b922c323e2ba34e37de7923e2ee97430f7f
SHA1 (patch-scripts_zm_in) = 91809c9a179a0135c432a0ffad7c2d2ddfd512de
SHA1 (patch-src_Makefile_am) = 84999df8b7c80b049e2dd9cb308e12f50ed8285f
SHA1 (patch-src_zm__thread.h) = 8313d3294592fd08c775f612d70cc935e4f64d9a
@@ -0,0 +1,53 @@
$NetBSD: patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm,v 1.1 2014/05/20 11:30:27 dsainty Exp $
Perl doesn't really support "> /dev/null", so just capture into $output.
% ktruss -i perl -e 'qx(does-not-exist >/dev/null 2>&1);'|egrep 'dup2.*2'
does-not-exist: not found
% ktruss -i perl -e 'qx(does-not-exist 2>&1);'|egrep 'dup2.*2'
16954 1 perl dup2(0x1, 0x2) = 2
The problem is that, whilst Perl supports 2>&1 internally (and does not use
the shell at all) if there is no other redirection, it does not support file
redirection - it defers that (and therefore necessarily must also defer the
stderr redirection) to the shell. If the system's shell happens to report
"Not found" errors before redirection is processed (E.g. NetBSD shell) then
the stderr redirection is happening too late to be captured.
That leads to unintended errors reported on stderr - primarily if sudo is not
installed on the system, or not in the $PATH.
Use the -m parameter to su, as ZM_WEB_USER shouldn't require a login shell.
--- scripts/ZoneMinder/lib/ZoneMinder/General.pm.orig 2014-05-13 22:59:22.229694642 +1200
+++ scripts/ZoneMinder/lib/ZoneMinder/General.pm 2014-05-13 23:03:06.377703932 +1200
@@ -103,7 +103,7 @@
my $suffix = "";
my $command = $prefix.$null_command.$suffix;
Debug( "Testing \"$command\"\n" );
- $command .= " > /dev/null 2>&1";
+ $command .= " 2>&1";
my $output = qx($command);
my $status = $? >> 8;
if ( !$status )
@@ -120,6 +120,7 @@
$suffix = "'";
$command = $prefix.$null_command.$suffix;
Debug( "Testing \"$command\"\n" );
+ $command .= " 2>&1";
my $output = qx($command);
my $status = $? >> 8;
if ( !$status )
@@ -132,10 +133,11 @@
chomp( $output );
Debug( "Test failed, '$output'\n" );
- $prefix = "su ".ZM_WEB_USER." -c '";
+ $prefix = "su -m ".ZM_WEB_USER." -c '";
$suffix = "'";
$command = $prefix.$null_command.$suffix;
Debug( "Testing \"$command\"\n" );
+ $command .= " 2>&1";
$output = qx($command);
$status = $? >> 8;
if ( !$status )