Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2000 11:28:14 -0400 (EDT)
From:      jim@thehousleys.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18985: Update port: sysutils/healthd
Message-ID:  <200006031528.LAA00511@baby.int.thehousleys.net>

next in thread | raw e-mail | index | archive | help

>Number:         18985
>Category:       ports
>Synopsis:       Update sysutils/healthd to remove warning & extra files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 03 08:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     James Housley
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
The Housleys dot Net
>Environment:

	

>Description:

	Remove compile time warning about main() not being an int.
	Remove config file if it is the same as the sample

>How-To-Repeat:

	

>Fix:

diff -urN healthd/patches/patch-aa healthd.new/patches/patch-aa
--- healthd/patches/patch-aa	Wed Dec 31 19:00:00 1969
+++ healthd.new/patches/patch-aa	Fri Jun  2 20:42:55 2000
@@ -0,0 +1,19 @@
+--- healthd.c.orig	Wed Apr 26 08:37:21 2000
++++ healthd.c	Fri Jun  2 20:42:15 2000
+@@ -549,7 +549,7 @@
+ 
+ };
+ 
+-void	
++int	
+ main(int argc, char *argv[]) {
+   int n, sec;
+   extern char *optarg;
+@@ -747,6 +747,7 @@
+   if (debug == 0) {
+     close(sock);
+   }
++  exit(0);
+ }
+ 
+ void
diff -urN healthd/pkg/PLIST healthd.new/pkg/PLIST
--- healthd/pkg/PLIST	Wed Nov 24 08:08:47 1999
+++ healthd.new/pkg/PLIST	Fri Jun  2 20:38:58 2000
@@ -1,3 +1,5 @@
 bin/healthd
+@unexec if cmp -s %D/etc/healthd.conf %D/etc/healthd.conf.sample; then rm -f %D/etc/healthd.conf; fi
 etc/healthd.conf.sample
+@exec if [ ! -f %D/etc/healthd.conf ] ; then cp -p %D/%F %B/healthd.conf; fi
 etc/rc.d/healthd.sh


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006031528.LAA00511>