From d3614253a4bca3508939f5c32a79a0cbe7d09272 Mon Sep 17 00:00:00 2001 From: imil Date: Fri, 5 Dec 2014 14:47:02 +0000 Subject: Initial import of snoopy, version 2.1.0, into the NetBSD Packages Collection. Snoopy sends every executed command to syslog. --- security/snoopy/DESCR | 1 + security/snoopy/Makefile | 23 ++++++++++++++++++++++ security/snoopy/PLIST | 5 +++++ security/snoopy/distinfo | 6 ++++++ .../patch-src_lib_iniparser_src_iniparser.c | 15 ++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 security/snoopy/DESCR create mode 100644 security/snoopy/Makefile create mode 100644 security/snoopy/PLIST create mode 100644 security/snoopy/distinfo create mode 100644 security/snoopy/patches/patch-src_lib_iniparser_src_iniparser.c (limited to 'security') diff --git a/security/snoopy/DESCR b/security/snoopy/DESCR new file mode 100644 index 00000000000..eb4b34fa00b --- /dev/null +++ b/security/snoopy/DESCR @@ -0,0 +1 @@ +Snoopy sends every executed command to syslog. diff --git a/security/snoopy/Makefile b/security/snoopy/Makefile new file mode 100644 index 00000000000..81b8f3ad539 --- /dev/null +++ b/security/snoopy/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2014/12/05 14:47:02 imil Exp $ + +DISTNAME= snoopy-2.1.0 +CATEGORIES= security +MASTER_SITES= ftp://ftp.NetBSD.org/pub/pkgsrc/distfiles/ +EXTRACT_SUFX= .zip + +MAINTAINER= imil@NetBSD.org +HOMEPAGE= https://github.com/a2o/snoopy +COMMENT= Log every executed command to syslog +LICENSE= gnu-gpl-v3 + +WRKSRC= ${WRKDIR}/snoopy-snoopy-2.1.0 +USE_LIBTOOL= yes + +GNU_CONFIGURE= yes +USE_TOOLS+= aclocal autoheader autoconf automake gmake + +pre-configure: + set -e; cd ${WRKSRC}; \ + aclocal; autoheader; automake -a --foreign -i; autoconf + +.include "../../mk/bsd.pkg.mk" diff --git a/security/snoopy/PLIST b/security/snoopy/PLIST new file mode 100644 index 00000000000..3e3766b2874 --- /dev/null +++ b/security/snoopy/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2014/12/05 14:47:02 imil Exp $ +bin/snoopy-test-output +lib/libsnoopy.la +sbin/snoopy-disable +sbin/snoopy-enable diff --git a/security/snoopy/distinfo b/security/snoopy/distinfo new file mode 100644 index 00000000000..aba3a5d3e5d --- /dev/null +++ b/security/snoopy/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/12/05 14:47:02 imil Exp $ + +SHA1 (snoopy-2.1.0.zip) = f06dc5fe1d74507cd6a3adef1ff8f37850c156fd +RMD160 (snoopy-2.1.0.zip) = 3011124a6249de9fcf0577944dbd89b2368bd2ad +Size (snoopy-2.1.0.zip) = 318165 bytes +SHA1 (patch-src_lib_iniparser_src_iniparser.c) = 3f23f0512d51ad20730fe97e2391b744bbe74124 diff --git a/security/snoopy/patches/patch-src_lib_iniparser_src_iniparser.c b/security/snoopy/patches/patch-src_lib_iniparser_src_iniparser.c new file mode 100644 index 00000000000..9fb3354a03f --- /dev/null +++ b/security/snoopy/patches/patch-src_lib_iniparser_src_iniparser.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_lib_iniparser_src_iniparser.c,v 1.1 2014/12/05 14:47:02 imil Exp $ + +int cast needed to avoid error: array subscript has type 'char' + +--- src/lib/iniparser/src/iniparser.c.orig 2014-11-08 16:35:25.000000000 +0000 ++++ src/lib/iniparser/src/iniparser.c +@@ -677,7 +677,7 @@ dictionary * iniparser_load(const char * + } + /* Get rid of \n and spaces at end of line */ + while ((len>=0) && +- ((line[len]=='\n') || (isspace(line[len])))) { ++ ((line[len]=='\n') || (isspace((int)line[len])))) { + line[len]=0 ; + len-- ; + } -- cgit v1.2.3