]> saetta.ns0.it Git - libzakcgi/commitdiff
Debian pkg: patch for DESTDIR support.
authorAndrea Zagli <azagli@libero.it>
Sun, 22 May 2016 10:19:41 +0000 (12:19 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 22 May 2016 10:19:41 +0000 (12:19 +0200)
debian/libzakcgi.install
debian/patches/0001-DESTDIR-support.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

index 3ddde584198421f0d2a3fef9d36cc110f3b8b76d..ecc1988562287eda1ccb8a116961e33c8196a20a 100644 (file)
@@ -1 +1,2 @@
 usr/lib/*/lib*.so.*
+usr/lib/*/libzakform/modules/*
diff --git a/debian/patches/0001-DESTDIR-support.patch b/debian/patches/0001-DESTDIR-support.patch
new file mode 100644 (file)
index 0000000..2e41ec1
--- /dev/null
@@ -0,0 +1,32 @@
+From: Andrea Zagli <azagli@libero.it>
+Date: Sun, 22 May 2016 11:09:20 +0200
+Subject: DESTDIR support.
+
+---
+ src/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 51b4a6a..d309397 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -6,7 +6,7 @@ libmodulesext = .so
+ libmodulesdir = $(libdir)
+ endif
+-libzakformmodulesdir = `pkg-config --variable=modulesdir libzakform`
++libzakformmodulesdir = $(DESTDIR)`pkg-config --variable=modulesdir libzakform`
+ LIBS = $(ZAKCGI_LIBS)
+@@ -56,8 +56,8 @@ libzakcgi_include_HEADERS = \
+ libzakcgi_includedir = $(includedir)/libzakcgi
+ install-exec-hook:
+-      cd $(libzakformmodulesdir) && \
+-      ln -s -f $(libmodulesdir)/libzakcgi$(libmodulesext) .
++      mkdir -p $(libzakformmodulesdir)
++      ln -s -f -t $(libzakformmodulesdir) $(libmodulesdir)/libzakcgi$(libmodulesext)
+ uninstall-hook:
+       rm -f $(libzakformmodulesdir)/libzakcgi$(libmodulesext)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..c779459
--- /dev/null
@@ -0,0 +1 @@
+0001-DESTDIR-support.patch