45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
|
From b2f1bf78400c686bbdbcf4c29fbbb93367abe409 Mon Sep 17 00:00:00 2001
|
||
|
From: =?utf-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
||
|
Date: Wed, 25 Mar 2009 09:36:08 +0100
|
||
|
Subject: [PATCH] fix location of the library
|
||
|
|
||
|
---
|
||
|
Makefile | 7 +++----
|
||
|
1 files changed, 3 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/Makefile b/Makefile
|
||
|
index 669b6c6..d395fa8 100644
|
||
|
--- a/Makefile
|
||
|
+++ b/Makefile
|
||
|
@@ -20,7 +20,8 @@ INSTALL=install
|
||
|
VERSION=2.0.4
|
||
|
|
||
|
# the path to the .so
|
||
|
-SRC_VIPA_PATH=$(INSTROOT)/usr/lib
|
||
|
+LIBDIR=/usr/lib
|
||
|
+SRC_VIPA_PATH=$(INSTROOT)$(LIBDIR)
|
||
|
# the path to the starter script
|
||
|
SRC_VIPA_STARTER_PATH=$(INSTROOT)/usr/sbin
|
||
|
# path to man page
|
||
|
@@ -34,8 +35,7 @@ src_vipa.so: src_vipa.c
|
||
|
|
||
|
src_vipa.sh:
|
||
|
echo '#!/bin/bash' > src_vipa.sh
|
||
|
- echo 'export LD_LIBRARY_PATH=$(SRC_VIPA_PATH):$$LD_LIBRARY_PATH' >> src_vipa.sh
|
||
|
- echo 'export LD_PRELOAD=$(SRC_VIPA_PATH)/src_vipa.so' >> src_vipa.sh
|
||
|
+ echo 'export LD_PRELOAD=$(LIBDIR)/src_vipa.so' >> src_vipa.sh
|
||
|
echo 'exec $$@' >> src_vipa.sh
|
||
|
chmod 755 src_vipa.sh
|
||
|
|
||
|
@@ -44,7 +44,6 @@ install: src_vipa.so src_vipa.sh
|
||
|
$(INSTALL) -m 755 src_vipa.so $(SRC_VIPA_PATH)
|
||
|
$(INSTALL) -m 755 src_vipa.sh $(SRC_VIPA_STARTER_PATH)
|
||
|
$(INSTALL) -m 644 src_vipa.8 $(SRC_VIPA_MANPAGE_PATH)/man8
|
||
|
- ldconfig
|
||
|
|
||
|
clean:
|
||
|
rm -f src_vipa.{i,s,o,sh,so} core src_vipa-$(VERSION).tar.gz
|
||
|
--
|
||
|
1.6.0.6
|
||
|
|