blob: 12953535800a77e7a2fc59bdbfbde4b70c98a4ce (
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
|
$NetBSD: patch-Makefile.PL,v 1.6 2019/08/31 21:32:13 schmonz Exp $
Avoid -regex, not available in OpenBSD find(1).
Set example SYSCONFDIR separately.
--- Makefile.PL.orig 2019-02-26 23:01:54.000000000 +0000
+++ Makefile.PL
@@ -20,6 +20,7 @@ SED?=sed
# Additional configurable path variables.
W3M_CGI_BIN?=$(PREFIX)/lib/w3m/cgi-bin
SYSCONFDIR?=/etc/ikiwiki
+SYSCONFDIR_EXAMPLES?=$(PREFIX)/share/examples/ikiwiki
MANDIR?=$(PREFIX)/share/man
tflag=$(shell if [ -n "$$NOTAINT" ] && [ "$$NOTAINT" != 1 ]; then printf -- "-T"; fi)
@@ -140,11 +141,11 @@ underlay_install:
extra_install: underlay_install
# Install example sites.
set -e; \
- for dir in `$(FIND) doc/examples -type d ! -regex '.*discussion.*' | $(SED) -e 's|^doc/examples/||'`; do \
+ for dir in `$(FIND) doc/examples -type d ! -name discussion | $(SED) -e 's|^doc/examples/||'`; do \
install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/examples/$$dir; \
done
set -e; \
- for file in `$(FIND) doc/examples -type f ! -regex '.*discussion.*' | $(SED) -e 's|^doc/examples/||'`; do \
+ for file in `$(FIND) doc/examples -type f ! -name discussion.mdwn | $(SED) -e 's|^doc/examples/||'`; do \
if ! cp -pRL doc/examples/$$file $(DESTDIR)$(PREFIX)/share/ikiwiki/examples/$$file 2>/dev/null; then \
install -m 644 doc/examples/$$file $(DESTDIR)$(PREFIX)/share/ikiwiki/examples/$$file; \
fi; \
@@ -195,10 +196,10 @@ extra_install: underlay_install
# These might fail if a regular user is installing into a home
# directory.
- -install -d $(DESTDIR)$(SYSCONFDIR)
- -install -m 0644 wikilist $(DESTDIR)$(SYSCONFDIR)
- -install -m 0644 auto.setup $(DESTDIR)$(SYSCONFDIR)
- -install -m 0644 auto-blog.setup $(DESTDIR)$(SYSCONFDIR)
+ -install -d $(DESTDIR)$(SYSCONFDIR_EXAMPLES)
+ -install -m 0644 wikilist $(DESTDIR)$(SYSCONFDIR_EXAMPLES)
+ -install -m 0644 auto.setup $(DESTDIR)$(SYSCONFDIR_EXAMPLES)
+ -install -m 0644 auto-blog.setup $(DESTDIR)$(SYSCONFDIR_EXAMPLES)
# The git/hg plugins want to chdir; so does Devel::Cover. Skip those tests
# to stop them hurting each other.
|