Changeset 33059


Ignore:
Timestamp:
2012-08-08T17:38:41+02:00 (5 years ago)
Author:
florian
Message:

[package] mjpg-streamer: install web pages (#6499)

Location:
packages/multimedia/mjpg-streamer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/multimedia/mjpg-streamer/Makefile

    r29199 r33059  
    1111PKG_REV:=148 
    1212PKG_VERSION:=r$(PKG_REV) 
    13 PKG_RELEASE:=3 
     13PKG_RELEASE:=4 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    4747        $(INSTALL_DIR) $(1)/etc/hotplug.d/usb 
    4848        $(INSTALL_DATA) ./files/mjpg-streamer.hotplug $(1)/etc/hotplug.d/usb/20-mjpg-streamer 
     49        $(INSTALL_DIR) $(1)/www/webcam 
     50        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/* $(1)/www/webcam 
    4951endef 
    5052 
  • packages/multimedia/mjpg-streamer/files/mjpg-streamer.config

    r29175 r33059  
    44        option resolution       "640x480" 
    55        option fps              "5" 
     6        option www              "/www/webcam" 
    67        option port             "8080" 
  • packages/multimedia/mjpg-streamer/files/mjpg-streamer.init

    r29175 r33059  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2009-2011 OpenWrt.org 
     2# Copyright (C) 2009-2012 OpenWrt.org 
    33 
    44START=50 
     
    2626        config_get resolution "$s" 'resolution' 
    2727        config_get fps "$s" 'fps' 
     28        config_get www "$s" 'www' 
    2829        config_get port "$s" 'port' 
    2930 
     
    3536        service_start /usr/bin/mjpg_streamer --input "input_uvc.so \ 
    3637                --device $device --fps $fps --resolution $resolution" \ 
    37                 --output "output_http.so --port $port" 
     38                --output "output_http.so --www $www --port $port" 
    3839} 
    3940 
Note: See TracChangeset for help on using the changeset viewer.