Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 22:14:31 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: How to reference /var/foo in pkg-plist?
Message-ID:  <l51947$2f85$1@lorvorc.mips.inka.de>
References:  <l4eive$e4e$1@lorvorc.mips.inka.de> <CACdU%2Bf9iy2bmv6yxyGyDoEODqfk38oGVTGqxHPEFJgr4cASuQg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Scot Hetzel <swhetzel@gmail.com> wrote:

> >   @exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp /var/spool/bsmtp
> >   @dirrmtry /var/spool/bsmtp
> >
> The correct way to handle this is to have the port create
> ${STAGEDIR}/var/spool/bsmtp.  This could be created in the
> post-install target or in the ${WRKSRC}/Makefile

Okay, but how do I package this directory then?  What entry would
I put in pkg-plist?

Hmm, actually, this

  @owner uucp
  @group uucp
  @mode 770
  @dirrmtry /var/spool/bsmtp
  @mode
  @group
  @owner

produces the desired entry in the package's tar archive

drwxrwx---  0 uucp   uucp        0 Nov  1 23:07 /var/spool/bsmtp/

However, I'm not sure if I'm using this as intended or if it just
happens to work out.

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?l51947$2f85$1>