diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-06-26 11:12:14 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-06-26 11:12:27 +0200 |
commit | b3de5377302b1dce44d4c4fc463dd320ab857e52 (patch) | |
tree | 8d16b55b018082a9151b8f99d43f187e62abbd6e | |
parent | dev-python/prettyprinter: new package. (diff) | |
download | gentoo-b3de5377302b1dce44d4c4fc463dd320ab857e52.tar.gz gentoo-b3de5377302b1dce44d4c4fc463dd320ab857e52.tar.bz2 gentoo-b3de5377302b1dce44d4c4fc463dd320ab857e52.zip |
app-misc/uptimed: Bump to version 0.4.1
Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r-- | app-misc/uptimed/Manifest | 1 | ||||
-rw-r--r-- | app-misc/uptimed/uptimed-0.4.1.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-misc/uptimed/Manifest b/app-misc/uptimed/Manifest index 1d9551250b92..1a647442792f 100644 --- a/app-misc/uptimed/Manifest +++ b/app-misc/uptimed/Manifest @@ -1 +1,2 @@ DIST uptimed-0.4.0.tar.gz 55026 BLAKE2B 9f66f3cda4181c01e686896a8560ecab7bb7f3ed9cdaeaee840a589137188d8629ba414e436a99b212d386b8d3319ce88ccb8867c78335b015ed65a179154621 SHA512 918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900 +DIST uptimed-0.4.1.tar.gz 55162 BLAKE2B c281f922ed4fcf4f55571f1f1177451bf9f2e0fecfc87566610e1d24055969cd61543fcb0fdae4d0e6dc7a082c1b9013a08b72641d572a2475e9c7f5fd56deae SHA512 5dfe79aebab8c8daca3a3ec88d54e312446fc7cf8b54ef1414cbfcb3fb25053ef31235de4b42cb14fc7352965b77ca2875c753b97b4d61178792a5484715e23a diff --git a/app-misc/uptimed/uptimed-0.4.1.ebuild b/app-misc/uptimed/uptimed-0.4.1.ebuild new file mode 100644 index 000000000000..498d1fc64756 --- /dev/null +++ b/app-misc/uptimed/uptimed-0.4.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools user 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" + +pkg_setup() { + enewgroup uptimed + enewuser uptimed -1 -1 -1 uptimed +} + +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}" \( -name '*.a' -o -name '*.la' \) -delete || die + keepdir /var/spool/uptimed + fowners uptimed:uptimed /var/spool/uptimed + newinitd "${FILESDIR}"/${PN}.init-r1 uptimed + systemd_dounit "${FILESDIR}/${PN}.service" +} + +pkg_postinst() { + einfo "Fixing permissions in /var/spool/${PN}" + chown -R uptimed:uptimed /var/spool/${PN} + 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 +} |