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 DD6A9138335 for ; Fri, 30 Aug 2019 07:23:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19AF5E0833; Fri, 30 Aug 2019 07:23:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 DB5E6E0833 for ; Fri, 30 Aug 2019 07:23:31 +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 8F08834A671 for ; Fri, 30 Aug 2019 07:23:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 410BCA8 for ; Fri, 30 Aug 2019 07:23:29 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1567149537.c0688d87fd51492e11b0c7d54e11e82ee848b1c3.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/uptimed/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/uptimed/Manifest app-misc/uptimed/uptimed-0.4.2.ebuild X-VCS-Directories: app-misc/uptimed/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: c0688d87fd51492e11b0c7d54e11e82ee848b1c3 X-VCS-Branch: master Date: Fri, 30 Aug 2019 07:23:29 +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: 70043d0a-dbc7-4d3c-8f91-97f37905c075 X-Archives-Hash: 97e517e7326f501da77c7f4cefdd353c commit: c0688d87fd51492e11b0c7d54e11e82ee848b1c3 Author: Lars Wendler gentoo org> AuthorDate: Fri Aug 30 07:18:57 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Fri Aug 30 07:18:57 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0688d87 app-misc/uptimed: Bump to version 0.4.2 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Lars Wendler gentoo.org> app-misc/uptimed/Manifest | 1 + app-misc/uptimed/uptimed-0.4.2.ebuild | 61 +++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/app-misc/uptimed/Manifest b/app-misc/uptimed/Manifest index 1a647442792..a848bdcd756 100644 --- a/app-misc/uptimed/Manifest +++ b/app-misc/uptimed/Manifest @@ -1,2 +1,3 @@ DIST uptimed-0.4.0.tar.gz 55026 BLAKE2B 9f66f3cda4181c01e686896a8560ecab7bb7f3ed9cdaeaee840a589137188d8629ba414e436a99b212d386b8d3319ce88ccb8867c78335b015ed65a179154621 SHA512 918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900 DIST uptimed-0.4.1.tar.gz 55162 BLAKE2B c281f922ed4fcf4f55571f1f1177451bf9f2e0fecfc87566610e1d24055969cd61543fcb0fdae4d0e6dc7a082c1b9013a08b72641d572a2475e9c7f5fd56deae SHA512 5dfe79aebab8c8daca3a3ec88d54e312446fc7cf8b54ef1414cbfcb3fb25053ef31235de4b42cb14fc7352965b77ca2875c753b97b4d61178792a5484715e23a +DIST uptimed-0.4.2.tar.gz 55339 BLAKE2B 120a3b1d6dc9518f7051af4d7e0f1bcf455f7dd989687fa8f5a40f160f2912c21d09298bbb9c676af5387d96890a98acf3f21b60e046a9548a735ca10dbc4006 SHA512 a18cc8580a4dc7db7f4d97d70e25d76e7b98b9d328a0fa4ece4176d40fc26589149d63ffc9d2638cc35003cf485b43ae6e115aa1821c662d77f234eb3c4c0a4f diff --git a/app-misc/uptimed/uptimed-0.4.2.ebuild b/app-misc/uptimed/uptimed-0.4.2.ebuild new file mode 100644 index 00000000000..1986bbd3429 --- /dev/null +++ b/app-misc/uptimed/uptimed-0.4.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="static-libs" + +RDEPEND=" + acct-group/uptimed + acct-user/uptimed +" +DEPEND="${RDEPEND}" +BDEPEND="${RDEPEND}" + +src_prepare() { + default + # fix configure.ac for >=automake-1.13 (bug #467582) + sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +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() { + local spooldir="/var/spool/${PN}" + if [[ -d "${spooldir}" ]] ; then + einfo "Fixing permissions in ${spooldir}" + find ${spooldir} -type f -links 1 \ + \( -name records -o -name records.old \) \ + | xargs --no-run-if-empty chown uptimed:uptimed || die + fi + echo + 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'." + echo +}