git: 536675537f23 - main - www/piwigo: use pkg-message to show message on remove
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 14:27:28 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=536675537f23aee4d51bac4e5c85ba34f3023605 commit 536675537f23aee4d51bac4e5c85ba34f3023605 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-07-27 14:26:01 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-07-27 14:27:14 +0000 www/piwigo: use pkg-message to show message on remove --- www/piwigo/Makefile | 3 ++- www/piwigo/files/pkg-deinstall.in | 20 -------------------- www/piwigo/files/pkg-message.in | 8 ++++++++ 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/www/piwigo/Makefile b/www/piwigo/Makefile index 768416713f50..770bd3136939 100644 --- a/www/piwigo/Makefile +++ b/www/piwigo/Makefile @@ -1,5 +1,6 @@ PORTNAME= piwigo DISTVERSION= 12.3.0 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://piwigo.org/download/dlcounter.php?code=${PORTVERSION}&/ @@ -17,7 +18,7 @@ USE_PHP= ctype dom exif filter gd hash iconv json mbstring mysqli \ NO_ARCH= yes NO_BUILD= yes -SUB_FILES= pkg-deinstall pkg-message +SUB_FILES= pkg-message SUB_LIST+= CHOWN="${CHOWN}" \ CP="${CP}" \ MKDIR="${MKDIR}" \ diff --git a/www/piwigo/files/pkg-deinstall.in b/www/piwigo/files/pkg-deinstall.in deleted file mode 100644 index ca60490f25f8..000000000000 --- a/www/piwigo/files/pkg-deinstall.in +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/sh - -PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin - -WEBAPP_DIR="%%WWWDIR%%" -ECHO_CMD="echo" - -post-deinstall() { - ${ECHO_CMD} "WARNING: If you intend *NOT* use this package anymore," - ${ECHO_CMD} " you may need to remove the following directory manually:" - ${ECHO_CMD} " ${WEBAPP_DIR}" - ${ECHO_CMD} " and delete the application database." - ${ECHO_CMD} -} - -case $2 in - POST-DEINSTALL) - post-deinstall - ;; -esac diff --git a/www/piwigo/files/pkg-message.in b/www/piwigo/files/pkg-message.in index d8c414397746..49a5d823d382 100644 --- a/www/piwigo/files/pkg-message.in +++ b/www/piwigo/files/pkg-message.in @@ -38,5 +38,13 @@ A typical configuration would be: For installation and upgrade information, check the readme file. EOM +}, +{ type: remove + message: <<EOM +WARNING: If you intend *NOT* use this package anymore, + you may need to remove the following directory manually: + %%WWWDIR%% + and delete the application database. +EOM } ]