From nobody Wed Jul 27 12:58:32 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LtDNn36VKz4XSkC; Wed, 27 Jul 2022 12:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LtDNn0XkVz3TnT; Wed, 27 Jul 2022 12:58:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658926713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhYEoFeTW3asRYBkQMI+uSd36EIE1FQn4yLHH5S4UUc=; b=hLa5ne6wyctq6PXS6R23QBQd7RZjQWJnhbb1OnVGq9mw56Gx0EvxuLeNwliBlP4WAqomOc TPe6asTkh8IwOXjVqS0r018yb4veajapJYhaKY00p9d9z8k4QoIrkaWHfF0z8ZmqeMCaMw WswB/aw9BMTn+had7fkz8caHfMON/z9tIVygVBP2dtjG/zzdhqSuY1vYS2Z4JUTNB2Ar7X iPjFtpxR9v25pbUWJkkAQBJg46GYLkgkvUdD3JjL2dIVhfiAtT+4rq7JKXaLLN9am5+0es G+T0l8a/8ctG30PmDDQUKmm5sukzauXCt4Dm/lVZ9Kz5IblGyx+O0L06c9g47A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LtDNm6m9SzHkh; Wed, 27 Jul 2022 12:58:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26RCwWfP042506; Wed, 27 Jul 2022 12:58:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RCwWxE042505; Wed, 27 Jul 2022 12:58:32 GMT (envelope-from git) Date: Wed, 27 Jul 2022 12:58:32 GMT Message-Id: <202207271258.26RCwWxE042505@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 9833cc142d63 - main - www/privatebin: use pkg-message to show message on remove List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9833cc142d63ccaa1cfc3acf095c6ce907f8280a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658926713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UhYEoFeTW3asRYBkQMI+uSd36EIE1FQn4yLHH5S4UUc=; b=bTYVipR2EV8If9oWbTvr9Hqw3IGE9XES7vloefBa9OkG7olt/OCBbbqH0iqz5xU/Q7kwDo BYj6hGTyJ11Bhdsb+CDRIiWDIjtvIbM75U4beCmjO8LZNdEM+wvbrwTeSd3Xgb6arCkVwr ioG2tl+eeHpqxu4idCUML7eA5FixwUp0A2Koe6CsKWP7oWOvaqYbpU+UCl6pXyv8d3cYlH vi0JE9f2oE3uEciE8uYreV/uLVPS2h8kvvKjO8Y5vDeDQpMwfOOTlJifwQfOVf7VwDYcmy 0ml8vEmHzX5mc491U/xrXnFbxydhMsAWfo1bVZLS48HA41JCgv7QT/SP62CuKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658926713; a=rsa-sha256; cv=none; b=iY5C5B/ODTdCrFQN//o4y3aBcUkWbThWvJ3NmH8KSrjTKunUl45ZxyWoeJ0wlDETZMYloV M4753bFYGG0oGafuB4A5bIgXLoDILio/iRDjjmq/B1xEiFljQAv9YpXVi/P2/7p86eCt+w YrrYFplAjEWGz3VLvAk8faMGnIWCoBetQFRbr/LCu3wJ+2okde7KqtlDFnLH7TYlytru7K K6EN/XGb1G+z9ivm9OASfQJRTs4Ck9zMbavy5Y7U0lyl+mS+TG7bKQaT1C+cWpANbt9VRk ljxe7RQZYPH/0ut0iDKNAU8/s0S09957TBp7cM8XQQPfhOCudgODqtMGI8pV5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=9833cc142d63ccaa1cfc3acf095c6ce907f8280a commit 9833cc142d63ccaa1cfc3acf095c6ce907f8280a Author: Baptiste Daroussin AuthorDate: 2022-07-27 12:56:09 +0000 Commit: Baptiste Daroussin 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: <