]> scripts.mit.edu Git - www/ikiwiki.git/blob - doc/bugs/install_into_home_dir_fails.mdwn
response
[www/ikiwiki.git] / doc / bugs / install_into_home_dir_fails.mdwn
1 dunno if it just me, but I had to add PREFIX a few places to get 'perl INSTALL_BASE=$HOME' to work
2
3 > That will cause the files to be installed into a place that ikiwiki
4 > doesn't look for them. It will also cause them to be installed into
5 > /usr/etc by default, where ikiwiki also won't find them. 
6
7 > Thomas Keller also ran into some sort of problem with the MacPort
8 > involving the installation into /etc. From that discussion:
9
10 > Both ikiwiki-update-wikilist and ikiwiki-mass-rebuild hardcode /etc; so
11 > do several pages in the doc wiki.
12
13 > The real problem though is that MakeMaker does not have a standard way
14 > of specifying where /etc files go. In Debian we want everything to go
15 > into /usr, rather than the default /usr/local, so set PREFIX=/usr -- but
16 > we still want config files in /etc, not /usr/etc. The only way I can see
17 > around this is to add a nonstandard variable to control the location of
18 > /etc, that would override the PREFIX.
19
20 > Which implies that you can't just use "$installdir/etc/" in the /etc
21 > hardcoding scripts, and would instead need to record the new variable
22 > at build time, like PREFIX is recorded in $installdir.
23 >
24 > --[[Joey]]
25
26 <pre>
27 From a1e02fbdaba3725730418a837b506e713904ada5 Mon Sep 17 00:00:00 2001
28 From: David Bremner <bremner@pivot.cs.unb.ca>
29 Date: Fri, 29 Aug 2008 15:18:24 -0300
30 Subject: [PATCH] add missing $(PREFIX) to install path
31
32 ---
33  Makefile.PL |    6 +++---
34  1 files changed, 3 insertions(+), 3 deletions(-)
35
36 diff --git a/Makefile.PL b/Makefile.PL
37 index 979483c..1f27394 100755
38 --- a/Makefile.PL
39 +++ b/Makefile.PL
40 @@ -50,9 +50,9 @@ extra_clean:
41         $(MAKE) -C po clean
42
43  extra_install:
44 -       install -d $(DESTDIR)/etc/ikiwiki
45 -       install -m 0644 wikilist $(DESTDIR)/etc/ikiwiki
46 -       install -m 0644 auto.setup $(DESTDIR)/etc/ikiwiki
47 +       install -d $(DESTDIR)$(PREFIX)/etc/ikiwiki
48 +       install -m 0644 wikilist $(DESTDIR)$(PREFIX)/etc/ikiwiki
49 +       install -m 0644 auto.setup $(DESTDIR)$(PREFIX)/etc/ikiwiki
50
51         install -d $(DESTDIR)$(PREFIX)/share/ikiwiki
52         for dir in `cd underlays && find . -follow -type d ! -regex '.*\.svn.*'`; do \
53 --
54 1.5.6.3
55 </pre>