From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 69E951396D0 for ; Sat, 16 Sep 2017 14:47:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2358E0C01; Sat, 16 Sep 2017 14:47:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D7FBE0C01 for ; Sat, 16 Sep 2017 14:47:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 70672341301 for ; Sat, 16 Sep 2017 14:47:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CA809083 for ; Sat, 16 Sep 2017 14:47:53 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1505573260.1147ec489953f3b9212328c8cc9e0fa31f594596.dolsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/buildbot/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/buildbot/buildbot-0.9.10.ebuild X-VCS-Directories: dev-util/buildbot/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1147ec489953f3b9212328c8cc9e0fa31f594596 X-VCS-Branch: master Date: Sat, 16 Sep 2017 14:47:53 +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: a06e4e92-7f9f-4662-bab7-82bfebf04372 X-Archives-Hash: c6304254779f138d79951a0e82d29dd6 commit: 1147ec489953f3b9212328c8cc9e0fa31f594596 Author: Brian Dolbec gentoo org> AuthorDate: Sat Sep 16 14:38:05 2017 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sat Sep 16 14:47:40 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1147ec48 dev-util/buildbot: Improve pkg_config operation Package-Manager: Portage-2.3.6, Repoman-2.3.1 dev-util/buildbot/buildbot-0.9.10.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-util/buildbot/buildbot-0.9.10.ebuild b/dev-util/buildbot/buildbot-0.9.10.ebuild index f6bd9b88bae..65f5d4a7138 100644 --- a/dev-util/buildbot/buildbot-0.9.10.ebuild +++ b/dev-util/buildbot/buildbot-0.9.10.ebuild @@ -171,6 +171,8 @@ pkg_postinst() { pkg_config() { local buildmaster_path="/var/lib/buildmaster" + local log_path="/var/log/buildbot_worker" + einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." einfo "Press Control-C to abort." @@ -179,6 +181,8 @@ pkg_config() { [[ -z "${instance_name}" ]] && die "Invalid instance name" local instance_path="${buildmaster_path}/${instance_name}" + local instance_log_path="${log_path}/${instance_name}" + if [[ -e "${instance_path}" ]]; then eerror "The instance with the specified name already exists:" eerror "${instance_path}" @@ -196,6 +200,12 @@ pkg_config() { ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ || die "Unable to create link to init file" + if [[ ! -d "${instance_log_path}" ]]; then + mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}" + fi + ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \ + || die "Unable to create link to log file" + einfo "Successfully created a buildmaster instance at ${instance_path}." einfo "To change the default settings edit the master.cfg file in this directory." }