import sysutils/uptimed, utility to keep track of uptime records.
OK sthen@ with input from sthen@
This commit is contained in:
parent
2186912dcd
commit
ed02400f3a
23
sysutils/uptimed/Makefile
Normal file
23
sysutils/uptimed/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/06/18 05:47:19 rfreeman Exp $
|
||||
|
||||
COMMENT = keeps a list of uptime records
|
||||
DISTNAME = uptimed-0.3.17
|
||||
CATEGORIES = sysutils
|
||||
|
||||
SHARED_LIBS += uptimed 0.0 # 0.0
|
||||
|
||||
HOMEPAGE = http://podgorny.cz/moin/Uptimed
|
||||
|
||||
MAINTAINER = Ryan Freeman <rfreeman@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += c
|
||||
|
||||
MASTER_SITES = http://podgorny.cz/uptimed/releases/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/uptimed/distinfo
Normal file
2
sysutils/uptimed/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (uptimed-0.3.17.tar.bz2) = UkzomEwNCngKMgJbo/+5gOXuw9eOZc9oyR7ex/6DOgY=
|
||||
SIZE (uptimed-0.3.17.tar.bz2) = 269102
|
14
sysutils/uptimed/patches/patch-libuptimed_urec_h
Normal file
14
sysutils/uptimed/patches/patch-libuptimed_urec_h
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-libuptimed_urec_h,v 1.1.1.1 2013/06/18 05:47:19 rfreeman Exp $
|
||||
--- libuptimed/urec.h.orig Sun Jun 16 17:00:29 2013
|
||||
+++ libuptimed/urec.h Sun Jun 16 17:00:51 2013
|
||||
@@ -54,8 +54,8 @@ extern void snprintf(char *, ...);
|
||||
|
||||
#include "misc.h"
|
||||
|
||||
-#define FILE_BOOTID "/var/spool/uptimed/bootid"
|
||||
-#define FILE_RECORDS "/var/spool/uptimed/records"
|
||||
+#define FILE_BOOTID "/var/db/uptimed/bootid"
|
||||
+#define FILE_RECORDS "/var/db/uptimed/records"
|
||||
|
||||
typedef struct urec {
|
||||
time_t utime; /* uptime */
|
2
sysutils/uptimed/pkg/DESCR
Normal file
2
sysutils/uptimed/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
uptimed keeps track of your uptime records, viewable with the included
|
||||
uprecords program.
|
15
sysutils/uptimed/pkg/PLIST
Normal file
15
sysutils/uptimed/pkg/PLIST
Normal file
@ -0,0 +1,15 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/06/18 05:47:19 rfreeman Exp $
|
||||
@extraunexec rm -f /var/db/uptimed/*
|
||||
@newgroup _uptimed:717
|
||||
@newuser _uptimed:717:717:daemon:Uptimed Account:/var/db/transmission:/sbin/nologin
|
||||
@bin bin/uprecords
|
||||
lib/libuptimed.a
|
||||
lib/libuptimed.la
|
||||
@lib lib/libuptimed.so.${LIBuptimed_VERSION}
|
||||
@man man/man1/uprecords.1
|
||||
@man man/man8/uptimed.8
|
||||
@bin sbin/uptimed
|
||||
@owner _uptimed
|
||||
@sample /var/db/uptimed/
|
||||
@owner
|
||||
@rcscript ${RCDIR}/uptimed
|
17
sysutils/uptimed/pkg/uptimed.rc
Normal file
17
sysutils/uptimed/pkg/uptimed.rc
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: uptimed.rc,v 1.1.1.1 2013/06/18 05:47:19 rfreeman Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/uptimed"
|
||||
daemon_flags="-p /var/run/uptimed/uptimed.pid"
|
||||
daemon_user="_uptimed"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_reload=NO
|
||||
|
||||
rc_pre() {
|
||||
install -d -o _uptimed /var/run/uptimed
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user