Merge pull request #1974 from thess/icecast-update
icecast: Improve OOB experience - new defaults, add user & group ids
This commit is contained in:
commit
ba8206bb0d
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=icecast
|
PKG_NAME:=icecast
|
||||||
PKG_VERSION:=2.4.2
|
PKG_VERSION:=2.4.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_MAINTAINER:=André Gaul <andre@gaul.io>
|
PKG_MAINTAINER:=André Gaul <andre@gaul.io>
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ define Package/icecast
|
||||||
CATEGORY:=Multimedia
|
CATEGORY:=Multimedia
|
||||||
DEPENDS:=+libcurl +libxml2 +libxslt +libogg +libopenssl
|
DEPENDS:=+libcurl +libxml2 +libxslt +libogg +libopenssl
|
||||||
TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
|
TITLE:=A streaming media server for Ogg/Vorbis and MP3 audio streams
|
||||||
|
USERID:=icecast=87:icecast=87
|
||||||
URL:=http://www.icecast.org/
|
URL:=http://www.icecast.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,21 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Example script
|
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
# Startup script
|
||||||
|
# Copyright (C) 2015 OpenWrt.org
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
START=99
|
START=90
|
||||||
STOP=15
|
STOP=15
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
user_exists icecast 87 || user_add icecast 87
|
||||||
|
group_exists icecast 87 || group_add icecast 87
|
||||||
|
|
||||||
|
[ -d /var/log/icecast ] || {
|
||||||
|
mkdir -m 0755 -p /var/log/icecast
|
||||||
|
chown icecast:icecast /var/log/icecast
|
||||||
|
}
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
|
procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
--- a/conf/icecast.xml.in
|
||||||
|
+++ b/conf/icecast.xml.in
|
||||||
|
@@ -61,7 +61,7 @@
|
||||||
|
It affects mainly the urls generated by Icecast for playlists and yp
|
||||||
|
listings. You MUST configure it properly for YP listings to work!
|
||||||
|
-->
|
||||||
|
- <hostname>localhost</hostname>
|
||||||
|
+ <hostname>OpenWrt</hostname>
|
||||||
|
|
||||||
|
<!-- You may have multiple <listener> elements -->
|
||||||
|
<listen-socket>
|
||||||
|
@@ -234,11 +234,9 @@
|
||||||
|
|
||||||
|
<security>
|
||||||
|
<chroot>0</chroot>
|
||||||
|
- <!--
|
||||||
|
<changeowner>
|
||||||
|
- <user>nobody</user>
|
||||||
|
- <group>nogroup</group>
|
||||||
|
+ <user>icecast</user>
|
||||||
|
+ <group>icecast</group>
|
||||||
|
</changeowner>
|
||||||
|
- -->
|
||||||
|
</security>
|
||||||
|
</icecast>
|
Loading…
Reference in New Issue