summaryrefslogtreecommitdiffstats
path: root/lang/fpc-devel/pkg-install
blob: a41e51a808527352995538e4999fa79579eaf11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# $FreeBSD$

[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2

LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}

LN=/bin/ln
SH=/bin/sh

case "$ACTION" in

POST-INSTALL)
		@${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
		@${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
	;;

DEINSTALL)
	;;

PRE-INSTALL|POST-DEINSTALL)
	;;

*)
	exit 1
	;;
esac

exit
OpenPOWER on IntegriCloud