From 8b293b2190f273cfc2c2098c9edf9967ce8b63d7 Mon Sep 17 00:00:00 2001 From: kytv <kytv@mail.i2p> Date: Mon, 4 May 2015 13:47:32 +0000 Subject: [PATCH] symlink instead of copying I created this patch a couple of years ago and at that time symlinking (for reasons I don't remember anymore) didn't work. Now it works with symlinks, so let's go with that. (Tested in OpenBSD 5.7) --- installer/resources/i2prouter | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter index a23ed5a65f..8654fd22ae 100644 --- a/installer/resources/i2prouter +++ b/installer/resources/i2prouter @@ -546,13 +546,12 @@ setup_openbsd() { set -e # abort in case of error # Package java-tanukiwrapper-3.5.19.1 misspells 'tanuki' if [ -e "$pkg_path/lib/tanukuwrapper/libwrapper.so" ]; then - cp "$pkg_path/lib/tanukuwrapper/libwrapper.so" "$I2P/lib/libwrapper.so" + ln -sf "$pkg_path/lib/tanukuwrapper/libwrapper.so" "$I2P/lib/libwrapper.so" else # they fixed the path - cp "$pkg_path/lib/tanukiwrapper/libwrapper.so" "$I2P/lib/libwrapper.so" + ln -sf "$pkg_path/lib/tanukiwrapper/libwrapper.so" "$I2P/lib/libwrapper.so" fi - cp "$pkg_path/share/java/classes/tanukiwrapper.jar" "$I2P/lib/wrapper.jar" - cp "$pkg_path/sbin/tanukiwrapper" "$WRAPPER_CMD" - chmod +x "$WRAPPER_CMD" + ln -sf "$pkg_path/share/java/classes/tanukiwrapper.jar" "$I2P/lib/wrapper.jar" + ln -sf "$pkg_path/sbin/tanukiwrapper" "$WRAPPER_CMD" fi set +e } -- GitLab