Modified: CHANGELOG.md Makefile

This commit is contained in:
Erik Westrup
2022-02-06 15:28:56 +01:00
parent 0fc7c29c2f
commit 54e2d17e23
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- `resticw` wrapper for working with different profiles without the need to source the profiles first.
- `$make install` will now make a timestamped backup of any existing `/etc/restic/*` files before installing a newer version.
- `$ make install-systemd` will now make a timestamped backup of any existing `/etc/restic/*` files before installing a newer version.
- `$ make install-cron` for installing the cron-job.
### Changed
- **BREAKING CHANGE** moved systemd installation with makefile from `/etc/systemd/system` to `/usr/lib/systemd/system` as this is what packages should do. This is to be able to simplify the arch [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=restic-systemd-automatic-backup) so that it does not need to do anything else than `make install`.
@@ -17,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# systemctl enable restic-backup@<profile>.timer
```
- **BREAKING CHANGE** moved script installation with makefile from `/usr/local/sbin` to `/sbin` to have a simpler interface to work with `$PREFIX`.
- Renamed top level make install targets. The old `$ make install` is now `$ make install-systemd`
### Fixed
- Installation with custom `PREFIX` now works properly with Make: `$ PREFIX=/usr/local make install` whill now install everything at the expected location. With this, it's easy to use this script as non-root user on e.g. an macOS system.

View File

@@ -104,7 +104,7 @@ uninstall:
install-systemd: install-targets-script install-targets-conf install-targets-systemd
# target: install-cron - Install cron setup.
install-cron: install-targets-cron
install-cron: install-targets-script install-targets-conf install-targets-cron
# Install targets. Prereq build sources as well,
# so that build dir is re-created if deleted.