Update of /cvsroot/fink/packages/dists/unstable/main/finkinfo/utils
In directory usw-pr-cvs1:/tmp/cvs-serv11031
Added Files:
uptimed-0.2.0-1.info uptimed-0.2.0-1.patch
Log Message:
moved to unstable
--- NEW FILE: uptimed-0.2.0-1.info ---
Package: uptimed
Version: 0.2.0
Revision: 1
Source: mirror:sourceforge:uptimed/%n-%v.tar.bz2
SourceDirectory: %n-%v
PatchScript: sed -e s,@FINKPREFIX@,%p, %a/%f.patch | patch -p1
Depends: daemonic
ConfigureParams: --mandir='${prefix}/share/man'
CompileScript: <<
./configure %c
cp etc/uptimed.conf-dist etc/uptimed.conf
make
<<
InstallScript: <<
make install DESTDIR=%d
/sw/bin/install -c -m 755 ./uptimed-init.sh %i/sbin/uptimed-init.sh
<<
DocFiles: ChangeLog COPYING README AUTHORS CREDITS INSTALL.cgi NEWS README* TODO
ConfFiles: %p/etc/uptimed.conf
DaemonicFile: <<
<service>
<description>uptimed</description>
<message>uptimed</message>
<daemon name="uptimed">
<executable>%p/sbin/uptimed-init.sh</executable>
<configfile>%p/etc/%n.conf</configfile>
<pidfile>%p/var/run/%n.pid</pidfile>
</daemon>
</service>
<<
PostInstScript: <<
# update init script if necessary
daemonic update %n
<<
PreRmScript: <<
# clean up
if [ $1 != "upgrade" ]; then
daemonic remove %n
fi
<<
Description: A utility to log computer uptimes
DescDetail: <<
An uptime record daemon keeping track of the highest uptimes a computer
system ever had. It uses the system boot time to keep sessions apart
from each other. Uptimed comes with a console front-end to parse the
records, which can also easily be used to show your records on a web
page.
<<
DescUsage: <<
Run 'daemonic enable upclient' as root, this will install a Startup Item
a) either reboot (easy :-) )
b) or else, if this is a first time installation (or if you
know no instance of uptimed is running), run
'/Library/StartupItems/daemonic-upclient/daemonic-uptimed
start' as root.
To stop keeping track of your uptimes, run 'daemonic disable upclient'
as root. This will not kill a running instance at this time. Reboot the
machine to get rid of it, or run " kill `cat /sw/var/run/uptimed.pid` "
as root.
<<
License: GPL
Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]>
Homepage: http://unixcode.org/uptimed/index.html
--- NEW FILE: uptimed-0.2.0-1.patch ---
diff -ruN uptimed-0.2.0/Makefile.am uptimed-0.2.0.new/Makefile.am
--- uptimed-0.2.0/Makefile.am Sat Mar 16 10:36:45 2002
+++ uptimed-0.2.0.new/Makefile.am Thu Aug 15 12:32:57 2002
@@ -7,4 +7,4 @@
sample-cgi/uprecords.footer uptimed.lsm uptimed.spec
install-data-local:
- $(INSTALL) -d /var/spool/uptimed
+ $(INSTALL) -d @FINKPREFIX@/var/spool/uptimed
diff -ruN uptimed-0.2.0/Makefile.in uptimed-0.2.0.new/Makefile.in
--- uptimed-0.2.0/Makefile.in Mon May 13 05:10:56 2002
+++ uptimed-0.2.0.new/Makefile.in Thu Aug 15 12:33:12 2002
@@ -366,7 +366,7 @@
install-data-local:
- $(INSTALL) -d /var/spool/uptimed
+ $(INSTALL) -d @FINKPREFIX@/var/spool/uptimed
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff -ruN uptimed-0.2.0/configure uptimed-0.2.0.new/configure
--- uptimed-0.2.0/configure Mon May 13 05:08:52 2002
+++ uptimed-0.2.0.new/configure Fri Aug 16 09:46:26 2002
@@ -3994,7 +3994,7 @@
;;
darwin* | rhapsody*)
- allow_undefined_flag='-undefined suppress'
+ allow_undefined_flag='-undefined suppress -flat_namespace'
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
@@ -6147,6 +6147,13 @@
;;
*-openbsd*)
+
+cat >>confdefs.h <<\EOF
+#define PLATFORM_BSD 1
+EOF
+
+ ;;
+ *darwin*)
cat >>confdefs.h <<\EOF
#define PLATFORM_BSD 1
diff -ruN uptimed-0.2.0/etc/Makefile.am uptimed-0.2.0.new/etc/Makefile.am
--- uptimed-0.2.0/etc/Makefile.am Fri Mar 15 23:37:20 2002
+++ uptimed-0.2.0.new/etc/Makefile.am Thu Aug 15 12:46:55 2002
@@ -1,3 +1,3 @@
-sysconf_DATA = uptimed.conf-dist
+sysconf_DATA = uptimed.conf
-EXTRA_DIST = uptimed.conf-dist rc.uptimed
+EXTRA_DIST = uptimed.conf rc.uptimed
diff -ruN uptimed-0.2.0/etc/Makefile.in uptimed-0.2.0.new/etc/Makefile.in
--- uptimed-0.2.0/etc/Makefile.in Mon May 13 05:10:57 2002
+++ uptimed-0.2.0.new/etc/Makefile.in Thu Aug 15 12:46:55 2002
@@ -74,9 +74,9 @@
STRIP = @STRIP@
VERSION = @VERSION@
-sysconf_DATA = uptimed.conf-dist
+sysconf_DATA = uptimed.conf
-EXTRA_DIST = uptimed.conf-dist rc.uptimed
+EXTRA_DIST = uptimed.conf rc.uptimed
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
diff -ruN uptimed-0.2.0/etc/uptimed.conf-dist uptimed-0.2.0.new/etc/uptimed.conf-dist
--- uptimed-0.2.0/etc/uptimed.conf-dist Fri Mar 15 23:37:20 2002
+++ uptimed-0.2.0.new/etc/uptimed.conf-dist Thu Aug 15 12:27:54 2002
@@ -22,7 +22,7 @@
SENDMAIL=/usr/lib/sendmail -t
# Where to note our PID
-PIDFILE=/var/run/uptimed
+PIDFILE=@FINKPREFIX@/var/run/uptimed
# Milestones are configurable now.
# Syntax is pretty easy: MILESTONE=time:description
diff -ruN uptimed-0.2.0/libuptimed/urec.h uptimed-0.2.0.new/libuptimed/urec.h
--- uptimed-0.2.0/libuptimed/urec.h Sun Dec 16 20:36:33 2001
+++ uptimed-0.2.0.new/libuptimed/urec.h Thu Aug 15 12:30:46 2002
@@ -53,8 +53,8 @@
#include "misc.h"
-#define FILE_BOOTID "/var/spool/uptimed/bootid"
-#define FILE_RECORDS "/var/spool/uptimed/records"
+#define FILE_BOOTID "@FINKPREFIX@/var/spool/uptimed/bootid"
+#define FILE_RECORDS "@FINKPREFIX@/var/spool/uptimed/records"
typedef struct urec
{
diff -ruN uptimed-0.2.0/src/uptimed.c uptimed-0.2.0.new/src/uptimed.c
--- uptimed-0.2.0/src/uptimed.c Wed Dec 19 10:59:33 2001
+++ uptimed-0.2.0.new/src/uptimed.c Thu Aug 15 12:28:49 2002
@@ -52,7 +52,7 @@
if(!pidfile[0])
{
- strncpy(pidfile, "/var/run/uptimed", EMAIL);
+ strncpy(pidfile, "@FINKPREFIX@/var/run/uptimed", EMAIL);
pidfile[EMAIL] = '\0';
}
diff -ruN uptimed-0.2.0/uptimed-init.sh uptimed-0.2.0.new/uptimed-init.sh
--- uptimed-0.2.0/uptimed-init.sh Wed Dec 31 19:00:00 1969
+++ uptimed-0.2.0.new/uptimed-init.sh Fri Aug 16 09:56:41 2002
@@ -0,0 +1,5 @@
+#bin/sh
+
+@FINKPREFIX@/sbin/uptimed -b
+@FINKPREFIX@/sbin/uptimed
+
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits