On 10/20/2014 08:40 AM, Douglas J Hunley wrote:
> I've noticed that newer releases of systemd unconditionally create
> /var/log/journal if it doesn't exist. I'm getting tired of nuking this
> directory after every upgrade of systemd. I know how to configure
> Portage to not overwrite config files, but is there an option to _not_
> create a directory if it exists? Yes, I could edit the "Storage" line
> journald.conf but thinking bigger picture (for when some other package
> starts doing this) I'm curious if Portage can be told not to do this.
> Thanks.
> 

man make.conf:

  INSTALL_MASK = [space delimited list of file names]
    Use this variable if you want  to  selectively  prevent  certain
    files  from  being copied into your file system tree.  This does
    not work on symlinks, but only on actual files.  Useful  if  you
    wish  to  filter  out  files  like  HACKING.gz  and TODO.gz. The
    INSTALL_MASK is processed just before a package is merged.  Also
    supported  is  a  PKG_INSTALL_MASK variable that behaves exactly
    like INSTALL_MASK except that it is processed just  before  cre‐
    ation of a binary package.

Honestly I don't know if it works on empty directories, but give it a shot.


Reply via email to