2004-02-12 07:49:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
[ $# != 2 ] && exit 1
|
|
|
|
PKGNAME=$1
|
|
|
|
ACTION=$2
|
|
|
|
|
2005-05-04 14:53:54 +00:00
|
|
|
FILES_DELETE="pluggerrc-5.1.3.old"
|
2004-02-12 07:49:47 +00:00
|
|
|
|
|
|
|
ETCDIR=${PKG_PREFIX}/etc
|
|
|
|
|
|
|
|
RM=/bin/rm
|
|
|
|
CP=/bin/cp
|
|
|
|
ECHO=/bin/echo
|
|
|
|
|
|
|
|
case "$ACTION" in
|
|
|
|
|
|
|
|
POST-INSTALL)
|
2005-05-04 14:53:54 +00:00
|
|
|
if [ ! -f ${ETCDIR}/pluggerrc-5.1.3 ]; then
|
|
|
|
${CP} ${ETCDIR}/pluggerrc-5.1.3.sample ${ETCDIR}/pluggerrc-5.1.3
|
2004-02-12 07:49:47 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
DEINSTALL)
|
|
|
|
for file in ${FILES_DELETE}
|
|
|
|
do
|
|
|
|
if [ -f ${ETCDIR}/${file} ]; then
|
|
|
|
${RM} ${ETCDIR}/${file}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
|
|
|
|
PRE-INSTALL)
|
|
|
|
${ECHO}
|
2004-07-09 14:01:31 +00:00
|
|
|
${ECHO} "Run ''make local-mozilla-install'' as user to locally"
|
2004-02-12 07:49:47 +00:00
|
|
|
${ECHO} "install plugger for Mozilla"
|
|
|
|
${ECHO}
|
|
|
|
${ECHO} "Run ''make local-opera-install'' as user to locally"
|
|
|
|
${ECHO} "install plugger for Opera"
|
|
|
|
${ECHO}
|
2004-07-09 14:01:31 +00:00
|
|
|
${ECHO} "NOTE: For plugger-oohelper to work, [o|s]office must be"
|
|
|
|
${ECHO} "in the PATH."
|
|
|
|
${ECHO}
|
2004-02-12 07:49:47 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
POST-DEINSTALL)
|
|
|
|
${ECHO}
|
|
|
|
${ECHO} "If you are permanently removing this port,"
|
2005-05-04 14:53:54 +00:00
|
|
|
${ECHO} "you should do a ''rm -f ${ETCDIR}/pluggerrc-5.1.3''"
|
2004-02-12 07:49:47 +00:00
|
|
|
${ECHO} "to remove it."
|
|
|
|
${ECHO}
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit
|