View | Details | Raw Unified | Return to bug 239602
Collapse All | Expand All

(-)tuptime-new/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/sysutils/tuptime/Makefile 480685 2018-09-25 16:25:43Z fernape $
2
# $FreeBSD: head/sysutils/tuptime/Makefile 480685 2018-09-25 16:25:43Z fernape $
3
3
4
PORTNAME=	tuptime
4
PORTNAME=	tuptime
5
DISTVERSION=	3.4.0
5
DISTVERSION=	4.0.0
6
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
7
7
8
MAINTAINER=	jeremy@smart-serv.net
8
MAINTAINER=	jeremy@smart-serv.net
(-)tuptime-new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1537724492
1
TIMESTAMP = 1564685971
2
SHA256 (rfrail3-tuptime-3.4.0_GH0.tar.gz) = 9f917daed6d3a6f592072a3165d99c7b41fc4e8ed6e2e4fbc4ab670fb0c1c82b
2
SHA256 (rfrail3-tuptime-4.0.0_GH0.tar.gz) = 4ec860560e3c00d5a723b282ddd3c7751abab6f48e810656e4c1a21eea173cfb
3
SIZE (rfrail3-tuptime-3.4.0_GH0.tar.gz) = 43003
3
SIZE (rfrail3-tuptime-4.0.0_GH0.tar.gz) = 53732
(-)tuptime-new/files/pkg-message.in (-2 / +3 lines)
Lines 1-9 Link Here
1
======================================================================
1
======================================================================
2
2
3
tuptime requires execution at startup and shutdown on rc.d, please
3
tuptime requires execution at startup and shutdown on rc.d, please
4
add to /etc/rc.conf:
4
add it to /etc/rc.conf and start:
5
5
6
	tuptime_enable="YES"
6
	sysrc tuptime_enable=YES
7
	service tuptime start
7
8
8
tuptime requires a scheduled execution on cron, please add to
9
tuptime requires a scheduled execution on cron, please add to
9
/etc/crontab:
10
/etc/crontab:
(-)tuptime-new/files/tuptime.in (-1 / +5 lines)
Lines 1-4 Link Here
1
# $FreeBSD: head/sysutils/tuptime/files/tuptime.in 480685 2018-09-25 16:25:43Z fernape $
1
# $FreeBSD$
2
#!/bin/sh
2
#!/bin/sh
3
#
3
#
4
# PROVIDE: tuptime
4
# PROVIDE: tuptime
Lines 18-24 Link Here
18
18
19
tuptime_start()
19
tuptime_start()
20
{
20
{
21
	echo "Starting $name."
21
	command_args="-x"
22
	command_args="-x"
23
22
	if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then
24
	if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then
23
		su -m ${tuptime_user} -c "$name $command_args"
25
		su -m ${tuptime_user} -c "$name $command_args"
24
	else
26
	else
Lines 28-34 Link Here
28
30
29
tuptime_stop()
31
tuptime_stop()
30
{
32
{
33
	echo "Stopping $name."
31
	command_args="-xg"
34
	command_args="-xg"
35
32
	if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then
36
	if /usr/sbin/pw usershow "${tuptime_user}" >/dev/null 2>&1; then
33
		su -m ${tuptime_user} -c "$name $command_args"
37
		su -m ${tuptime_user} -c "$name $command_args"
34
	else
38
	else
(-)tuptime-new/pkg-descr (-3 / +2 lines)
Lines 1-5 Link Here
1
Tuptime is a tool that reports historical and statistical running time of
1
Tuptime reports historical and statistical real time of the system, keeping
2
the system, keeping it between restarts.  Like uptime(1) command but with
2
it between restarts. Like uptime(1) command but with more interesting output.
3
more interesting output.
4
3
5
WWW: https://github.com/rfrail3/tuptime
4
WWW: https://github.com/rfrail3/tuptime

Return to bug 239602