1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/x11-fm/xplore/pkg-install
Pav Lucistnik 067051860d Add xplore, an Explorer-like Motif based file manager.
Besides the usual tree and file views, it also have "shelf" inspired
by the NeXT file manager, and a log pane for capturing output of
launched programs.

PR:		ports/55540
Submitted by:	Albert Graef <Dr.Graef@t-online.de>
2003-12-17 22:29:08 +00:00

41 lines
819 B
Bash

#!/bin/sh
#
# Pre/post-installation setup of xplore
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PREFIX:-${PKG_PREFIX:-/usr/X11R6}}
LIBDIR=${PREFIX}/lib/X11/xplore
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d ${LIBDIR}/shelf ]; then
mkdir ${LIBDIR}/shelf
mkdir ${LIBDIR}/shelf/Clipboard
mkdir ${LIBDIR}/shelf/Desk
mkdir ${LIBDIR}/shelf/Programs
mkdir ${LIBDIR}/shelf/Trash
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0