1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/archivers/p7zip/files/7z
FUJISHIMA Satsuki a3154e38e8 update to 4.13.
o Ressurect pkg-plist to support to make modules optional. 25 lines
  out of 31 are wrapped with %%MODULES%% which can be controlled by
  WITHOUT_MODULES knob. The modules support more codecs and formats
  than stand-alone binary.
o Install 7za to libexec and wrap it with script to support sfx
  creation. 7za and .sfx should be placed in the same directory as 7z
  and modules do.
o Wrapper script executes corresponding binary (7z or 7za.)
  In WITHOUT_MODULES case, it can be called by 7z or 7za but always
  executes 7za. This is compatible action for previous port.
o Turn BROKEN to IGNORE. There is no hope to compile this software in
  RELENG_4. And correct quotation for this change.

Approved by:	maintainer
2004-12-28 02:46:57 +00:00

10 lines
203 B
Bash

#! /bin/sh
PROGNAME=${0##*/}
BINPATH=$(dirname $(realpath $0))/../libexec/p7zip
if [ $PROGNAME = "7z" -a ! -x "$BINPATH/7z" -a -x "$BINPATH/7za" ]; then
PROGNAME=7za
fi
exec "$BINPATH/$PROGNAME" "$@"