Simple Question

Rachel Florentine rachel_florentine at yahoo.com
Sat Nov 11 03:58:04 PST 2006


----- Original Message ----
From: Robert Huff <roberthuff at rcn.com>

> Rachel Florentine writes:

>>  Can someone please tell me how to add options to a port build?
>>  For example, I want to rebuild my openldap with something like
>>  this: 
>
>    Start here:
>
>    man make.conf
>    man pkgtools.conf

Hmm. A little confusing, but if I understood it correctly, what I want to do is:

1. Edit /usr/local/etc/pkgtools.conf and enable it to read /usr/local/etc/pkgtools.local
2. Create the local file and add something like this:

  MAKE_ENV = {
    '/usr/ports/net/openldap23-server' => [
    'CC=gcc',
    'CPPFLAGS="-I/usr/local/include/openssl/"'
    'LDFLAGS="-L/usr/local/lib/"'
    ],
  }

That would set up the environment, and might actually be correct as written ;) I'm a whole lot less confident of the following:

  MAKE_ARGS = {
    '/usr/ports/net/openldap23-server'=> [
    '--localstatedir=/var/run/slapd',
    '--enable-spasswd',
etc, etc
    ],

  }



Awaiting your feedback.
TIA,
Rachel







More information about the freebsd-ports mailing list