git: 6c0c974b5bbc - main - security/pks: use pkg-message to show message on remove
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Jul 2022 14:27:22 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6c0c974b5bbc2b3f1e4a86ed3c97c17d4e9d573e
commit 6c0c974b5bbc2b3f1e4a86ed3c97c17d4e9d573e
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-07-27 14:12:37 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-07-27 14:27:12 +0000
security/pks: use pkg-message to show message on remove
---
security/pks/Makefile | 3 ++-
security/pks/files/pkg-deinstall.in | 25 -------------------------
security/pks/files/pkg-message.in | 11 +++++++++++
3 files changed, 13 insertions(+), 26 deletions(-)
diff --git a/security/pks/Makefile b/security/pks/Makefile
index 37d5a568f46a..ee844db05803 100644
--- a/security/pks/Makefile
+++ b/security/pks/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pks
PORTVERSION= 0.9.6.20040312
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= security www
MASTER_SITES= http://pks.sourceforge.net/ LOCAL/mandree
DISTFILES= pks-current.tgz
@@ -31,6 +31,7 @@ CONFIGURE_ENV= DBLIB="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \
DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h
SUB_FILES= pkg-message
+SUB_LIST= PORTNAME="${PORTNAME}"
OPTIONS_DEFINE= DOCS
PORTDOCS= pks_help.* README EMAIL
diff --git a/security/pks/files/pkg-deinstall.in b/security/pks/files/pkg-deinstall.in
deleted file mode 100644
index 9d424a24855e..000000000000
--- a/security/pks/files/pkg-deinstall.in
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-PKGNAME=$1
-STAGE=$2
-
-case ${STAGE} in
-DEINSTALL)
- ;;
-POST-DEINSTALL)
- cat << EOF
-===========================================================================
-If you won't be using ${PKGNAME} any longer, you may want to remove the
-following directories and files:
-
- %%PREFIX%%/etc/pksd.conf
- /var/pks
-===========================================================================
-EOF
- ;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
- ;;
-esac
-exit 0
diff --git a/security/pks/files/pkg-message.in b/security/pks/files/pkg-message.in
index feb4dbff8c2d..68e9f9701430 100644
--- a/security/pks/files/pkg-message.in
+++ b/security/pks/files/pkg-message.in
@@ -37,5 +37,16 @@ Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable this ser
man 8 pksclient
EOM
+},
+{ type: remove
+ message: <<EOM
+===========================================================================
+If you won't be using %%PORTNAME%% any longer, you may want to remove the
+following directories and files:
+
+ %%PREFIX%%/etc/pksd.conf
+ /var/pks
+===========================================================================
+EOM
}
]