Hi all,

this patch adds a new package: listener.

http://www.vanheusden.com/listener/

This program listens for sound. If it detects any, it starts recording
automatically and also automatically stops when things become silent
again.

Thanks,

-Raphaël
diff -pruN -x .svn sound.orig/listener/Makefile sound/listener/Makefile
--- sound.orig/listener/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ sound/listener/Makefile	2011-10-13 11:31:32.628743849 +0200
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2006-2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=listener
+PKG_VERSION:=1.7.2
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_SOURCE_URL:=http://www.vanheusden.com/listener/
+PKG_MD5SUM:=8ad9c24c45c7d28aed606304a2bf80bf
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/listener
+  SECTION:=sound
+  CATEGORY:=Sound
+  DEPENDS:=+libncurses +libsndfile
+  TITLE:=Listener automatically records when sound is detected
+  URL:=http://www.vanheusden.com/listener/
+endef
+
+define Package/listener/description
+  This program listens for sound. If it detects any, it starts recording
+  automatically and also automatically stops when things become silent
+  again.
+endef
+
+define Package/listener/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(CP) $(PKG_BUILD_DIR)/{listener,listenersoundpipe,setlistener} $(1)/usr/bin/
+	
+	$(INSTALL_DIR) $(1)/etc
+	$(CP) $(PKG_BUILD_DIR)/listener.conf $(1)/etc/
+endef
+
+$(eval $(call BuildPackage,listener))
diff -pruN -x .svn sound.orig/listener/patches/100-makefile.patch sound/listener/patches/100-makefile.patch
--- sound.orig/listener/patches/100-makefile.patch	1970-01-01 01:00:00.000000000 +0100
+++ sound/listener/patches/100-makefile.patch	2011-10-13 11:31:32.628743849 +0200
@@ -0,0 +1,28 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@ VERSION=1.7.2
+ 
+ INSTALL_PREFIX=/usr/local
+ 
+-CFLAGS+=-g -O2 -Wall -DVERSION=\"$(VERSION)\"
++CFLAGS+=-DVERSION=\"$(VERSION)\"
+ 
+ OBJSsl=sl.o snd_dev.o error.o utils.o
+ OBJSli=listener.o snd_dev.o error.o utils.o lib.o
+@@ -11,13 +11,13 @@ OBJSsp=snd_dev.o lsp.o error.o utils.o
+ all: setlistener listener listenersoundpipe
+ 
+ setlistener: $(OBJSsl)
+-	$(CC) -g -Wall -W $(OBJSsl) -ldl -lncurses -o setlistener
++	$(CC) $(CFLAGS) $(OBJSsl) $(LDFLAGS) -ldl -lncurses -o setlistener
+ 
+ listener: $(OBJSli)
+-	$(CC) -g -Wall -W $(OBJSli) -ldl -lm -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
++	$(CC) $(CFLAGS) $(OBJSli) $(LDFLAGS) -ldl -lm -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
+ 
+ listenersoundpipe: $(OBJSsp)
+-	$(CC) -g -Wall -W $(OBJSsp) -o listenersoundpipe
++	$(CC) $(CFLAGS) $(OBJSsp) -o listenersoundpipe
+ 
+ install: setlistener listener listenersoundpipe
+ 	cp setlistener $(INSTALL_PREFIX)/bin
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to