openbsd-ports/archivers/p7zip/patches/patch-install_sh
steven a2610717e5 import p7zip 4.44
p7zip is a port of 7-zip for *nix platforms.
7-zip is a file archiver with a high compression ratio.

from Josh Grosse <josh at jggimi.homeip.net> and
Stuart Henderson <stu at spacehopper.org>

with testing, feedback, and ok from naddy@
2007-04-20 17:50:05 +00:00

36 lines
1.1 KiB
Plaintext

$OpenBSD: patch-install_sh,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
--- install.sh.orig Tue Jun 27 23:09:12 2006
+++ install.sh Wed Jan 10 19:27:47 2007
@@ -1,14 +1,14 @@
#! /bin/sh
# global install
-DEST_HOME=/usr/local
+DEST_HOME=${PREFIX}
# for testing
# DEST_HOME=${HOME}/INSTALL/usr/local
DEST_BIN=${DEST_HOME}/bin
DEST_SHARE=${DEST_HOME}/lib/p7zip
DEST_SHARE_DOC=${DEST_HOME}/share/doc/p7zip
DEST_MAN=${DEST_HOME}/man
-DEST_DIR=
+DEST_DIR=${DESTDIR}
[ "$1" ] && DEST_BIN=$1
[ "$2" ] && DEST_SHARE=$2
[ "$3" ] && DEST_MAN=$3
@@ -163,10 +163,10 @@ fi
if [ -d DOCS ]
then
- echo "- installing HTML help in ${DEST_DIR}${DEST_SHARE_DOC}/DOCS"
+ echo "- installing HTML help in ${DEST_DIR}${DEST_SHARE_DOC}"
mkdir -p ${DEST_DIR}${DEST_SHARE_DOC}
- cp -r DOCS ${DEST_DIR}${DEST_SHARE_DOC}/DOCS
- find ${DEST_DIR}${DEST_SHARE_DOC}/DOCS -type d -exec chmod 555 {} \;
- find ${DEST_DIR}${DEST_SHARE_DOC}/DOCS -type f -exec chmod 444 {} \;
+ cp -r DOCS/* ${DEST_DIR}${DEST_SHARE_DOC}
+ find ${DEST_DIR}${DEST_SHARE_DOC} -type d -exec chmod 555 {} \;
+ find ${DEST_DIR}${DEST_SHARE_DOC} -type f -exec chmod 444 {} \;
fi