Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 1 | sbin/Makefile: Allow the sbin path to be configurable |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 3 | Some project sharing ca-certificates from Debian allow configuration |
| 4 | of the installation location. Make the sbin location configurable. |
| 5 | |
| 6 | Also ensure the target directory exists |
| 7 | |
| 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 9 | Upstream-Status: Submitted [https://salsa.debian.org/debian/ca-certificates/-/merge_requests/5] |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | --- ca-certificates-20130119.orig/sbin/Makefile |
| 12 | +++ ca-certificates-20130119/sbin/Makefile |
| 13 | @@ -3,9 +3,12 @@ |
| 14 | # |
| 15 | # |
| 16 | |
| 17 | +SBINDIR = /usr/sbin |
| 18 | + |
| 19 | all: |
| 20 | |
| 21 | clean: |
| 22 | |
| 23 | install: |
| 24 | - install -m755 update-ca-certificates $(DESTDIR)/usr/sbin/ |
| 25 | + install -d $(DESTDIR)$(SBINDIR) |
| 26 | + install -m755 update-ca-certificates $(DESTDIR)$(SBINDIR)/ |