Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/cvechecker: use pkg-message to show message on remove
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
security/cvechecker/pkg-deinstall → security/cvechecker/files/pkg-message.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
] |