diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-28 17:26:53 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-28 17:26:53 +0000 |
commit | 9c4293b3d29a0fd26ebf9674ff69c383f387fd40 (patch) | |
tree | 3a645ea44e3e86047f8232600234147785851113 /audio | |
parent | Add Bugtraq ID for SA-04:16.fetch entry. (diff) |
Add listener, a typical security-related program like the motion package
(which detects motion on a Webcam): it listens for sound. If it detects
any, it starts recording until the sound stops (or a bit later, which is
configurable). It stores the audio in .WAV files.
PR: ports/74348
Submitted by: David Thiel <lx@redundancy.redundancy.org>
Notes
Notes:
svn path=/head/; revision=122677
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/listener/Makefile | 28 | ||||
-rw-r--r-- | audio/listener/distinfo | 2 | ||||
-rw-r--r-- | audio/listener/files/patch-Makefile | 34 | ||||
-rw-r--r-- | audio/listener/pkg-descr | 6 | ||||
-rw-r--r-- | audio/listener/pkg-plist | 5 |
6 files changed, 76 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index d718ea9dd97b..ad326bc7a224 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -196,6 +196,7 @@ SUBDIR += linux-libaudiofile SUBDIR += linux-mbrola SUBDIR += linux-vsound + SUBDIR += listener SUBDIR += liteamp SUBDIR += lopster SUBDIR += lplayer diff --git a/audio/listener/Makefile b/audio/listener/Makefile new file mode 100644 index 000000000000..f1aa2266be4b --- /dev/null +++ b/audio/listener/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: listener +# Date created: 2004-11-24 +# Whom: lx +# +# $FreeBSD$ +# + +PORTNAME= listener +PORTVERSION= 0.6 +CATEGORIES= audio +MASTER_SITES= http://www.vanheusden.com/listener/ +EXTRACT_SUFX= .tgz + +MAINTAINER= lx@redundancy.redundancy.org +COMMENT= A program to listen for and record sound activity + +LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile + +DOCS= INSTALL + +post-install: + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/audio/listener/distinfo b/audio/listener/distinfo new file mode 100644 index 000000000000..c2eb192f7d5a --- /dev/null +++ b/audio/listener/distinfo @@ -0,0 +1,2 @@ +MD5 (listener-0.6.tgz) = 6c71df6f7b32eeec9a4db487179e539d +SIZE (listener-0.6.tgz) = 8402 diff --git a/audio/listener/files/patch-Makefile b/audio/listener/files/patch-Makefile new file mode 100644 index 000000000000..49b71d604223 --- /dev/null +++ b/audio/listener/files/patch-Makefile @@ -0,0 +1,34 @@ +--- /tmp/Makefile Wed Nov 24 15:33:50 2004 ++++ Makefile Wed Nov 24 16:11:51 2004 +@@ -1,8 +1,8 @@ + VERSION=0.6 + +-INSTALL_PREFIX=/usr/local ++INSTALL_PREFIX=${PREFIX} + +-CFLAGS=-O2 -Wall -DVERSION=\"$(VERSION)\" ++CFLAGS+=-L${LOCALBASE}/lib -I${LOCALBASE}/include -Wall -DVERSION=\"$(VERSION)\" + + OBJSsl=sl.o snd_dev.o error.o utils.o + OBJSli=listener.o snd_dev.o error.o utils.o +@@ -10,17 +10,17 @@ + all: setlistener listener + + setlistener: $(OBJSsl) +- $(CC) -g -Wall -W $(OBJSsl) -lncurses -o setlistener ++ $(CC) $(CFLAGS) -g -Wall -W $(OBJSsl) -lncurses -o setlistener + strip setlistener + + listener: $(OBJSli) +- $(CC) -g -Wall -W $(OBJSli) -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf ++ $(CC) $(CFLAGS) -g -Wall -W $(OBJSli) -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf + strip listener + + install: setlistener listener + cp setlistener $(INSTALL_PREFIX)/bin + cp listener $(INSTALL_PREFIX)/bin +- cp listener.conf $(INSTALL_PREFIX)/etc/ ++ cp listener.conf $(INSTALL_PREFIX)/etc/listener.conf.sample + + uninstall: clean + rm -f $(INSTALL_PREFIX)/bin/setlistener diff --git a/audio/listener/pkg-descr b/audio/listener/pkg-descr new file mode 100644 index 000000000000..2323ba8b269f --- /dev/null +++ b/audio/listener/pkg-descr @@ -0,0 +1,6 @@ +listener is a typical security-related program like the motion package +(which detects motion on a Webcam): it listens for sound. If it detects +any, it starts recording until the sound stops (or a bit later, which is +configurable). It stores the audio in .WAV files. + +WWW: http://www.vanheusden.com/listener/ diff --git a/audio/listener/pkg-plist b/audio/listener/pkg-plist new file mode 100644 index 000000000000..5984ea479e2d --- /dev/null +++ b/audio/listener/pkg-plist @@ -0,0 +1,5 @@ +bin/setlistener +bin/listener +etc/listener.conf.sample +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%@dirrm %%DOCSDIR%% |