summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-02-23 23:34:15 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2015-02-23 23:34:15 +0100
commit8745562208c3a2fb59ebb8e991094ee7bd2e0854 (patch)
treec0d531e5d824acfbde5e3ccfa8afc6ca94d3f43f
parentmedia-libs/vips: 7.38.0 → 7.42.3 (diff)
downloadeva-8745562208c3a2fb59ebb8e991094ee7bd2e0854.tar.gz
eva-8745562208c3a2fb59ebb8e991094ee7bd2e0854.tar.bz2
eva-8745562208c3a2fb59ebb8e991094ee7bd2e0854.zip
media-sound/dmapd: apply fedora specs
* Create a dedicated user. * Install systemd unit file. * Change keepdir to /var, dmapd does not know how to create dirs by itself for now, need to report that upstream.
-rw-r--r--media-sound/dmapd/dmapd-0.0.70.ebuild24
1 files changed, 19 insertions, 5 deletions
diff --git a/media-sound/dmapd/dmapd-0.0.70.ebuild b/media-sound/dmapd/dmapd-0.0.70.ebuild
index c0bd5f6..f1e4faf 100644
--- a/media-sound/dmapd/dmapd-0.0.70.ebuild
+++ b/media-sound/dmapd/dmapd-0.0.70.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit eutils
+inherit eutils systemd user
DESCRIPTION="Serve DAAP (iTunes) and DPAP (iPhoto) shares from Linux"
HOMEPAGE="http://www.flyn.org/projects/dmapd/"
@@ -13,7 +13,7 @@ SRC_URI="http://www.flyn.org/projects/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="test"
RDEPEND="
>=dev-libs/glib-2.36:2
@@ -35,14 +35,28 @@ DEPEND="${RDEPEND}
DOCS="AUTHORS ChangeLog NEWS README* TODO"
+pkg_setup() {
+ enewgroup dmapd
+ enewuser dmapd -1 -1 -1 dmapd
+}
+
src_configure() {
- econf --localstatedir=/var
+ econf \
+ --disable-static \
+ --localstatedir=/var \
+ $(use_enable test tests) \
+ $(systemd_with_unitdir)
}
src_install() {
default
prune_libtool_files
- keepdir /var/lock/dmapd
- keepdir /var/run/dmapd
+ insinto /etc
+ doins "${S}"/distro/dmapd.conf
+
+ keepdir /var/cache/dmapd/DAAP
+ keepdir /var/cache/dmapd/DPAP
+
+ fowners dmapd:root /var/cache/dmapd
}