mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
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>
This commit is contained in:
parent
f74aa8b9bb
commit
9c4293b3d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122677
@ -196,6 +196,7 @@
|
||||
SUBDIR += linux-libaudiofile
|
||||
SUBDIR += linux-mbrola
|
||||
SUBDIR += linux-vsound
|
||||
SUBDIR += listener
|
||||
SUBDIR += liteamp
|
||||
SUBDIR += lopster
|
||||
SUBDIR += lplayer
|
||||
|
28
audio/listener/Makefile
Normal file
28
audio/listener/Makefile
Normal file
@ -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>
|
2
audio/listener/distinfo
Normal file
2
audio/listener/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (listener-0.6.tgz) = 6c71df6f7b32eeec9a4db487179e539d
|
||||
SIZE (listener-0.6.tgz) = 8402
|
34
audio/listener/files/patch-Makefile
Normal file
34
audio/listener/files/patch-Makefile
Normal file
@ -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
|
6
audio/listener/pkg-descr
Normal file
6
audio/listener/pkg-descr
Normal file
@ -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/
|
5
audio/listener/pkg-plist
Normal file
5
audio/listener/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
bin/setlistener
|
||||
bin/listener
|
||||
etc/listener.conf.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user