blob: b46e88c76f3cb9a266184bc5535bdf3b34243b15 (
plain)
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
|
From 485a453d2ae5700874a57dffc297030254b5ae7c Mon Sep 17 00:00:00 2001
From: BlackEagle <ike.devolder@gmail.com>
Date: Mon, 4 Nov 2019 09:00:54 +0100
Subject: [PATCH] DEFPATH not created so touch fails
```
touch /build/atop/pkg/atop/etc/default/atop
touch: cannot touch '/build/atop/pkg/atop/etc/default/atop': No such file or directory
```
Add DEFPATH mkdir in genericinstall to make sure the folder
`$(DESTDIR)/etc/default` exits
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 929b0d7..a662fd6 100644
--- a/Makefile
+++ b/Makefile
@@ -140,6 +140,8 @@ sysvinstall: genericinstall
genericinstall: atop atopacctd atopconvert
if [ ! -d $(DESTDIR)$(LOGPATH) ]; \
then mkdir -p $(DESTDIR)$(LOGPATH); fi
+ if [ ! -d $(DESTDIR)$(DEFPATH) ]; \
+ then mkdir -p $(DESTDIR)$(DEFPATH); fi
if [ ! -d $(DESTDIR)$(BINPATH) ]; \
then mkdir -p $(DESTDIR)$(BINPATH); fi
if [ ! -d $(DESTDIR)$(SBINPATH) ]; \
|