On Sat, 2 Nov 2013 17:09:33 +0000 (UTC) Christian Weisgerber wrote: > Tijl Coosemans <[email protected]> wrote: > > > Try something like this in pkg-plist: > > > > @unexec rm -d /var/foo 2>/dev/null || true > > @exec install -d -o uucp -g uucp -m 0770 /var/foo > > > > The directory is created on installation and removed (if empty) on > > deletion, but is not actually part of the package archive. > > @exec install -d -o uucp -g uucp -m 0770 /var/spool/bsmtp > @unexec rmdir /var/spool/bsmtp 2>/dev/null || true > > ===> 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 is why I used rm -d instead of rmdir. The pkg tools recognise rmdir and treat it in a special way. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[email protected]"
