[Bug 192083] new port: net-p2p/syncthing

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 4 05:53:38 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192083

--- Comment #8 from John Marino <marino at FreeBSD.org> ---
Yes, they absolutely have to be addressed.

Plus, you can't have this:

post-install:
    ${MKDIR} ${STAGEDIR}/var/db/{PORTNAME}


This would only work for source builds, it won't work for binary packages.  You
have to be /var/* creation in pkg-plist or it has to happen in post-install
script.  And it needs to be removed as well (also in pkg-plist or
port-deinstall script)

I would recommend moving to a pkg-plist (away from PLIST_FILES=).

Search pkg-plis from other ports that do this: 
grep for "@unexec mkdir -p", "@unexec rmdir"

There are lots of examples.  Oh, and obnoxiously, you actually do need to
create "${MKDIR} ${STAGEDIR}/var/db/{PORTNAME}" in install (not post-install)
even though the pkg-plist creates it later.  That's actually a workaround for a
check.

/var directories are a PITA
There's no easy plist keyword for this (yet).

Anyway, play with and keep going until either check-plist is happy or you just
can't figure it out and need more help.  There might be something about this in
handbook as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list