d8dd01a374
- Sync pkg-install and pkg-deinstall with mail/p5-Mail-Spamassassin PR: ports/120201 Submitted by: TAOKA Fumiyoshi <fmysh at iijmio-mail.jp> (maintainer)
17 lines
322 B
Bash
17 lines
322 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ -d /var/db/spamassassin ]; then
|
|
echo "To delete /var/db/spamassassin, use 'rm -rf /var/db/spamassassin'"
|
|
fi
|
|
|
|
USER=spamd
|
|
|
|
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
|
echo "To delete ${USER} user permanently, use 'rmuser ${USER}'"
|
|
fi
|
|
|
|
exit 0
|