[package] remove uvc-streamer, mjpg-streamer does a better job
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17003 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
498de55400
commit
1446685014
@ -1,49 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2007 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:=uvc-streamer
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=uvc_streamer_2007_07_21_14.07.06.tgz
|
||||
PKG_SOURCE_URL:=http://naaa.de/programme/uvc_streamer/
|
||||
PKG_MD5SUM:=491473a25882c3e7250aeeb68e0ca689
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/uvc-streamer
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Linux-UVC streaming applicaton
|
||||
DEPENDS:=@LINUX_2_6 +libpthread
|
||||
URL:=http://www.naaa.de/uvc_streamer
|
||||
endef
|
||||
|
||||
define Package/uvc-streamer/description
|
||||
This package contains a streaming daemon for Linux-UVC based webcams
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += \
|
||||
-C $(PKG_BUILD_DIR) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
all
|
||||
|
||||
define Package/uvc-streamer/install
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uvc_stream $(1)/sbin/uvc_streamer
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,uvc-streamer))
|
@ -1,6 +0,0 @@
|
||||
config uvc-streamer
|
||||
option device '/dev/video0'
|
||||
option resolution '640x480'
|
||||
option framespersecond '5'
|
||||
option port '8080'
|
||||
option enabled '1'
|
@ -1,51 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
START=50
|
||||
|
||||
SSD=start-stop-daemon
|
||||
NAME=uvc_streamer
|
||||
PIDF=/var/run/$NAME.pid
|
||||
PROG=/sbin/$NAME
|
||||
|
||||
append_bool() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local value="$3"
|
||||
local _val
|
||||
config_get_bool _val "$section" "$option" '0'
|
||||
[ "$_val" -gt 0 ] && append args "$3"
|
||||
}
|
||||
|
||||
append_string() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local value="$3"
|
||||
local _val
|
||||
config_get _val "$section" "$option"
|
||||
[ -n "$_val" ] && append args "$3 $_val"
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local section="$1"
|
||||
args=""
|
||||
append_string "$section" device "-d"
|
||||
append_string "$section" resolution "-r"
|
||||
append_bool "$section" framespersecond "-f"
|
||||
append_string "$section" port "-p"
|
||||
config_get_bool "enabled" "$section" "enabled" '1'
|
||||
[ "$enabled" -gt 0 ] && sleep 5s && $SSD -S -p $PIDF -q -x $PROG -- -b $args &
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
$SSD -K -p $PIDF
|
||||
}
|
||||
|
||||
start() {
|
||||
config_load "uvc-streamer"
|
||||
config_foreach start_service "uvc-streamer"
|
||||
}
|
||||
|
||||
stop() {
|
||||
config_load "uvc-streamer"
|
||||
config_foreach stop_service "uvc-streamer"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user