$NetBSD: patch-aa,v 1.5 2004/05/10 23:39:42 jeremy-c-reed Exp $

--- Makefile.orig	1998-10-12 13:25:15.000000000 -0700
+++ Makefile
@@ -1,15 +1,15 @@
 # Makefile for syslogd and klogd daemons.
 
-CC= gcc
+CC?= gcc
 #CFLAGS= -g -DSYSV -Wall
 #LDFLAGS= -g
-CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
+CFLAGS+= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall
 LDFLAGS= -s
 
 # Look where your install program is.
 INSTALL = /usr/bin/install
-BINDIR = /usr/sbin
-MANDIR = /usr/man
+BINDIR = ${DESTDIR}/sbin
+MANDIR = ${DESTDIR}/${PKGMANDIR}
 
 # There is one report that under an all ELF system there may be a need to
 # explicilty link with libresolv.a.  If linking syslogd fails you may wish
@@ -29,12 +29,13 @@ MANDIR = /usr/man
 
 # The following define determines whether the package adheres to the
 # file system standard.
-FSSTND = -DFSSTND
+#FSSTND = -DFSSTND
+FSSTND=
 
 # The following define establishes ownership for the man pages.
 # Avery tells me that there is a difference between Debian and
 # Slackware.  Rather than choose sides I am leaving it up to the user.
-MAN_OWNER = root
+MAN_OWNER = ${ROOT_USER}
 # MAN_OWNER = man
 
 # The following define establishes the name of the pid file for the
