FreeBSD Bugzilla – Attachment 95298 Details for
Bug 133661
[PATCH] sysutils/upsdaemon: Unbreak, take maintainership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
upsdaemon-1.0.patch
upsdaemon-1.0.patch (text/plain), 1.85 KB, created by
Thomas Sandford
on 2009-04-12 16:20:04 UTC
(
hide
)
Description:
upsdaemon-1.0.patch
Filename:
MIME Type:
Creator:
Thomas Sandford
Created:
2009-04-12 16:20:04 UTC
Size:
1.85 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/sysutils/upsdaemon_orig/Makefile /usr/ports/sysutils/upsdaemon/Makefile >--- /usr/ports/sysutils/upsdaemon_orig/Makefile 2008-12-31 07:11:33.000000000 +0000 >+++ /usr/ports/sysutils/upsdaemon/Makefile 2009-04-12 15:56:04.000000000 +0100 >@@ -11,7 +11,7 @@ > MASTER_SITES= http://www.ederbs.org/pub/ \ > ftp://ederbs.org/pub/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= freebsduser@paradisegreen.co.uk > COMMENT= Simple APC UPS Daemon > > MAN8= upsdaemon.8 >@@ -22,10 +22,4 @@ > post-install: > @${CAT} ${PKGMESSAGE} > >-.include <bsd.port.pre.mk> >- >-.if ${OSVERSION} >= 700042 >-BROKEN= Does not compile with GCC 4.2 >-.endif >- >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff -ruN --exclude=CVS /usr/ports/sysutils/upsdaemon_orig/files/patch-upsdaemon.c /usr/ports/sysutils/upsdaemon/files/patch-upsdaemon.c >--- /usr/ports/sysutils/upsdaemon_orig/files/patch-upsdaemon.c 1970-01-01 01:00:00.000000000 +0100 >+++ /usr/ports/sysutils/upsdaemon/files/patch-upsdaemon.c 2009-04-12 15:51:55.000000000 +0100 >@@ -0,0 +1,26 @@ >+--- src/upsdaemon.c.orig 2006-06-20 01:50:23.000000000 +0100 >++++ src/upsdaemon.c 2009-04-12 15:48:34.000000000 +0100 >+@@ -32,6 +32,7 @@ >+ #include <errno.h> /* Error number definitions */ >+ #include <termios.h> /* POSIX terminal control definitions */ >+ #include <syslog.h> /* Definitions for system error logging */ >++#include <stdlib.h> /* exit() definition */ >+ >+ #define PROG " UpsDaemon" >+ #define VERSION " 1.0" >+@@ -50,6 +51,7 @@ >+ #define SH_RECOVERY "/usr/local/libexec/upsdaemon/upsdaemon-alerts -recovery" >+ >+ int makepid(char *s); >++static void runcommand(); >+ >+ int main(int argc, char **argv) >+ { >+@@ -71,7 +73,6 @@ >+ char *failed = SH_FAILED; >+ char *recovery = SH_RECOVERY; >+ >+- static void runcommand(); >+ >+ if(argc > 2) { >+ errx(1,"Usage: upsdaemon <port serial open>: %s\n", strerror(errno));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 133661
: 95298