summaryrefslogtreecommitdiffstats
path: root/source/n/ca-certificates/patches/fixup_DESTDIR.diff
blob: 964064184626513909845f1396bcad687b8fce44 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- ./cacert.org/Makefile.orig
+++ ./cacert.org/Makefile
@@ -7,6 +7,7 @@
 clean:
 
 install:
+	mkdir -p $(CERTSDIR)
 	for p in *.crt; do \
 	 install -m 644 $$p $(CERTSDIR)/cacert.org_$$p ; \
 	done
--- ./mozilla/Makefile.orig
+++ ./mozilla/Makefile
@@ -9,6 +9,7 @@
 	-rm -f *.crt
 
 install:
+	mkdir -p $(CERTSDIR)
 	for p in *.crt; do \
 	 install -m 644 $$p $(CERTSDIR)/$$p ; \
 	done
--- ./sbin/Makefile.orig
+++ ./sbin/Makefile
@@ -8,4 +8,5 @@
 clean:
 
 install:
+	mkdir -p $(DESTDIR)/usr/sbin
 	install -m755 update-ca-certificates $(DESTDIR)/usr/sbin/
--- ./Makefile.orig
+++ ./Makefile
@@ -17,7 +17,7 @@
 
 install:
 	for dir in $(SUBDIRS); do \
-	  mkdir $(DESTDIR)/$(CERTSDIR)/$$dir; \
+	  mkdir -p $(DESTDIR)/$(CERTSDIR)/$$dir; \
 	  $(MAKE) -C $$dir install CERTSDIR=$(DESTDIR)/$(CERTSDIR)/$$dir; \
 	done
 	for dir in sbin; do \
--- ./spi-inc.org/Makefile.orig
+++ ./spi-inc.org/Makefile
@@ -7,6 +7,7 @@
 clean:
 
 install:
+	mkdir -p $PKG/$(CERTSDIR)
 	for p in *.crt; do \
 	 install -m 644 $$p $(CERTSDIR)/$$p ; \
 	done