make.conf for ports?
Jamie Jones
jamie at host-1737.news.bishopston.net
Mon Sep 27 21:24:26 PDT 2004
> I always need to use certain build options for some ports.
> Like to build mysql using WITH_OPENSSL=yes.
> Is there a way to keep these selections?
> I've noticed some ports write selected options to /var/db/ports.
I think /var/db/ports is used to remember options you select from
a port with an interactive menu of choices, rather than WITH_XXXXX switches.
Anyway, as to your problem, here is a snippet from my /etc/make.conf
If your /etc/make.conf already exists, just add these lines to the end
of it.. Edit as appropriate!
Lines beginning with "#" are obviously comments, and can be left out.
Cheers,
Jamie
# ------------------------------------------------------------------------
# security/snort:
# ~~~~~~~~~~~~~~
.if ${.CURDIR}=="/usr/ports/security/snort"
WITH_MYSQL=yes
WITH_FLEXRESP=yes
.endif
# ------------------------------------------------------------------------
# www/webalizer:
# ~~~~~~~~~~~~~
.if ${.CURDIR}=="/usr/ports/www/webalizer"
WEBALIZER_WITH_GD2=yes
.endif
# ------------------------------------------------------------------------
# databases/mysql:
# ~~~~~~~~~~~~~~~
.if ${.CURDIR}=="/usr/ports/databases/mysql"
DB_DIR=/usr/local/var/db/mysql
SKIP_INSTALL_DB=yes
BUILD_OPTIMIZED=yes
BUILD_STATIC=yes
.endif
# ------------------------------------------------------------------------
More information about the freebsd-ports
mailing list