Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 03:51:57 -0000
From:      James Quick <jq@quick.com>
To:        pf4freebsd@freelists.org
Subject:   [pf4freebsd] Patch to pf/Makefile 
Message-ID:  <18E25BB4-F287-11D7-ADF9-003065C496DC@quick.com>

next in thread | raw e-mail | index | archive | help
The pf Makefile does not correctly build WITH_RANDOM_ID.
The problem is a mistakenly transposed .if .else expression.

p.s. I only learned about this package this weekend.
I've been an ipfilter user on 4.x and 5.x for 4 years or
so, but am new to pf.  I have deployed in test mode on
5_1_RELENG, and have a couple of pf configuration
questions.  I have read the openbsd pf faq pages, the
man pages, and the resources listed on this project's web site.
Can I ask the questions here? If not I would appreciate being
pointed to appropriate resources.



*** pf/Makefile.orig       Wed Sep 24 07:48:44 2003
--- pf/Makefile    Mon Sep 29 09:52:11 2003
***************
*** 43,51 ****

   opt_random_ip_id.h:
   .if defined(WITH_RANDOM_ID) && (${WITH_RANDOM_ID} =3D=3D "yes")
-       echo > opt_random_ip_id.h
- .else
         echo "#define RANDOM_IP_ID 1" > opt_random_ip_id.h
   .endif

   .include <bsd.kmod.mk>
--- 43,51 ----

   opt_random_ip_id.h:
   .if defined(WITH_RANDOM_ID) && (${WITH_RANDOM_ID} =3D=3D "yes")
         echo "#define RANDOM_IP_ID 1" > opt_random_ip_id.h
+ .else
+       echo > opt_random_ip_id.h
   .endif

   .include <bsd.kmod.mk>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18E25BB4-F287-11D7-ADF9-003065C496DC>