From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CD23A138A87 for ; Mon, 23 Feb 2015 22:35:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7975E08A0; Mon, 23 Feb 2015 22:35:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA791E08BE for ; Mon, 23 Feb 2015 22:35:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 992B2340957 for ; Mon, 23 Feb 2015 22:35:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A0091268C for ; Mon, 23 Feb 2015 22:35:49 +0000 (UTC) From: "Gilles Dartiguelongue" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gilles Dartiguelongue" Message-ID: <1424730855.8745562208c3a2fb59ebb8e991094ee7bd2e0854.eva@gentoo> Subject: [gentoo-commits] dev/eva:master commit in: media-sound/dmapd/ X-VCS-Repository: dev/eva X-VCS-Files: media-sound/dmapd/dmapd-0.0.70.ebuild X-VCS-Directories: media-sound/dmapd/ X-VCS-Committer: eva X-VCS-Committer-Name: Gilles Dartiguelongue X-VCS-Revision: 8745562208c3a2fb59ebb8e991094ee7bd2e0854 X-VCS-Branch: master Date: Mon, 23 Feb 2015 22:35:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3043bd3f-4eae-47ac-ab79-9170ba55df87 X-Archives-Hash: 12352145b65bbd8f2694b5c4068b2d8e commit: 8745562208c3a2fb59ebb8e991094ee7bd2e0854 Author: Gilles Dartiguelongue gentoo org> AuthorDate: Mon Feb 23 22:34:15 2015 +0000 Commit: Gilles Dartiguelongue gentoo org> CommitDate: Mon Feb 23 22:34:15 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=dev/eva.git;a=commit;h=87455622 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. --- media-sound/dmapd/dmapd-0.0.70.ebuild | 24 +++++++++++++++++++----- 1 file 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 }