summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2014-12-05 14:47:02 +0000
committerimil <imil@pkgsrc.org>2014-12-05 14:47:02 +0000
commit577c3a04b06f8e9bbf30bf42e971fc07ed2d4cc6 (patch)
tree12707126d216547003b4614961eeb2aee52acae9 /security
parentca042a93052137aa0caa09e25e37573413e9d75b (diff)
downloadpkgsrc-577c3a04b06f8e9bbf30bf42e971fc07ed2d4cc6.tar.gz
Initial import of snoopy, version 2.1.0, into the NetBSD Packages Collection.
Snoopy sends every executed command to syslog.
Diffstat (limited to 'security')
-rw-r--r--security/snoopy/DESCR1
-rw-r--r--security/snoopy/Makefile23
-rw-r--r--security/snoopy/PLIST5
-rw-r--r--security/snoopy/distinfo6
-rw-r--r--security/snoopy/patches/patch-src_lib_iniparser_src_iniparser.c15
5 files changed, 50 insertions, 0 deletions
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-- ;
+ }