Date: Wed, 27 Jul 2022 12:58:29 GMT From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 7f7b639967bf - main - security/cvechecker: use pkg-message to show message on remove Message-ID: <202207271258.26RCwT7X042426@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=7f7b639967bf2ed951fe80e5db9789e29ed5e5e8 commit 7f7b639967bf2ed951fe80e5db9789e29ed5e5e8 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-07-27 12:45:46 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-07-27 12:45:46 +0000 security/cvechecker: use pkg-message to show message on remove --- security/cvechecker/Makefile | 2 ++ .../cvechecker/{pkg-deinstall => files/pkg-message.in} | 17 ++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/security/cvechecker/Makefile b/security/cvechecker/Makefile index d679273b93df..243196c47c00 100644 --- a/security/cvechecker/Makefile +++ b/security/cvechecker/Makefile @@ -14,6 +14,8 @@ LIB_DEPENDS= libargp.so:devel/argp-standalone \ RUN_DEPENDS= bash:shells/bash MAKE_ENV+= LDADD=-largp +SUB_FILES= pkg-message +SUB_LIST= PORTNAME=${PORTNAME} USES= autoreconf pkgconfig shebangfix diff --git a/security/cvechecker/pkg-deinstall b/security/cvechecker/files/pkg-message.in similarity index 55% rename from security/cvechecker/pkg-deinstall rename to security/cvechecker/files/pkg-message.in index 0d1e7d2dba0e..120cae96ee68 100644 --- a/security/cvechecker/pkg-deinstall +++ b/security/cvechecker/files/pkg-message.in @@ -1,15 +1,14 @@ -#!/bin/sh - -PORTNAME=${1%-*} - -[ "$2" = DEINSTALL ] && cat <<***EOM +[ +{ type : remove + message: <<EOM ------------------------------------------------------------------------------ -If you are no longer using the $PORTNAME port, then manually delete +If you are no longer using the %%PORTNAME%% port, then manually delete the following directory and all its contents: - /var/db/$PORTNAME + /var/db/%%PORTNAME%% ------------------------------------------------------------------------------ -***EOM -exit 0 +EOM +} +]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207271258.26RCwT7X042426>