Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/icecast/
Date: Fri, 02 Nov 2018 16:32:03
Message-Id: 1541176313.8b77b282e69731f752e828ba05f3ad7108902b4f.polynomial-c@gentoo
1 commit: 8b77b282e69731f752e828ba05f3ad7108902b4f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 2 16:31:38 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 2 16:31:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b77b282
7
8 net-misc/icecast: Security bump to version 2.4.4
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-misc/icecast/Manifest | 1 +
14 net-misc/icecast/icecast-2.4.4.ebuild | 95 +++++++++++++++++++++++++++++++++++
15 2 files changed, 96 insertions(+)
16
17 diff --git a/net-misc/icecast/Manifest b/net-misc/icecast/Manifest
18 index ece5918a7fb..2bce981f62f 100644
19 --- a/net-misc/icecast/Manifest
20 +++ b/net-misc/icecast/Manifest
21 @@ -1 +1,2 @@
22 DIST icecast-2.4.3.tar.gz 2393358 BLAKE2B a2b34eeb7c94974e13250620f9a19ed0165ec0cc676c5947edf8f88cea76240ab5eb90807d598c29944573c3717b8b7951261434521bc81100c3a6ba22d85840 SHA512 70e755ee935e738f2b7310333823992517747897692d101b67d73d5cd40d6385a20c25d089a0430806c116021e6e2055761efee9fec27cd9bccb2b58a2bfd446
23 +DIST icecast-2.4.4.tar.gz 2360592 BLAKE2B fd4034749feb4bf38c684ac6d8de572fdebce875843dc1be286264c8fe8d38feb24ea889b07ec79aada34cf16dae46eb21a8c5470f67c08f2dd56dc04c12130f SHA512 e9ffb478cac2570891787455591d881a59185e067bb36f51706a7070cd9d82d80425ec8cf151f5ebb17d1b75654449fc760f8b82a1bb05f020b47ec09e46b4d0
24
25 diff --git a/net-misc/icecast/icecast-2.4.4.ebuild b/net-misc/icecast/icecast-2.4.4.ebuild
26 new file mode 100644
27 index 00000000000..6c599a6c0cf
28 --- /dev/null
29 +++ b/net-misc/icecast/icecast-2.4.4.ebuild
30 @@ -0,0 +1,95 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit autotools systemd user
36 +
37 +DESCRIPTION="Opensource alternative to shoutcast that supports mp3, ogg and aac streaming"
38 +HOMEPAGE="http://www.icecast.org/"
39 +SRC_URI="http://downloads.xiph.org/releases/icecast/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
44 +IUSE="kate libressl logrotate +speex +ssl +theora +yp"
45 +
46 +#Although there is a --with-ogg and --with-orbis configure option, they're
47 +#only useful for specifying paths, not for disabling.
48 +DEPEND="
49 + dev-libs/libxml2
50 + dev-libs/libxslt
51 + media-libs/libogg
52 + media-libs/libvorbis
53 + kate? ( media-libs/libkate )
54 + logrotate? ( app-admin/logrotate )
55 + speex? ( media-libs/speex )
56 + ssl? (
57 + !libressl? ( dev-libs/openssl:0= )
58 + libressl? ( dev-libs/libressl:0= )
59 + )
60 + theora? ( media-libs/libtheora )
61 + yp? ( net-misc/curl )
62 +"
63 +RDEPEND="${DEPEND}"
64 +
65 +PATCHES=(
66 + # bug #368539
67 + "${FILESDIR}"/${PN}-2.3.3-libkate.patch
68 + # bug #430434
69 + "${FILESDIR}"/${PN}-2.3.3-fix-xiph_openssl.patch
70 +)
71 +
72 +pkg_setup() {
73 + enewuser icecast -1 -1 -1 nogroup
74 +}
75 +
76 +src_prepare() {
77 + default
78 + mv configure.{in,ac} || die
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + local myeconfargs=(
84 + --disable-dependency-tracking
85 + --docdir=/usr/share/doc/${PF}
86 + --sysconfdir=/etc/icecast2
87 + $(use_enable kate)
88 + $(use_enable yp)
89 + $(use_with speex)
90 + $(use_with ssl openssl)
91 + $(use_with theora)
92 + $(use_with yp curl)
93 + )
94 + econf "${myeconfsrgs[@]}"
95 +}
96 +
97 +src_install() {
98 + emake DESTDIR="${D}" install
99 + dodoc AUTHORS README TODO HACKING NEWS conf/icecast.xml.dist
100 + docinto html
101 + dodoc doc/*.html
102 +
103 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
104 + systemd_dounit "${FILESDIR}"/${PN}.service
105 +
106 + insinto /etc/icecast2
107 + doins "${FILESDIR}"/icecast.xml
108 + fperms 600 /etc/icecast2/icecast.xml
109 +
110 + if use logrotate; then
111 + dodir /etc/logrotate.d
112 + insopts -m0644
113 + insinto /etc/logrotate.d
114 + newins "${FILESDIR}"/${PN}.logrotate ${PN}
115 + fi
116 + diropts -m0764 -o icecast -g nogroup
117 + dodir /var/log/icecast
118 + keepdir /var/log/icecast
119 + rm -r "${ED}"/usr/share/doc/icecast || die
120 +}
121 +
122 +pkg_postinst() {
123 + touch "${ROOT}"/var/log/icecast/{access,error}.log
124 + chown icecast:nogroup "${ROOT}"/var/log/icecast/{access,error}.log
125 +}