git: 9833cc142d63 - main - www/privatebin: 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:32 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9833cc142d63ccaa1cfc3acf095c6ce907f8280a
commit 9833cc142d63ccaa1cfc3acf095c6ce907f8280a
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-07-27 12:56:09 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-07-27 12:56:09 +0000
www/privatebin: use pkg-message to show message on remove
---
www/privatebin/Makefile | 4 ++++
www/privatebin/{pkg-deinstall => files/pkg-message.in} | 17 ++++++++---------
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/www/privatebin/Makefile b/www/privatebin/Makefile
index 742b3b78be95..683071fd9fef 100644
--- a/www/privatebin/Makefile
+++ b/www/privatebin/Makefile
@@ -1,5 +1,6 @@
PORTNAME= privatebin
PORTVERSION= 1.4.0
+PORTREVISION= 1
CATEGORIES= www security
MAINTAINER= dvl@FreeBSD.org
@@ -10,6 +11,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= cpe php
+SUB_FILES= pkg-message
+SUB_LIST= PORTNAME=${PORTNAME}
+
NO_BUILD= yes
NO_ARCH= yes
diff --git a/www/privatebin/pkg-deinstall b/www/privatebin/files/pkg-message.in
similarity index 55%
rename from www/privatebin/pkg-deinstall
rename to www/privatebin/files/pkg-message.in
index 0d1e7d2dba0e..1aaf3b9a6955 100644
--- a/www/privatebin/pkg-deinstall
+++ b/www/privatebin/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
+}
+]