summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-09-14 12:26:58 -0400
committerJameson Rollins <jrollins@finestructure.net>2010-09-14 12:26:58 -0400
commitc130b480b6e0d327a15f9da9d89ede7f58da32d1 (patch)
treedab2c28bb11716eae45b5addc9ff8fee5f3c765f /Makefile
parent5de80495d5f73f712f084069c1a7afa6ec2daae4 (diff)
fix specification of install directories in top level scripts.
Various install paths were hard coded in the top level scripts. This was causing problems for non-standard install locations. Also added use of LOCALSTATEDIR variable to specify /var/lib path.
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6644927..4afec91 100755
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ ETCPREFIX ?=
ETCSUFFIX ?=
PREFIX ?= /usr
MANPREFIX ?= $(PREFIX)/share/man
+LOCALSTATEDIR ?= /var/lib
# nothing actually needs to be built now.
all:
@@ -41,7 +42,13 @@ install: all installman
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/monkeysphere
printf "Monkeysphere %s\n" $(MONKEYSPHERE_VERSION) > $(DESTDIR)$(PREFIX)/share/monkeysphere/VERSION
install src/monkeysphere $(DESTDIR)$(PREFIX)/bin
- install src/monkeysphere-host src/monkeysphere-authentication $(DESTDIR)$(PREFIX)/sbin
+ sed -i 's:__SYSSHAREDIR_PREFIX__:$(DESTDIR)$(PREFIX):' $(DESTDIR)$(PREFIX)/bin/monkeysphere
+ install src/monkeysphere-host $(DESTDIR)$(PREFIX)/sbin
+ sed -i 's:__SYSSHAREDIR_PREFIX__:$(DESTDIR)$(PREFIX):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-host
+ sed -i 's:__SYSDATADIR_PREFIX__:$(DESTDIR)$(LOCALSTATEDIR):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-host
+ install src/monkeysphere-authentication $(DESTDIR)$(PREFIX)/sbin
+ sed -i 's:__SYSSHAREDIR_PREFIX__:$(DESTDIR)$(PREFIX):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-authentication
+ sed -i 's:__SYSDATADIR_PREFIX__:$(DESTDIR)$(LOCALSTATEDIR):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-authentication
install src/monkeysphere-authentication-keys-for-user $(DESTDIR)$(PREFIX)/share/monkeysphere
install -m 0644 src/share/common $(DESTDIR)$(PREFIX)/share/monkeysphere
install -m 0644 src/share/defaultenv $(DESTDIR)$(PREFIX)/share/monkeysphere