Skip to content

Conversation

@ddpbsd
Copy link
Member

@ddpbsd ddpbsd commented Dec 16, 2018

Taken directly from issue #1570
Should help packagers.

This could use more testing, but it worked in the few things I tried.

From @mobstef in issue ossec#1570:
"The FreeBSD build servers create binary packages from ports as non-root user. It is therefore essential, that the Makefile allows installation as non-root user too. The problem with current Makefile is that it explicitly references "root" user and "0" group. Additionally it sets permission on certain directories to 550 and later writes to them, which is possible by root, but not as an unprivileged user. The best solution I came up with is to replace every invocation of "install" command by a macro, that by default sets mode and ownership of files as it used to be ("INSTALL_CMD"). If anybody needs to skip permission and ownership setting, he just need to set "INSTALL_CMD=install"."
@atomicturtle atomicturtle merged commit 4da7333 into ossec:master Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants