Skip to content

Commit

Permalink
security/cvechecker: use pkg-message to show message on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Jul 27, 2022
1 parent 47d4287 commit 7f7b639
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions security/cvechecker/Makefile
Expand Up @@ -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

Expand Down
@@ -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
}
]

0 comments on commit 7f7b639

Please sign in to comment.