How to reference /var/foo in pkg-plist?

Christian Weisgerber naddy at mips.inka.de
Fri Oct 25 20:06:15 UTC 2013


For a crufty port of mine that I'm converting to staging, I'm trying
this in pkg-plist:

  @exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp /var/spool/bsmtp
  @dirrmtry /var/spool/bsmtp

Alas, it doesn't package:

  ===>  Building package for bsmtp-1.02_5
  pkg-static: lstat(/usr/ports/mail/bsmtp/work/stage/var/spool/bsmtp/):
  No such file or directory

This isn't meant to reference ${STAGEDIR}/var/spool/bsmtp, I really
want the absolute path /var/spool/bsmtp.  Adding @cwd / doesn't
help.

What's the correct way to handle this?

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de



More information about the freebsd-ports mailing list