net-mgmt/pmacct/Makefile and OPTIONS

Chris Timmons cwt at networks.cwu.edu
Wed Aug 10 05:53:20 GMT 2005


I've found that the <bsd.port.pre.mk> must occur before the OPTIONS 
assignment, otherwise the expected "WITH_xxxxx and "WITHOUT_xxxxx" will 
not be defined as expected for the make.

In the case of pmacct on my 5-Stable system, up-to-date in both world and 
ports, the MMAP and LAYER2 options are actually defaulting to off until 
you move the include to occur above OPTIONS=

Regards,

-Chris

--- Makefile.orig       Tue Aug  9 16:26:26 2005
+++ Makefile    Tue Aug  9 16:26:36 2005
@@ -20,12 +20,12 @@
  USE_GETOPT_LONG=yes
  USE_REINPLACE= yes

+.include <bsd.port.pre.mk>
+
  OPTIONS=       MYSQL "Enable MySQL support." Off \
                 PGSQL "Enable PostgreSQL support." Off \
                 MMAP  "Enable mmap(2) support." On \
                 LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On
-
-.include <bsd.port.pre.mk>

  .if defined(WITH_MYSQL)
  USE_MYSQL=     yes



More information about the freebsd-ports mailing list