git: 42e904d02c66 - main - security/pwned-check: use pkg-message to show message on remove
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 12:58:30 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=42e904d02c6695123d22aaeddfccb3d0863a2831 commit 42e904d02c6695123d22aaeddfccb3d0863a2831 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-07-27 12:50:33 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-07-27 12:50:33 +0000 security/pwned-check: use pkg-message to show message on remove --- security/pwned-check/Makefile | 3 +++ security/pwned-check/files/pkg-message.in | 12 ++++++++++++ security/pwned-check/pkg-deinstall | 15 --------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/security/pwned-check/Makefile b/security/pwned-check/Makefile index 19f0878214d7..72057c2e2450 100644 --- a/security/pwned-check/Makefile +++ b/security/pwned-check/Makefile @@ -11,6 +11,9 @@ COMMENT= Check whether password is known to have been exposed in a data breach LICENSE= BSD2CLAUSE +SUB_FILES= pkg-message +SUB_LIST= PORTNAME=${PORTNAME} + NO_ARCH= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/src diff --git a/security/pwned-check/files/pkg-message.in b/security/pwned-check/files/pkg-message.in index e12280d612c2..4a11c095cbc6 100644 --- a/security/pwned-check/files/pkg-message.in +++ b/security/pwned-check/files/pkg-message.in @@ -13,5 +13,17 @@ The installation procedure will fetch 6 GB of compressed data and will temporarily need 18 GB of free space in that directory and 13 GB when the installation is complete. EOM +}, +{ type : remove + message: <<EOM +------------------------------------------------------------------------------ + +If you are no longer using the %%PORTNAME%% port, then manually delete +the following directory and all its contents: + + /var/db/%%PORTNAME%% + +------------------------------------------------------------------------------ +EOM } ] diff --git a/security/pwned-check/pkg-deinstall b/security/pwned-check/pkg-deinstall deleted file mode 100644 index 0d1e7d2dba0e..000000000000 --- a/security/pwned-check/pkg-deinstall +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -PORTNAME=${1%-*} - -[ "$2" = DEINSTALL ] && cat <<***EOM ------------------------------------------------------------------------------- - -If you are no longer using the $PORTNAME port, then manually delete -the following directory and all its contents: - - /var/db/$PORTNAME - ------------------------------------------------------------------------------- -***EOM -exit 0