From 2e7c32a306f8e3d6357ad3e690ce73c45c562c8e Mon Sep 17 00:00:00 2001 From: lukem Date: Wed, 3 Jul 2002 11:57:11 +0000 Subject: update to nut 0.50.0. notable changes: - change from tcp/ip port 3305 to the IANA assigned 3493 - all old-style drivers have been deprecated: aeg bestfort bestuferrups engetron ipt-anzen mgeups multilink mustekups optiups sms toshiba1500 ups-trust425+625 upseyeux - newvictron renamed to victronups - newpowercom renamed to powercom, replacing previous powercom and ups-trust425+625 as well --- sysutils/ups-nut-cgi/patches/patch-aa | 13 +++++------- sysutils/ups-nut-cgi/patches/patch-ad | 20 +++++++++--------- sysutils/ups-nut-cgi/patches/patch-ae | 40 +++++++++++++++++------------------ 3 files changed, 35 insertions(+), 38 deletions(-) (limited to 'sysutils/ups-nut-cgi/patches') diff --git a/sysutils/ups-nut-cgi/patches/patch-aa b/sysutils/ups-nut-cgi/patches/patch-aa index ff6b6033e2c..d2e8e5fa0fd 100644 --- a/sysutils/ups-nut-cgi/patches/patch-aa +++ b/sysutils/ups-nut-cgi/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.4 2002/05/13 15:15:24 lukem Exp $ +$NetBSD: patch-aa,v 1.5 2002/07/03 11:57:14 lukem Exp $ ---- Makefile.in.orig Fri Mar 8 23:21:11 2002 +--- Makefile.in.orig Wed Apr 17 00:00:49 2002 +++ Makefile.in -@@ -9,9 +9,10 @@ +@@ -9,7 +9,7 @@ MODELPATH = $(INSTALLROOT)@MODELPATH@ INSTALLDIRS = $(CONFPATH) $(MODELPATH) $(BASEPATH)/@bindir@ $(BASEPATH)/@sbindir@ STATEPATH = $(INSTALLROOT)@STATEPATH@ @@ -10,11 +10,8 @@ $NetBSD: patch-aa,v 1.4 2002/05/13 15:15:24 lukem Exp $ +SUBDIRS = common CFLAGS = -I../include @CFLAGS@ -+ # these are here so they can be overridden during a make install - RUNUID=@RUN_AS_USER@ - RUNGID=@RUN_AS_GROUP@ -@@ -64,7 +65,7 @@ +@@ -65,7 +65,7 @@ install-dirs: install-man: @cd man; $(MAKE) install; cd ..; @@ -23,7 +20,7 @@ $NetBSD: patch-aa,v 1.4 2002/05/13 15:15:24 lukem Exp $ @cd clients; $(MAKE) cgi; cd ..; install-cgi: install-dirs -@@ -72,7 +73,6 @@ +@@ -73,7 +73,6 @@ install-cgi: install-dirs ./install-sh -d $(CGIPATH) || exit 1; \ fi \ diff --git a/sysutils/ups-nut-cgi/patches/patch-ad b/sysutils/ups-nut-cgi/patches/patch-ad index 5d15ecc59e6..a23d45a27b8 100644 --- a/sysutils/ups-nut-cgi/patches/patch-ad +++ b/sysutils/ups-nut-cgi/patches/patch-ad @@ -1,8 +1,8 @@ -$NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ +$NetBSD: patch-ad,v 1.6 2002/07/03 11:57:14 lukem Exp $ ---- configure.in.orig Tue Feb 26 05:46:25 2002 +--- configure.in.orig Tue Apr 16 23:34:38 2002 +++ configure.in -@@ -16,6 +16,7 @@ +@@ -18,6 +18,7 @@ dnl | default values for things later on STATEPATH="/var/state/ups" MODELPATH="$prefix/bin" CGIPATH="$prefix/cgi-bin" @@ -10,7 +10,7 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ RUN_AS_USER="nobody" RUN_AS_GROUP="nogroup" PIDPATH="/var/run" -@@ -120,9 +121,43 @@ +@@ -118,9 +119,43 @@ if ( test x"$ac_cv_func_connect" = x"no" ], [], []) fi @@ -54,7 +54,7 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ dnl Include in case GD was compiled with Xpm support AC_CHECK_LIB(X11, XBell, -@@ -131,13 +166,16 @@ +@@ -129,13 +164,16 @@ AC_CHECK_LIB(X11, XBell, echo "Retrying with -L /usr/X11R6/lib" unset ac_cv_lib_X11_XBell AC_CHECK_LIB(X11, XBell, @@ -73,7 +73,7 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ dnl Skip this chunk if there's no LIBX to use if test "$LIBX" != "" -@@ -145,69 +183,34 @@ +@@ -143,69 +181,35 @@ then dnl Include in case GD was compiled with Xpm support AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage, @@ -120,7 +120,7 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ -[-lm -lpng -lz], +[$GRAPHICS_LIBS -lm -lpng -lz], ) -- + -dnl Don't run the ttf/xpm tests against gd unless -dnl we actually have something to test! -dnl @@ -154,13 +154,13 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ +GRAPHICS_LIBS="$LIBGD" +CFLAGS="$CFLAGS_save $GRAPHICS_LIBS" - AC_CHECK_HEADERS(gd.h gd/gd.h sys/modem.h stdarg.h varargs.h sys/shm.h err.h) + AC_CHECK_HEADERS(gd.h gd/gd.h sys/modem.h stdarg.h varargs.h sys/shm.h) +CFLAGS=$CFLAGS_save +CPPFLAGS=$CPPFLAGS_save AC_HEADER_TIME AC_CHECK_HEADERS(sys/time.h) -@@ -220,7 +223,7 @@ +@@ -218,7 +222,7 @@ if test -n "$LD_LIBRARY_PATH"; then for lib in `echo $LD_LIBRARY_PATH | $AWK -F: '{ for (i = NF; i > 0; --i) print $i }' | sort | uniq`; do if test -f ${lib}/libpng.so; then AC_CHECK_LIB(png, png_info_init, @@ -169,7 +169,7 @@ $NetBSD: patch-ad,v 1.5 2002/05/13 15:15:24 lukem Exp $ ], [], [-lm -R${lib}],) -@@ -524,7 +527,8 @@ +@@ -550,7 +554,8 @@ AC_SUBST(DRIVER_INSTALL_TARGET) AC_SUBST(LIBOBJ) AC_SUBST(BUILDOBJ) AC_SUBST(NETLIBS) diff --git a/sysutils/ups-nut-cgi/patches/patch-ae b/sysutils/ups-nut-cgi/patches/patch-ae index f50fae45b14..52f204c5515 100644 --- a/sysutils/ups-nut-cgi/patches/patch-ae +++ b/sysutils/ups-nut-cgi/patches/patch-ae @@ -1,38 +1,38 @@ -$NetBSD: patch-ae,v 1.1 2001/11/19 03:47:42 lukem Exp $ +$NetBSD: patch-ae,v 1.2 2002/07/03 11:57:14 lukem Exp $ ---- clients/upsstats.c.orig Wed Aug 29 22:36:41 2001 +--- clients/upsstats.c.orig Thu Mar 21 17:01:16 2002 +++ clients/upsstats.c -@@ -73,6 +73,7 @@ +@@ -74,6 +74,7 @@ int main() double tempf; char model[64], status[64], battpct[64], utility[64], loadpct[64], upstemp[64], acfreq[64], *stat, *ptr; + char runtime[64]; int i; - strcpy (monhost, MONHOST); /* default host */ -@@ -149,6 +150,7 @@ - - printf ("\n"); + extractcgiargs(); +@@ -162,6 +163,7 @@ int main() + printf("\n"); + printf("\n"); +#if 0 - printf ("
\n");
+ 	printf("
\n");
  
  	/* TODO: handle self tests */
-@@ -156,6 +158,7 @@
- /*	printf ("Last UPS Self Test: Not Available\n"); */
- /*	printf ("    Last Test Date: Not Available\n"); */
- 	printf ("
\n"); +@@ -169,6 +171,7 @@ int main() + /* printf("Last UPS Self Test: Not Available\n"); */ + /* printf(" Last Test Date: Not Available\n"); */ + printf("
\n"); +#endif - printf ("
\n");
+ 	printf("
\n");
  
-@@ -173,6 +176,9 @@
+@@ -186,6 +189,9 @@ int main() 
  
- 	if (getupsvar (monhost, "acfreq", acfreq, sizeof(acfreq)) > 0)
- 		printf (" Output Freq: %s Hz\n", acfreq);
+ 	if (getupsvar(monhost, "acfreq", acfreq, sizeof(acfreq)) > 0)
+ 		printf(" Output Freq: %s Hz\n", acfreq);
 +
-+	if (getupsvar (monhost, "runtime", runtime, sizeof(runtime)) > 0)
-+		printf ("     Runtime: %s\n", runtime);
++	if (getupsvar(monhost, "runtime", runtime, sizeof(runtime)) > 0)
++		printf("     Runtime: %s\n", runtime);
  
- 	printf ("

\n"); - printf ("

Network UPS Tools upsstats %s
\n", UPS_VERSION); + printf("

\n"); + printf("

Network UPS Tools upsstats %s
\n", UPS_VERSION); -- cgit v1.2.3