blob: 443174df498d048eb363827dd1b6a5d4d4adfef3 (
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
|
#!/bin/sh
#
# $FreeBSD: head/net/boinc-client/files/pkg-install.in 325489 2013-08-27 21:37:47Z rene $
#
PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin
user=%%BOINC_CLIENT_USER%%
group=%%BOINC_CLIENT_GROUP%%
home="%%BOINC_CLIENT_HOME%%"
option_manager=%%OPTION_MANAGER%%
option_user=%%OPTION_USER%%
case $2 in
POST-DEINSTALL)
if [ -n "${option_user}" ] ; then
if [ -n "${option_manager}" -a -e "${home}/skins" -a `readlink "${home}/skins"` = "%%PREFIX%%/share/boinc/skins" ]; then
rm -f "${home}/skins"
fi
if [ -e "${home}/ca-bundle.crt" -a `readlink "${home}/ca-bundle.crt"` = "%%LOCALBASE%%/share/certs/ca-root-nss.crt" ]; then
rm -f "${home}/ca-bundle.crt"
fi
rmdir "${home}" >/dev/null 2>&1
fi
;;
esac
exit 0
|