git: bad02a5349dd - main - sysutils/fetchlog: fix build in 14-current

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 24 Nov 2021 14:58:22 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bad02a5349dd7eb23e0c67b9b11ddd8f4eeca02b

commit bad02a5349dd7eb23e0c67b9b11ddd8f4eeca02b
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-11-24 14:21:41 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-11-24 14:57:09 +0000

    sysutils/fetchlog: fix build in 14-current
    
    PR:     259935
    Reported by:    alexander.haderer@loescap.de (maintainer)
---
 sysutils/fetchlog/Makefile             |  2 ++
 sysutils/fetchlog/files/patch-Makefile | 10 +++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/sysutils/fetchlog/Makefile b/sysutils/fetchlog/Makefile
index cea36b6c10ce..1640d9865605 100644
--- a/sysutils/fetchlog/Makefile
+++ b/sysutils/fetchlog/Makefile
@@ -8,6 +8,8 @@ MASTER_SITES=	SF
 MAINTAINER=	alexander.haderer@loescap.de
 COMMENT=	Fetch and convert new messages of a logfile
 
+LICENSE=	GPLv2
+
 PORTDOCS=	CHANGES README README.Nagios README.SNMP
 PORTEXAMPLES=	fetchlog.cfg fetchlog_service.cfg notify.cfg.example
 
diff --git a/sysutils/fetchlog/files/patch-Makefile b/sysutils/fetchlog/files/patch-Makefile
index 9139c6f706ad..c69aa4dfac18 100644
--- a/sysutils/fetchlog/files/patch-Makefile
+++ b/sysutils/fetchlog/files/patch-Makefile
@@ -1,17 +1,17 @@
---- Makefile.orig	2010-06-21 11:35:08.000000000 +0200
-+++ Makefile	2010-06-21 19:10:33.000000000 +0200
-@@ -23,8 +23,8 @@
+--- Makefile.orig	2010-07-02 10:10:08 UTC
++++ Makefile
+@@ -23,8 +23,8 @@ FETCHLOG_VERSION=1.4
  ### compiler
  
  ### gcc
 -CC=gcc
 -CFLAGS= -O -Werror -Wall -Wcast-qual -Wstrict-prototypes \
 +CC?=cc
-+CFLAGS+= -O -Werror -Wall -Wcast-qual -Wstrict-prototypes \
++CFLAGS+= -O -Wall -Wcast-qual -Wstrict-prototypes \
  	-Wmissing-prototypes -Wmissing-declarations -Winline -Wcast-align 
  ### cc
  #CC=cc
-@@ -57,7 +57,7 @@
+@@ -57,7 +57,7 @@ HAS_REGEX=-DHAS_REGEX
  ### installdir    
  ###   will use $INSTDIR/bin  and  $INSTDIR/man/man1, 
  ###   both dirs have to exist for installation