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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B21EA158094 for ; Thu, 11 Aug 2022 18:23:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BBCEE0C7C; Thu, 11 Aug 2022 18:22:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 757FBE0C7C for ; Thu, 11 Aug 2022 18:22:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 688F93412D5 for ; Thu, 11 Aug 2022 18:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04D0455B for ; Thu, 11 Aug 2022 18:22:56 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1660242163.106d5ab4c5c1ec11f14e74dfb0ebcc4b72197b53.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/uptimed/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/uptimed/uptimed-0.4.6-r1.ebuild X-VCS-Directories: app-misc/uptimed/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: 106d5ab4c5c1ec11f14e74dfb0ebcc4b72197b53 X-VCS-Branch: master Date: Thu, 11 Aug 2022 18:22:56 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ceee7739-c62f-45e7-af00-07bfe8b07c9e X-Archives-Hash: 73aa9ede212d99bfa85a8a54b6710fda commit: 106d5ab4c5c1ec11f14e74dfb0ebcc4b72197b53 Author: John Helmert III gentoo org> AuthorDate: Thu Aug 11 04:15:20 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Thu Aug 11 18:22:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106d5ab4 app-misc/uptimed: drop ownership changes in pkg_postinst Bug: https://bugs.gentoo.org/630810 Signed-off-by: John Helmert III gentoo.org> app-misc/uptimed/uptimed-0.4.6-r1.ebuild | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/app-misc/uptimed/uptimed-0.4.6-r1.ebuild b/app-misc/uptimed/uptimed-0.4.6-r1.ebuild new file mode 100644 index 000000000000..5df4993bf443 --- /dev/null +++ b/app-misc/uptimed/uptimed-0.4.6-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes" +HOMEPAGE="https://github.com/rpodgorny/uptimed/" +SRC_URI="https://github.com/rpodgorny/uptimed/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + acct-group/uptimed + acct-user/uptimed +" +DEPEND="${RDEPEND}" +BDEPEND="${RDEPEND}" + +src_prepare() { + default + eautoreconf +} + +src_install() { + local DOCS=( ChangeLog README.md TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/* ) + default + find "${ED}" -type f -name '*.la' -delete || die + + local spooldir="/var/spool/${PN}" + keepdir ${spooldir} + fowners uptimed:uptimed ${spooldir} + + newinitd "${FILESDIR}"/${PN}.init-r1 uptimed + systemd_dounit "${FILESDIR}/${PN}.service" +} + +pkg_postinst() { + elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)" + elog "or systemctl start uptimed (for systemd)" + elog "To view your uptime records, use the command 'uprecords'." +}