Skip to content

build: update installation paths #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 11, 2023

Conversation

tomeon
Copy link
Collaborator

@tomeon tomeon commented Sep 9, 2023

@tomeon
Copy link
Collaborator Author

tomeon commented Sep 9, 2023

Note that the changes from this PR are likely to break downstream package builds.

Summary of changes:

    1. Install the scrip to `$(LIBEXECDIR)/openvpn` rather than
       installing it into a `/bin` directory,
    2. Install the config to `$(DATADIR)/doc/openvpn` rather than
       installing it to the same directory as the script, and
    3. Install the polkit rules into `$(DATADIR)/polkit-1/rules.d`
       rather than installing them to `/etc`.

BREAKING CHANGE: the default `PREFIX` changed (no longer includes
`/bin`).

BREAKING CHANGE: the meaning of `PREFIX` has changed; it is no longer
specific to executable paths.

BREAKING CHANGE: the script now lives in `$(LIBEXECDIR)/openvpn` rather
than in a `/bin` directory.

BREAKING CHANGE: the config file is now installed to
`$(DATADIR)/doc/openvpn/update-systemd-resolved.conf`.  By default, this
is `/usr/local/share/doc/openvpn/update-systemd-resolved.conf`.

BREAKING CHANGE: the generated polkit rules go in
`$(DATADIR)/polkit-1/rules.d/10-update-systemd-resolved.rules`.  By
default, this is
`/usr/local/share/polkit-1/rules.d/10-update-systemd-resolved.rules`.
Rules must be copied or otherwise propagated into
`/etc/polkit-1/rules.d` in order to take effect.
in place of the nonexisting prereq `$(TEMPLATE_RULES_DEST)`.
BREAKING CHANGE: setups that depend on the default `setenv` definition
may break as a result of this change (e.g. if they include the example
`update-systemd-resolved.conf`).
@tomeon tomeon force-pushed the installation-paths-updates branch from 248c756 to 34e63a0 Compare September 11, 2023 13:31
@tomeon
Copy link
Collaborator Author

tomeon commented Sep 11, 2023

Closes #107.

@tomeon tomeon merged commit c79d33e into jonathanio:master Sep 11, 2023
@tomeon tomeon deleted the installation-paths-updates branch September 11, 2023 22:37
@tomeon tomeon mentioned this pull request Sep 11, 2023
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.

1 participant