$NetBSD: patch-ab,v 1.6 2020/11/30 12:20:53 nia Exp $

pkgsrcify

--- config.mk.orig	2003-10-24 20:47:04.000000000 +0000
+++ config.mk
@@ -3,7 +3,6 @@
 #	For copying and distribution information, see the file COPYING.
 #
 
-PREFIX		= /usr/local
 BINDIR		= ${PREFIX}/sbin
 MANDIR		= ${PREFIX}/man
 MAN8DIR		= ${PREFIX}/man/man8
@@ -12,15 +11,15 @@ ETCDIR		= ${PREFIX}/etc/icbd
 INSTALL		= ../install-sh
 
 WARNS		= -Wall -ansi -pedantic
-EXTRAWARNS	= -Wshadow -Wpointer-arith -Werror -Wcast-qual -Wcast-align \
+EXTRAWARNS	= -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align \
 		  -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
 		  -Wnested-externs
 # We really should make it possible to build with -Wwrite-strings, as this _will_
 # affect portability to some platforms.  The others here are irrelevant.
 BADWARNS	= -Wwrite-strings -Wconversion -Waggregate-return -Wredundant-decls
-DEBUG		= -DDEBUG -DVERBOSE -g
-CFLAGS		= ${WARNS} ${EXTRAWARNS} ${DEBUG}
-LDFLAGS		=
+#DEBUG		= -DDEBUG -DVERBOSE -g
+CFLAGS		+= ${WARNS} ${EXTRAWARNS} ${DEBUG} -DPREFIX=\"${PREFIX}\" -DPKG_SYSCONFDIR=\"${PKG_SYSCONFDIR}\"
+#LDFLAGS		=
 LIBS		= -lutil
 
 LINT		= lint
