ports/74348: New port: audio/listener - an ambient sound monitor/recorder

David Thiel lx at redundancy.redundancy.org
Thu Nov 25 00:30:31 UTC 2004


>Number:         74348
>Category:       ports
>Synopsis:       New port: audio/listener - an ambient sound monitor/recorder
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 25 00:30:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Thiel
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD redundancy.redundancy.org 4.9-STABLE FreeBSD 4.9-STABLE #15: Wed Nov 19 21:41:32 PST 2003 lx at redundancy.redundancy.org:/usr/obj/usr/src/sys/REDUNDANCY i386


>Description:

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.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	listener
#	listener/Makefile
#	listener/distinfo
#	listener/pkg-plist
#	listener/files
#	listener/files/patch-Makefile
#	listener/pkg-descr
#
echo c - listener
mkdir -p listener > /dev/null 2>&1
echo x - listener/Makefile
sed 's/^X//' >listener/Makefile << 'END-of-listener/Makefile'
X# New ports collection makefile for:	listener
X# Date created:			2004-11-24
X# Whom:				lx
X#
X# $FreeBSD$
X#
X
XPORTNAME=	listener
XPORTVERSION=	0.6
XCATEGORIES=	audio
XMASTER_SITES=	http://www.vanheusden.com/listener/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	lx at redundancy.redundancy.org
XCOMMENT=	A program to listen for and record sound activity
X
XLIB_DEPENDS=	sndfile.1:${PORTSDIR}/audio/libsndfile
X
XDOCS=		INSTALL
X
Xpost-install:
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-listener/Makefile
echo x - listener/distinfo
sed 's/^X//' >listener/distinfo << 'END-of-listener/distinfo'
XMD5 (listener-0.6.tgz) = 6c71df6f7b32eeec9a4db487179e539d
XSIZE (listener-0.6.tgz) = 8402
END-of-listener/distinfo
echo x - listener/pkg-plist
sed 's/^X//' >listener/pkg-plist << 'END-of-listener/pkg-plist'
Xbin/setlistener
Xbin/listener
Xetc/listener.conf.sample
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-listener/pkg-plist
echo c - listener/files
mkdir -p listener/files > /dev/null 2>&1
echo x - listener/files/patch-Makefile
sed 's/^X//' >listener/files/patch-Makefile << 'END-of-listener/files/patch-Makefile'
X--- /tmp/Makefile	Wed Nov 24 15:33:50 2004
X+++ Makefile	Wed Nov 24 16:11:51 2004
X@@ -1,8 +1,8 @@
X VERSION=0.6
X 
X-INSTALL_PREFIX=/usr/local
X+INSTALL_PREFIX=${PREFIX}
X 
X-CFLAGS=-O2 -Wall -DVERSION=\"$(VERSION)\"
X+CFLAGS+=-L${LOCALBASE}/lib -I${LOCALBASE}/include -Wall -DVERSION=\"$(VERSION)\"
X 
X OBJSsl=sl.o snd_dev.o error.o utils.o
X OBJSli=listener.o snd_dev.o error.o utils.o
X@@ -10,17 +10,17 @@
X all: setlistener listener
X 
X setlistener: $(OBJSsl)
X-	$(CC) -g -Wall -W $(OBJSsl) -lncurses -o setlistener
X+	$(CC) $(CFLAGS) -g -Wall -W $(OBJSsl) -lncurses -o setlistener
X 	strip setlistener
X 
X listener: $(OBJSli)
X-	$(CC) -g -Wall -W $(OBJSli) -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
X+	$(CC) $(CFLAGS) -g -Wall -W $(OBJSli) -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
X 	strip listener
X 
X install: setlistener listener
X 	cp setlistener $(INSTALL_PREFIX)/bin
X 	cp listener $(INSTALL_PREFIX)/bin
X-	cp listener.conf $(INSTALL_PREFIX)/etc/
X+	cp listener.conf $(INSTALL_PREFIX)/etc/listener.conf.sample
X 
X uninstall: clean
X 	rm -f $(INSTALL_PREFIX)/bin/setlistener
END-of-listener/files/patch-Makefile
echo x - listener/pkg-descr
sed 's/^X//' >listener/pkg-descr << 'END-of-listener/pkg-descr'
Xlistener is a typical security-related program like the motion package
X(which detects motion on a Webcam): it listens for sound. If it detects
Xany, it starts recording until the sound stops (or a bit later, which is
Xconfigurable). It stores the audio in .WAV files.
X
XWWW: http://www.vanheusden.com/listener/
END-of-listener/pkg-descr
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list