summaryrefslogtreecommitdiff
blob: f1e4fafc413d3183c6bef2faf42d2982514fa061 (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
57
58
59
60
61
62
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils systemd user

DESCRIPTION="Serve DAAP (iTunes) and DPAP (iPhoto) shares from Linux"
HOMEPAGE="http://www.flyn.org/projects/dmapd/"
SRC_URI="http://www.flyn.org/projects/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RDEPEND="
	>=dev-libs/glib-2.36:2
	media-libs/libexif
	>=net-libs/libdmapsharing-2.9.21:3.0
	|| (
		media-gfx/graphicsmagick
		media-gfx/imagemagick )
	>=media-libs/vips-7.38
	media-libs/gstreamer:1.0
	|| (
		sys-libs/db:4.8
		sys-libs/db:4.7 )
"
DEPEND="${RDEPEND}
	>=dev-libs/check-0.9.4
	virtual/pkgconfig
"

DOCS="AUTHORS ChangeLog NEWS README* TODO"

pkg_setup() {
	enewgroup dmapd
	enewuser dmapd -1 -1 -1 dmapd
}

src_configure() {
	econf \
		--disable-static \
		--localstatedir=/var \
		$(use_enable test tests) \
		$(systemd_with_unitdir)
}

src_install() {
	default
	prune_libtool_files

	insinto /etc
	doins "${S}"/distro/dmapd.conf

	keepdir /var/cache/dmapd/DAAP
	keepdir /var/cache/dmapd/DPAP

	fowners dmapd:root /var/cache/dmapd
}