Building Ports w/ Options, Env

Rachel Florentine rachel_florentine at yahoo.com
Mon Nov 13 18:50:10 UTC 2006


Hi;
Would someone kindly simply edit the following, if that's possible (if I'm not too far off how it should be done) so that I can have an example of how to build OpenLDAP with the options and env I want?

Here's what I have so far. I don't know if it's correct or not...

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
    ],
  }

TIA,
Rachel






More information about the freebsd-questions mailing list