Skip to content

Commit

Permalink
sysutils/mgeupsd: Deprecate ancient port
Browse files Browse the repository at this point in the history
Last release was in 1999. It is unclear that this port works with any hardware
that is still in production.

Give plenty of time for this change to reach 2022Q3 in case some users only
check quarterly branches.

Nevertheless, while here, reformat patches.

PR:	263028
Reported by:	PauAmma <pauamma@gundo.com>
  • Loading branch information
fernape committed Apr 6, 2022
1 parent e7a272f commit e52b69a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
5 changes: 4 additions & 1 deletion sysutils/mgeupsd/Makefile
Expand Up @@ -2,13 +2,16 @@

PORTNAME= mgeupsd
PORTVERSION= 0.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SUNSITE/system/ups

MAINTAINER= ports@FreeBSD.org
COMMENT= Monitor a state of MGE Pulsar UPS connected to RS-232 port

DEPRECATED= Last release is 23 years old. It is not clear what devices are supported.
EXPIRATION_DATE= 2022-07-25

USES= gmake
WRKSRC= ${WRKDIR}/MGE

Expand Down
12 changes: 10 additions & 2 deletions sysutils/mgeupsd/files/patch-Makefile
@@ -1,5 +1,13 @@
--- Makefile.orig 1998-12-25 17:10:57.000000000 +0800
+++ Makefile 2013-11-15 23:04:20.000000000 +0800
--- Makefile.orig 1998-12-25 09:10:57 UTC
+++ Makefile
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-Wall -O2
+CC=cc
+CFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing
LDFLAGS=-s

all: mgeupsd
@@ -8,8 +8,8 @@ mgeupsd: mgeupsd.o
$(CC) $(LDFLAGS) -o $@ $<

Expand Down
14 changes: 7 additions & 7 deletions sysutils/mgeupsd/files/patch-mgeupsd.c
@@ -1,6 +1,6 @@
--- mgeupsd.c.old Sat Dec 26 02:42:52 1998
+++ mgeupsd.c Sat Mar 17 23:59:09 2001
@@ -33,9 +33,9 @@
--- mgeupsd.c.orig 1998-12-26 10:42:52 UTC
+++ mgeupsd.c
@@ -33,9 +33,9 @@ int RTS = TIOCM_RTS, use_syslog = 0;
#define BS_TDP 12

/* status file for init */
Expand All @@ -12,7 +12,7 @@
#define RUNDIR "/var/run"
char lockfile[40] = {0,};
char pidfile[40] = {0,};
@@ -640,7 +640,7 @@
@@ -640,7 +640,7 @@ operate:
else
{
#ifndef TEST
Expand All @@ -21,7 +21,7 @@
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -677,7 +677,7 @@
@@ -677,7 +677,7 @@ operate:
else
{
#ifndef TEST
Expand All @@ -30,7 +30,7 @@
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -711,7 +711,7 @@
@@ -711,7 +711,7 @@ operate:
else
{
#ifndef TEST
Expand All @@ -39,7 +39,7 @@
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -758,4 +758,5 @@
@@ -758,4 +758,5 @@ operate:
}
} /* while(1) */
}
Expand Down

0 comments on commit e52b69a

Please sign in to comment.