blob: f343ebf16e00b8365c6ef80355aa6468fddff347 [file] [log] [blame]
Andrew Geissler90fd73c2021-03-05 15:25:55 -06001sbin/Makefile: Allow the sbin path to be configurable
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002
Andrew Geissler90fd73c2021-03-05 15:25:55 -06003Some project sharing ca-certificates from Debian allow configuration
4of the installation location. Make the sbin location configurable.
5
6Also ensure the target directory exists
7
8Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9Upstream-Status: Submitted [https://salsa.debian.org/debian/ca-certificates/-/merge_requests/5]
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
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)/