aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:23:31 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:27:13 +0000
commit1c290acab936422796b5874c2cc4c8b3df8de4b6 (patch)
tree6e0949d4fdcafb9756d8778695a704ac0e008886
parent131f741e5a0f18883c97869be63b68367604bc5b (diff)
downloadports-1c290acab936422796b5874c2cc4c8b3df8de4b6.tar.gz
ports-1c290acab936422796b5874c2cc4c8b3df8de4b6.zip
graphics/aoi: use pkg-message to show message on remove
-rw-r--r--graphics/aoi/Makefile4
-rw-r--r--graphics/aoi/files/pkg-deinstall.in15
-rw-r--r--graphics/aoi/files/pkg-message.in12
3 files changed, 14 insertions, 17 deletions
diff --git a/graphics/aoi/Makefile b/graphics/aoi/Makefile
index 73280c3ffffe..d0925702365f 100644
--- a/graphics/aoi/Makefile
+++ b/graphics/aoi/Makefile
@@ -1,6 +1,6 @@
PORTNAME= aoi
PORTVERSION= 3.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= graphics java
MASTER_SITES= SF/${PORTNAME}/ArtOfIllusion/${PORTVERSION} \
SF/${PORTNAME}/ArtOfIllusion-manual/${PORTVERSION}:docs
@@ -25,7 +25,7 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PORTDOCS= *
-SUB_FILES= ${PORTNAME} pkg-deinstall pkg-message
+SUB_FILES= ${PORTNAME} pkg-message
DESKTOP_ENTRIES="Art of Illusion" "3D modelling and rendering studio" \
"${PORTNAME}" "${PORTNAME}" "Graphics;3DGraphics;" ""
diff --git a/graphics/aoi/files/pkg-deinstall.in b/graphics/aoi/files/pkg-deinstall.in
deleted file mode 100644
index a3c5ddb86cd6..000000000000
--- a/graphics/aoi/files/pkg-deinstall.in
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-if [ "$2" = "POST-DEINSTALL" ]; then
- echo ""
- echo ""
- echo "==============================================================================="
- echo ""
- echo "After deinstallation, some files may stay in %%DATADIR%%,"
- echo "you can delete them with"
- echo ""
- echo " /bin/rm -fr %%DATADIR%%"
- echo ""
- echo "==============================================================================="
- echo ""
-fi
diff --git a/graphics/aoi/files/pkg-message.in b/graphics/aoi/files/pkg-message.in
index f7c41e5efb9e..ad537399f030 100644
--- a/graphics/aoi/files/pkg-message.in
+++ b/graphics/aoi/files/pkg-message.in
@@ -19,5 +19,17 @@ and other Sites and put it in:
%%DATADIR%%/Plugins
%%DATADIR%%/Scripts/...
EOM
+},
+{ type: remove
+ message: <<EOM
+===============================================================================
+
+After deinstallation, some files may stay in %%DATADIR%%,
+you can delete them with
+
+ /bin/rm -fr %%DATADIR%%
+
+===============================================================================
+EOM
}
]