2001-12-09 03:28:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
[ $# != 2 ] && exit 1
|
|
|
|
PKGNAME=$1
|
|
|
|
ACTION=$2
|
|
|
|
|
2001-12-10 02:50:42 +01:00
|
|
|
FILES_DELETE="bin/ppc386 etc/ppc386.cfg etc/ppc386.cfg.orig"
|
|
|
|
|
2001-12-09 03:28:27 +01:00
|
|
|
LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}
|
|
|
|
|
2001-12-10 02:50:42 +01:00
|
|
|
CHMOD=/bin/chmod
|
2001-12-09 03:28:27 +01:00
|
|
|
LN=/bin/ln
|
2001-12-10 02:50:42 +01:00
|
|
|
RM=/bin/rm
|
2001-12-09 03:28:27 +01:00
|
|
|
SH=/bin/sh
|
|
|
|
|
|
|
|
case "$ACTION" in
|
|
|
|
|
|
|
|
POST-INSTALL)
|
2001-12-10 02:50:42 +01:00
|
|
|
${CHMOD} 0555 ${LIBDIR}/ppc386
|
|
|
|
${CHMOD} 0555 ${LIBDIR}/samplecfg
|
|
|
|
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
|
|
|
${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
2001-12-09 03:28:27 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
DEINSTALL)
|
2001-12-10 02:50:42 +01:00
|
|
|
for file in ${FILES_DELETE}
|
|
|
|
do
|
|
|
|
if [ -f ${PKG_PREFIX}/${file} ]; then
|
|
|
|
${RM} ${PKG_PREFIX}/${file}
|
|
|
|
fi
|
|
|
|
done
|
2001-12-09 03:28:27 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
PRE-INSTALL|POST-DEINSTALL)
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit
|