sysutils/fetchlog: fix build in 14-current

PR:	259935
Reported by:	alexander.haderer@loescap.de (maintainer)
This commit is contained in:
Fernando Apesteguía 2021-11-24 15:21:41 +01:00
parent d13dd9ffd2
commit bad02a5349
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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