File: 0004-respect-DESTDIR-variable.patch

package info (click to toggle)
ucspi-tcp 1%3A0.88-13.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,772 kB
  • sloc: ansic: 10,201; makefile: 2,689; python: 604; sh: 168
file content (26 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (4)
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
Description: Make upstream build system respect $(DESTDIR)
 Upstream build system does not make difference between installation
 prefix (named HOME by upstream), embedded in compiled software, and
 installation root $(DESTDIR), making staged install, employed by most
 package managers impossible.
 .
 This patch adjust upstream Makefile to respect $(DESTDIR) variable. To
 configure prefix, use `conf-home' file.
Author: Dmitry Bogatov <KAction@debian.org>
Forwarded: no
Last-Update: 2018-12-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: ucspi-tcp/Makefile
===================================================================
--- ucspi-tcp.orig/Makefile
+++ ucspi-tcp/Makefile
@@ -38,7 +38,7 @@ compile auto-str.c buffer.h readwrite.h
 
 auto_home.c: \
 auto-str conf-home
-	./auto-str auto_home `head -1 conf-home` > auto_home.c
+	./auto-str auto_home $(DESTDIR)/`head -1 conf-home` > auto_home.c
 
 auto_home.o: \
 compile auto_home.c