This adds the "beep" program by Johnathan Nightingale, which plays beeps of chosen frequency and length through the PC speaker. It's quite useful to give feedback from within scripts.

Signed-off by: Thomas Albers <[email protected]>
Index: beep/Makefile
===================================================================
--- beep/Makefile	(revision 0)
+++ beep/Makefile	(revision 0)
@@ -0,0 +1,45 @@
+# 
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# This Makefile is a skeleton
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=beep
+PKG_VERSION:=1.2.2
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://johnath.com/beep/
+PKG_MD5SUM:=d541419fd7e5642952d7b48cbb40c712
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/beep
+  SECTION:=sound
+  CATEGORY:=Sound
+  TITLE:=beep
+  URL:=http://johnath.com/beep/README
+  DEPENDS:=+kmod-pcspkr
+endef
+
+define Package/beep/description
+	This program plays beeps through the PC speaker
+endef
+
+CONFIGURE_ARGS += \
+	--enable-static \
+	--enable-shared
+
+MAKE_FLAGS += \
+	CFLAGS="$(TARGET_CFLAGS)"
+
+define Package/beep/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/beep $(1)/usr/bin
+endef
+
+$(eval $(call BuildPackage,beep))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to