From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QFRnh-0001vH-En for garchives@archives.gentoo.org; Thu, 28 Apr 2011 14:02:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 420781C065; Thu, 28 Apr 2011 14:02:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 14B911C064 for ; Thu, 28 Apr 2011 14:02:28 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C2161B4031 for ; Thu, 28 Apr 2011 14:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E031980505 for ; Thu, 28 Apr 2011 14:02:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <23d068c81ea7e71d480a60d202d5e750c366927e.mgorny@gentoo> Subject: [gentoo-commits] dev/mgorny:master commit in: eclass/ X-VCS-Repository: dev/mgorny X-VCS-Files: eclass/systemd.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 23d068c81ea7e71d480a60d202d5e750c366927e Date: Thu, 28 Apr 2011 14:02:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: b7d4ca48a01a80861e3f6b9c9d873f75 commit: 23d068c81ea7e71d480a60d202d5e750c366927e Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Thu Apr 28 14:02:18 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Thu Apr 28 14:02:18 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/mgorny.git;a=3D= commit;h=3D23d068c8 [systemd.eclass] Add a function to output --with-... --- eclass/systemd.eclass | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index d5d90ee..e227829 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ =20 @@ -53,3 +53,13 @@ systemd_enable_service() { dodir "${ud}"/"${target}".wants && \ dosym ../"${service}" "${ud}"/"${target}".wants } + +# @FUNCTION: systemd_with_unitdir +# @DESCRIPTION: +# Output '--with-systemdsystemunitdir' as expected by systemd-aware conf= igure +# scripts. +systemd_dounit() { + debug-print-function ${FUNCNAME} "${@}" + + echo -n --with-systemdsystemunitdir=3D"$(systemd_get_unitdir)" +}