1 |
commit: 106d5ab4c5c1ec11f14e74dfb0ebcc4b72197b53 |
2 |
Author: John Helmert III <ajak <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 11 04:15:20 2022 +0000 |
4 |
Commit: John Helmert III <ajak <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 11 18:22:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106d5ab4 |
7 |
|
8 |
app-misc/uptimed: drop ownership changes in pkg_postinst |
9 |
|
10 |
Bug: https://bugs.gentoo.org/630810 |
11 |
Signed-off-by: John Helmert III <ajak <AT> gentoo.org> |
12 |
|
13 |
app-misc/uptimed/uptimed-0.4.6-r1.ebuild | 45 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/uptimed/uptimed-0.4.6-r1.ebuild b/app-misc/uptimed/uptimed-0.4.6-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..5df4993bf443 |
19 |
--- /dev/null |
20 |
+++ b/app-misc/uptimed/uptimed-0.4.6-r1.ebuild |
21 |
@@ -0,0 +1,45 @@ |
22 |
+# Copyright 2021-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit autotools systemd |
28 |
+ |
29 |
+DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes" |
30 |
+HOMEPAGE="https://github.com/rpodgorny/uptimed/" |
31 |
+SRC_URI="https://github.com/rpodgorny/uptimed/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ acct-group/uptimed |
39 |
+ acct-user/uptimed |
40 |
+" |
41 |
+DEPEND="${RDEPEND}" |
42 |
+BDEPEND="${RDEPEND}" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ default |
46 |
+ eautoreconf |
47 |
+} |
48 |
+ |
49 |
+src_install() { |
50 |
+ local DOCS=( ChangeLog README.md TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/* ) |
51 |
+ default |
52 |
+ find "${ED}" -type f -name '*.la' -delete || die |
53 |
+ |
54 |
+ local spooldir="/var/spool/${PN}" |
55 |
+ keepdir ${spooldir} |
56 |
+ fowners uptimed:uptimed ${spooldir} |
57 |
+ |
58 |
+ newinitd "${FILESDIR}"/${PN}.init-r1 uptimed |
59 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
60 |
+} |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)" |
64 |
+ elog "or systemctl start uptimed (for systemd)" |
65 |
+ elog "To view your uptime records, use the command 'uprecords'." |
66 |
+} |