summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 10:57:52 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-29 10:57:52 +0000
commitd26f08f1adf0fd58c64bc4ae96b587bf25333f00 (patch)
treee8de09a7a1c6dbf339b170bbccbda9cfc162d0e2
parent8625e1118f1c2555059a5883d109c984491b405d (diff)
web commit by HenrikBrixAndersen: Add patch for using install(1) instead of cp(1) for installing files
-rw-r--r--doc/bugs/Use_install__40__1__41___instead_of_cp__40__1__41___for_installing_files.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/bugs/Use_install__40__1__41___instead_of_cp__40__1__41___for_installing_files.mdwn b/doc/bugs/Use_install__40__1__41___instead_of_cp__40__1__41___for_installing_files.mdwn
new file mode 100644
index 000000000..25d0ef3c1
--- /dev/null
+++ b/doc/bugs/Use_install__40__1__41___instead_of_cp__40__1__41___for_installing_files.mdwn
@@ -0,0 +1,21 @@
+Currently ikiwiki uses cp(1) with GNU extensions in Makefile.PL for installing files, thus causing problems on FreeBSD which doesn't have a cp(1) with GNU extentions in the base system.
+
+Here is a patch againt ikiwiki-1.51 for using find(1) and install(1) instead of cp(1).
+
+ --- Makefile.PL.orig Sun Apr 29 12:57:51 2007
+ +++ Makefile.PL Sun Apr 29 13:08:38 2007
+ @@ -47,8 +47,12 @@ extra_clean:
+
+ extra_install:
+ install -d $(DESTDIR)$(PREFIX)/share/ikiwiki
+ - find basewiki templates \( -type f -or -type l \) ! -regex '.*\.svn.*' \
+ - -exec cp --parents -aL {} $(DESTDIR)$(PREFIX)/share/ikiwiki \;
+ + for dir in `find -L basewiki templates -type d ! -regex '.*\.svn.*'`; do \
+ + install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \
+ + for file in `find -L $$dir -maxdepth 1 -type f`; do \
+ + install -m 644 $$file $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \
+ + done; \
+ + done
+
+ install -d $(DESTDIR)$(PREFIX)/share/man/man1
+ install -m 644 ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1