Files
packages/multimedia/go2rtc/Makefile
Vladimir Ermakov a7fa5af5c2 go2rtc: jail service, add uci config
- Add UCI configuration to be able to switch user/group and set ulimit.
- Place daemon into jail by default, to allow bind on lower ports, such as 554 (RTSP)
- Add option to allow or deny config.yaml editing from the web interface.
- Connect stdout/err to log

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-11-12 01:04:19 +02:00

57 lines
1.5 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=go2rtc
PKG_VERSION:=1.9.9
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/AlexxIT/go2rtc/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=0afb5a9f0cdbd696193288197cfb5ebf44d085f631e7326cc0465026fe3b9196
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Vladimir Ermakov <vooon341@gmail.com>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
GO_PKG:=github.com/AlexxIT/go2rtc
GO_PKG_EXCLUDES:=examples/
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
define Package/go2rtc
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=go2rtc camera streaming
URL:=https://github.com/AlexxIT/go2rtc
DEPENDS:=$(GO_ARCH_DEPENDS) +ffmpeg
USERID:=go2rtc:go2rtc
endef
define Package/go2rtc/description
Ultimate camera streaming application with support RTSP, WebRTC, HomeKit, FFmpeg, RTMP, etc.
endef
define Package/go2rtc/conffiles
/etc/go2rtc.yaml
/etc/config/go2rtc
endef
define Package/go2rtc/install
$(call GoPackage/Package/Install/Bin,$(1))
$(INSTALL_DIR) $(1)/etc/
$(INSTALL_CONF) $(CURDIR)/files/go2rtc.yaml $(1)/etc/go2rtc.yaml
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) $(CURDIR)/files/go2rtc.init $(1)/etc/init.d/go2rtc
$(INSTALL_DIR) $(1)/etc/capabilities/
$(INSTALL_DATA) $(CURDIR)/files/go2rtc.json $(1)/etc/capabilities/go2rtc.json
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) $(CURDIR)/files/go2rtc.conf $(1)/etc/config/go2rtc
endef
$(eval $(call BuildPackage,go2rtc))