automatic version update by autodist [release 2.4.4-1mamba;Tue Sep 29 2020]
This commit is contained in:
parent
07eccf9a6b
commit
624bdb707e
43
icecast.service
Normal file
43
icecast.service
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Icecast Network Audio Streaming Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
CapabilityBoundingSet=~CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_KILL CAP_SYS_BOOT CAP_LINUX_IMMUTABLE CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_FOWNER CAP_IPC_OWNER CAP_NET_ADMIN CAP_IPC_LOCK CAP_SYS_CHROOT CAP_BLOCK_SUSPEND CAP_LEASE CAP_SYS_PACCT CAP_SYS_TTY_CONFIG CAP_WAKE_ALARM CAP_SYS_NICE CAP_SYS_RESOURCE CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW
|
||||||
|
ExecStart=/usr/bin/icecast -c /etc/icecast.xml
|
||||||
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||||
|
Group=icecast
|
||||||
|
IPAccounting=yes
|
||||||
|
LogsDirectory=icecast
|
||||||
|
LockPersonality=true
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
NoNewPrivileges=true
|
||||||
|
PrivateDevices=true
|
||||||
|
PrivateTmp=true
|
||||||
|
PrivateUsers=true
|
||||||
|
ProtectClock=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectHostname=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadOnlyPaths=/etc/icecast.xml
|
||||||
|
RemoveIPC=true
|
||||||
|
RestrictAddressFamilies=~AF_AX25 AF_IPX AF_APPLETALK AF_X25 AF_DECnet AF_KEY AF_NETLINK AF_PACKET AF_RDS AF_PPPOX AF_LLC AF_IB AF_MPLS AF_CAN AF_TIPC AF_BLUETOOTH AF_ALG AF_VSOCK AF_KCM AF_XDP AF_UNIX
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6
|
||||||
|
RestrictNamespaces=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
RestrictSUIDSGID=true
|
||||||
|
RuntimeDirectory=icecast
|
||||||
|
StateDirectory=icecast
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
SystemCallFilter=~@resources @privileged
|
||||||
|
Type=exec
|
||||||
|
UMask=177
|
||||||
|
User=icecast
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
89
icecast.spec
89
icecast.spec
@ -1,5 +1,5 @@
|
|||||||
Name: icecast
|
Name: icecast
|
||||||
Version: 2.4.3
|
Version: 2.4.4
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: Xiph Streaming media server that supports multiple audio formats.
|
Summary: Xiph Streaming media server that supports multiple audio formats.
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
@ -10,6 +10,9 @@ URL: http://www.icecast.org/
|
|||||||
Source0: http://downloads.xiph.org/releases/icecast/icecast-%{version}.tar.gz
|
Source0: http://downloads.xiph.org/releases/icecast/icecast-%{version}.tar.gz
|
||||||
Source1: %{name}.init.tar.bz2
|
Source1: %{name}.init.tar.bz2
|
||||||
Source2: %{name}.logrotate
|
Source2: %{name}.logrotate
|
||||||
|
Source3: icecast.service
|
||||||
|
Source4: icecast.sysusers
|
||||||
|
Source5: icecast.tmpfiles
|
||||||
Patch0: %{name}.conf.patch
|
Patch0: %{name}.conf.patch
|
||||||
Patch1: %{name}-curl.patch
|
Patch1: %{name}-curl.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -39,74 +42,82 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|||||||
%description
|
%description
|
||||||
Icecast is an Internet based broadcasting system based on the Mpeg Layer III streaming technology. It was originally inspired by Nullsoft's Shoutcast and also mp3serv by Scott Manley. The icecast project was started for several reasons: a) all broadcasting systems were pretty much closed source, non-free software implementations, b) Shoutcast doesn't allow you to run your own directory servers, or support them, and c) we thought it would be a lot of fun.
|
Icecast is an Internet based broadcasting system based on the Mpeg Layer III streaming technology. It was originally inspired by Nullsoft's Shoutcast and also mp3serv by Scott Manley. The icecast project was started for several reasons: a) all broadcasting systems were pretty much closed source, non-free software implementations, b) Shoutcast doesn't allow you to run your own directory servers, or support them, and c) we thought it would be a lot of fun.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
#%patch0
|
||||||
#%patch1 -p1
|
#%patch1 -p1
|
||||||
tar jxvf %{S:1} > %{name}
|
#tar jxvf %{S:1} > %{name}
|
||||||
|
|
||||||
|
#./autogen.sh -fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh || :
|
%configure \
|
||||||
%configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}/icecast2
|
--prefix=%{_prefix} \
|
||||||
|
--sysconfdir=%{_sysconfdir}/icecast2
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
||||||
install -d -m 755 %{buildroot}%{_var}/log/%{name}
|
install -d -m 755 %{buildroot}%{_var}/log/%{name}
|
||||||
install -d -m 755 %{buildroot}%{_initrddir}
|
|
||||||
install -m 755 %{name} %{buildroot}%{_initrddir}
|
|
||||||
#
|
|
||||||
|
|
||||||
# logrotate
|
# logrotate
|
||||||
install -d %{buildroot}%{_sysconfdir}/logrotate.d/
|
install -d %{buildroot}%{_sysconfdir}/logrotate.d/
|
||||||
install -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
|
|
||||||
# to hold pid file ( need to be writable by icecast )
|
# systemd
|
||||||
mkdir -p %{buildroot}%{_var}/run/%{name}/
|
install -D -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/icecast.service
|
||||||
|
install -D -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/icecast.conf
|
||||||
|
install -D -m0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/icecast.conf
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%sysusers_create_package icecast %{SOURCE4}
|
||||||
|
%systemd_pre icecast
|
||||||
|
:
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post icecast
|
||||||
|
:
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun icecast
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart icecast
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_sysconfdir}/icecast2
|
%config(noreplace) %{_sysconfdir}/icecast2/icecast.xml
|
||||||
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||||
%{_bindir}/icecast
|
%{_bindir}/icecast
|
||||||
|
%{_unitdir}/icecast.service
|
||||||
|
%{_sysusersdir}/icecast.conf
|
||||||
|
%{_tmpfilesdir}/icecast.conf
|
||||||
%dir %{_datadir}/icecast
|
%dir %{_datadir}/icecast
|
||||||
%dir %{_datadir}/icecast/admin
|
%dir %{_datadir}/icecast/admin
|
||||||
%{_datadir}/icecast/admin/listclients.xsl
|
%{_datadir}/icecast/admin/*.xsl
|
||||||
%{_datadir}/icecast/admin/listmounts.xsl
|
|
||||||
%{_datadir}/icecast/admin/manageauth.xsl
|
|
||||||
%{_datadir}/icecast/admin/moveclients.xsl
|
|
||||||
%{_datadir}/icecast/admin/response.xsl
|
|
||||||
%{_datadir}/icecast/admin/stats.xsl
|
|
||||||
%{_datadir}/icecast/admin/updatemetadata.xsl
|
|
||||||
%{_datadir}/icecast/admin/vclt.xsl
|
|
||||||
%{_datadir}/icecast/admin/xspf.xsl
|
|
||||||
%dir %{_datadir}/icecast/web
|
%dir %{_datadir}/icecast/web
|
||||||
%{_datadir}/icecast/web/auth.xsl
|
%{_datadir}/icecast/web/*
|
||||||
#%{_datadir}/icecast/web/*.jpg
|
|
||||||
#%{_datadir}/icecast/web/*.gif
|
|
||||||
%{_datadir}/icecast/web/server_version.xsl
|
|
||||||
%{_datadir}/icecast/web/status.xsl
|
|
||||||
%{_datadir}/icecast/web/status-json.xsl
|
|
||||||
%{_datadir}/icecast/web/xml2json.xslt
|
|
||||||
%{_datadir}/icecast/web/*.css
|
|
||||||
%{_datadir}/icecast/web/*.png
|
|
||||||
%dir %{_datadir}/icecast/doc
|
%dir %{_datadir}/icecast/doc
|
||||||
%{_datadir}/icecast/doc/icecast.xml.dist
|
%{_datadir}/icecast/doc/*
|
||||||
%{_datadir}/icecast/doc/icecast_minimal.xml.dist
|
|
||||||
%{_datadir}/icecast/doc/icecast_shoutcast_compat.xml.dist
|
|
||||||
%{_datadir}/icecast/doc/icecast_urlauth.xml.dist
|
|
||||||
%attr(-,icecast,icecast) %{_var}/log/%{name}
|
%attr(-,icecast,icecast) %{_var}/log/%{name}
|
||||||
%attr(-,icecast,icecast) %dir %{_var}/run/%{name}/
|
%doc AUTHORS COPYING
|
||||||
%config(noreplace) %{_sysconfdir}/icecast2/icecast.xml
|
#ChangeLog NEWS README TODO
|
||||||
%config(noreplace) %{_initrddir}/%{name}
|
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 29 2020 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
|
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 2.4.3-1mamba
|
||||||
- automatic update by autodist
|
- automatic update by autodist
|
||||||
|
|
||||||
|
1
icecast.sysusers
Normal file
1
icecast.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
u icecast - "Media streaming server" -
|
1
icecast.tmpfiles
Normal file
1
icecast.tmpfiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
z /etc/icecast.xml 0640 root icecast -
|
Loading…
Reference in New Issue
Block a user