pkgsrc/www/kahua/patches/patch-ab
uebayasi 3f276b07ea o Use CONF_FILES appropriately.
o Install kahua-package skelton files into share/kahua/skel.
2007-01-25 01:11:06 +00:00

53 lines
2.2 KiB
Text

$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)