aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pacman/files
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-25 02:55:48 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-25 02:55:48 +0000
commit5f9ab5f5f35c7954d1f1e659cfe81dec15fb985f (patch)
tree87e3d65104502ae13ffb417952f6c11e46a56003 /sysutils/pacman/files
parentd6ccebdcc51bf1bd80f7a594259289cb4c804c9b (diff)
downloadports-5f9ab5f5f35c7954d1f1e659cfe81dec15fb985f.tar.gz
ports-5f9ab5f5f35c7954d1f1e659cfe81dec15fb985f.zip
Notes
Diffstat (limited to 'sysutils/pacman/files')
-rw-r--r--sysutils/pacman/files/pkg-deinstall.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/pacman/files/pkg-deinstall.in b/sysutils/pacman/files/pkg-deinstall.in
new file mode 100644
index 000000000000..ea2c787b84a6
--- /dev/null
+++ b/sysutils/pacman/files/pkg-deinstall.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+case $2 in
+POST-DEINSTALL)
+ if find /var/lib/pacman /var/cache/pacman %%PACMAN_ROOT%% -type f 2>/dev/null | head -1 | grep -q ''; then
+ echo ""
+ echo "To completely remove the port, please remove the following"
+ echo "directories and the content manualy if its no longer needed:"
+ echo ""
+ echo " %%PACMAN_ROOT%%"
+ echo " /var/cache/pacman"
+ echo " /var/lib/pacman"
+ echo ""
+ fi
+ ;;
+esac