mjpg-streamer: Add mdns support
authorTed Hess <thess@kitschensync.net>
Sun, 3 Dec 2017 17:49:49 +0000 (12:49 -0500)
committerTed Hess <thess@kitschensync.net>
Sun, 3 Dec 2017 17:51:56 +0000 (12:51 -0500)
Signed-off-by: Roger D <rogerdammit@gmail.com>
Signed-off-by: Ted Hess <thess@kitschensync.net>
multimedia/mjpg-streamer/Makefile
multimedia/mjpg-streamer/files/mjpg-streamer.init

index 6617e8967d3a43b8c2258958570f6703eb91f074..1c18e5d92312f0dd38f226b34dde8a7a660e6280 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=mjpg-streamer
 PKG_REV:=182
 PKG_VERSION:=r$(PKG_REV)
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>, \
                Ted Hess <thess@kitschensync.net>
 
index 06630d42331e103ae847ca47527305d06287b1e7..b7c7ec38f0c13afcee0fe6542cce9bfae8f4fed4 100644 (file)
@@ -84,6 +84,7 @@ start_instance() {
 
        procd_open_instance
        procd_set_param command "$PROG" --input "$input_arg" --output "$output_arg"
+       [ "x$output" = 'xhttp' ] && procd_add_mdns "http" "tcp" "$port" "daemon=mjpg-streamer"
        procd_close_instance
 }