blob: 3c2d73a96eb419ee646448bfc696644243850023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
$NetBSD: patch-ab,v 1.2 2007/01/25 01:11:06 uebayasi Exp $
--- src/Makefile.in.orig 2006-12-27 23:10:08.000000000 +0900
+++ src/Makefile.in
@@ -32,9 +32,11 @@ INSTALL_TYPE = @INSTALL_TYPE@
SCM_INSTALL_DIR = $(libdir)
SCRIPT_INSTALL_DIR = $(bindir)
KAHUA_STATICDIR = @KAHUA_STATICDIR@
-SOCKET_BASE_DIR = $(prefix)/tmp/$(package)
+SOCKET_BASE_DIR = $(localstatedir)/tmp/$(package)
TMP_BASE_DIR = $(localstatedir)/tmp
KAHUA_VERSION = $(shell cat $(top_srcdir)/VERSION)
+EG_DIR = $(datarootdir)/examples/$(package)
+SKEL_DIR = $(datadir)/skel
MAKE_SH_SCRIPT = $(GOSH) $(top_srcdir)/src/make-script.scm "$(GOSH)" "$(libdir)"
@@ -150,7 +152,7 @@ clean:
rm -rf $(TESTENV_DIR)
install: all
- $(INSTALL) -m 0755 -d $(sysconfdir) $(libexecdir)
+ $(INSTALL) -m 0755 -d $(sysconfdir) $(libexecdir) $(SKEL_DIR)
$(INSTALL) $(KAHUA_GROUP_OPTION) -m 0775 -d $(localstatedir)
$(INSTALL) $(KAHUA_GROUP_OPTION) -m 0770 -d $(localstatedir)/checkout $(localstatedir)/logs
$(INSTALL) $(KAHUA_USER_OPTION) $(KAHUA_GROUP_OPTION) -m 0770 -d $(SOCKET_BASE_DIR) $(TMP_BASE_DIR)
@@ -159,21 +161,15 @@ install: all
fi
$(INSTALL) -m 0444 -T $(SCM_INSTALL_DIR) -S $(srcdir) $(SCMFILES)
$(INSTALL) -m 0555 -T $(SCRIPT_INSTALL_DIR) $(SH_SCRIPTS)
- @if test ! -f $(sysconfdir)/kahua.conf; then \
- $(INSTALL) -m 0644 kahua.conf $(sysconfdir)/kahua.conf; \
- fi
+ $(INSTALL) -m 0644 kahua.conf $(EG_DIR)/kahua.conf
@if test ! -f $(localstatedir)/user.conf; then \
$(INSTALL) $(KAHUA_GROUP_OPTION) -m 0660 user.conf.sample $(localstatedir)/user.conf; \
fi
- @if test -d $(sysconfdir)/skel; then \
- rm -rf $(sysconfdir)/skel.bak; \
- mv $(sysconfdir)/skel $(sysconfdir)/skel.bak; \
- fi
- @if test ! -d $(sysconfdir)/skel; then \
- cp -R ../skel $(sysconfdir)/skel; \
- mv $(sysconfdir)/skel/TEMPLATE_DIST $(sysconfdir)/skel/DIST; \
- mv $(sysconfdir)/skel/TEMPLATE_DIST_EXCLUDE $(sysconfdir)/skel/DIST_EXCLUDE; \
+ @if test -f ../skel/TEMPLATE_DIST; then \
+ mv ../skel/TEMPLATE_DIST ../skel/DIST; \
+ mv ../skel/TEMPLATE_DIST_EXCLUDE ../skel/DIST_EXCLUDE; \
fi
+ cp -R ../skel/* $(SKEL_DIR)
uninstall:
$(INSTALL) -U $(SCM_INSTALL_DIR) -S $(srcdir) $(SCMFILES)
|