summaryrefslogtreecommitdiff
path: root/debian/patches/0004-respect-DESTDIR-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0004-respect-DESTDIR-variable.patch')
-rw-r--r--debian/patches/0004-respect-DESTDIR-variable.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/0004-respect-DESTDIR-variable.patch b/debian/patches/0004-respect-DESTDIR-variable.patch
new file mode 100644
index 0000000..614ff6b
--- /dev/null
+++ b/debian/patches/0004-respect-DESTDIR-variable.patch
@@ -0,0 +1,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