PKG_NAME:=mjpg-streamer
PKG_REV:=148
PKG_VERSION:=r$(PKG_REV)
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
$(CP) $(foreach output_plugin,http file,$(PKG_BUILD_DIR)/output_$(output_plugin).so) $(1)/usr/lib
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
$(INSTALL_DATA) ./files/mjpg-streamer.hotplug $(1)/etc/hotplug.d/usb/20-mjpg-streamer
+ $(INSTALL_DIR) $(1)/www/webcam
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/* $(1)/www/webcam
endef
define Package/mjpg-streamer/conffiles
option device "/dev/video0"
option resolution "640x480"
option fps "5"
+ option www "/www/webcam"
option port "8080"
#!/bin/sh /etc/rc.common
-# Copyright (C) 2009-2011 OpenWrt.org
+# Copyright (C) 2009-2012 OpenWrt.org
START=50
config_get device "$s" 'device'
config_get resolution "$s" 'resolution'
config_get fps "$s" 'fps'
+ config_get www "$s" 'www'
config_get port "$s" 'port'
[ -c "$device" ] || {
service_start /usr/bin/mjpg_streamer --input "input_uvc.so \
--device $device --fps $fps --resolution $resolution" \
- --output "output_http.so --port $port"
+ --output "output_http.so --www $www --port $port"
}
stop_instance() {