aboutsummaryrefslogtreecommitdiffstats
path: root/main/icecast/APKBUILD
blob: 5fa0f17a0099c3c32cfce440872681f83cb76a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:  Francesco Colista <fcolista@alpinelinux.org>
#
# secfixes:
#   2.4.4-r0:
#     - CVE-2018-18820

pkgname=icecast
pkgver=2.4.4
pkgrel=1
pkgdesc="Open source media server"
url="http://www.icecast.org"
arch="all"
license="GPL"
install="$pkgname.pre-install"
pkgusers="icecast"
pkggroups="icecast"
makedepends="libxslt-dev libxml2-dev libogg-dev libvorbis-dev libtheora-dev openssl-dev curl-dev"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
	conf-change-owner.patch
	icecast.initd
	icecast.confd"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-curl
	make
}

check() {
	cd $builddir
	make check
}

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -D -m755 ../icecast.initd "$pkgdir"/etc/init.d/icecast
	install -D -m755 ../icecast.confd "$pkgdir"/etc/conf.d/icecast
	install -d -D -o icecast -g icecast "$pkgdir"/var/log/icecast
}

sha512sums="e9ffb478cac2570891787455591d881a59185e067bb36f51706a7070cd9d82d80425ec8cf151f5ebb17d1b75654449fc760f8b82a1bb05f020b47ec09e46b4d0  icecast-2.4.4.tar.gz
3de3ed881a60f99d3e4cf656a46cdb157e95abcfa9bd44ebc7e13840a9b0ee84ec9e5b30878d67e42385dac5fa974694c215ad162b910c47b6b7864d474bf636  conf-change-owner.patch
c78f7e6aa9ff04f7400944e95485994a23493e79d47e0b9799b9235fa5f3ed9d64840be1380a262c30594f9fa2dac96d904226608bfc133d51b3a62ed90d990d  icecast.initd
7e4299b34207bd4323bc89f2d98abebcb62cbeee3b0931d6d18e1c2c736a17e823b07dfb38364f22a375585843a917031beb1b9efe2fff71de036146371536f3  icecast.confd"