Hi Darren,

Would you have any objections to a patch like this to allow folks to
stick overrides for the IPSTATE_MAX and IPSTATE_SIZE values in
/etc/make.conf and then forget about patching their local FreeBSD
sources used for upgrades?

Ciao,
Sheldon.

Index: sbin/ipfstat/Makefile
===================================================================
RCS file: /home/ncvs/src/sbin/ipfstat/Makefile,v
retrieving revision 1.4.2.7
diff -u -d -r1.4.2.7 Makefile
--- sbin/ipfstat/Makefile       27 Apr 2002 18:13:13 -0000      1.4.2.7
+++ sbin/ipfstat/Makefile       13 May 2002 15:51:13 -0000
@@ -10,6 +10,13 @@
 CFLAGS+=-I${.CURDIR}/../../sys
 CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter
 
+.ifdef(IPFILTER_STATE_MAX)
+CFLAGS+=       -DIPSTATE_MAX=${IPFILTER_STATE_MAX}
+.endif
+.ifdef(IPFILTER_STATE_SIZE)
+CFLAGS+=       -DIPSTATE_SIZE=${IPFILTER_STATE_SIZE}
+.endif
+
 DPADD+=        ${LIBNCURSES} ${LIBKVM}
 LDADD+=        -lncurses -lkvm
 
Index: sys/modules/ipfilter/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/ipfilter/Makefile,v
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.2 Makefile
--- sys/modules/ipfilter/Makefile       7 Jun 2001 05:11:44 -0000       1.2.2.2
+++ sys/modules/ipfilter/Makefile       13 May 2002 15:28:57 -0000
@@ -11,4 +11,11 @@
 # If you don't want log functionality remove -DIPFILTER_LOG
 #
 
+.ifdef(IPFILTER_STATE_MAX)
+CFLAGS+=       -DIPSTATE_MAX=${IPFILTER_STATE_MAX}
+.endif
+.ifdef(IPFILTER_STATE_SIZE)
+CFLAGS+=       -DIPSTATE_SIZE=${IPFILTER_STATE_SIZE}
+.endif
+
 .include <bsd.kmod.mk>

Reply via email to