blob: ba0c1bfde8e7f9e5cf8a500000dde563dccf6e12 (
plain) (
blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/sh
# $FreeBSD$
[ $# != 2 ] && exit 1
PKGNAME=$1
ACTION=$2
FILES_DELETE="pluggerrc-5.1.3.old"
ETCDIR=${PKG_PREFIX}/etc
RM=/bin/rm
CP=/bin/cp
ECHO=/bin/echo
case "$ACTION" in
POST-INSTALL)
if [ ! -f ${ETCDIR}/pluggerrc-5.1.5 ]; then
${CP} ${ETCDIR}/pluggerrc-5.1.5.sample ${ETCDIR}/pluggerrc-5.1.5
fi
;;
DEINSTALL)
for file in ${FILES_DELETE}
do
if [ -f ${ETCDIR}/${file} ]; then
${RM} ${ETCDIR}/${file}
fi
done
;;
PRE-INSTALL)
${ECHO}
${ECHO} "Run ''make local-mozilla-install'' as user to locally"
${ECHO} "install plugger for Mozilla"
${ECHO}
${ECHO} "Run ''make local-opera-install'' as user to locally"
${ECHO} "install plugger for Opera"
${ECHO}
${ECHO} "NOTE: For plugger-oohelper to work, [o|s]office must be"
${ECHO} "in the PATH."
${ECHO}
;;
POST-DEINSTALL)
${ECHO}
${ECHO} "If you are permanently removing this port,"
${ECHO} "you should do a ''rm -f ${ETCDIR}/pluggerrc-5.1.5''"
${ECHO} "to remove it."
${ECHO}
;;
*)
exit 1
;;
esac
exit
|