Le 05/06/2012 12:00, Baptiste Daroussin a écrit :
On Tue, Jun 05, 2012 at 11:10:19AM +0200, Arnaud Houdelette wrote:
Hello.
I'm currently testing pkgng and poudriere as a replacement for old pkg
and pkg_jail.
When upgrading/reinstalling a port, pkg install / pkg upgrade resets the
permissions of the directories created by the ports which already exist.
Old pkg_add did not have this behavior.
For example,
- install lighttpd
- chmod 750 /var/log/lighttpd
- pkg install -f lighttpd
=> /var/log/lighttpd mode is reset to 700.
Is this behavior correct ? Is there some option to avoid this ?
Arnaud
This is expected and there is no way to avoid this but fixing the ports itself
so that it create a 750 package.
The package should be consistent and the permission should be set at the
package creation
time.
Of course my view here might be wrong and I'm all open for aguments against that
:D
regards,
Bapt
I think it's understandable at install time, but not at reinstall /
upgrade time. It complicates binary upgrade process, which is what I
thougth pkgng was intended to make easier.
User should not be forced to reapply permissions after each upgrade,
even more if said user is not responsible of package creation (i.e. use
of freebsd.org repo).
Moreover, this is not consistant with make install behavior, which does
not overides permisions if directory already exists.
Maybe make an option of this ?
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"