From nobody Wed Jul 27 14:27:24 2022 X-Original-To: dev-commits-ports-all@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 4LtGMK2h7Qz4XhKF; Wed, 27 Jul 2022 14:27:25 +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 4LtGMK0R8Hz3j7f; Wed, 27 Jul 2022 14:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658932045; 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=i5rajWnvzSBX3mdwRvWMvFoJzZxoGAiAKXwzk2Y48h0=; b=nteq17tvsykYjqdwyPvy/jKI5Y90noSI9UZVqZi4xhCWUkj0slE9f1GvtnxP36oiJ/Cj3G 3Xpjb2D7004mnzHMOFVJX2NRc5H/q92fwIohYMuQ4afc390rSGTCuAZAktziB05UdQ7cPO 13mWB5fqEORvkwg3UICjyk+bfb6xBIMbfIrSpEzoqN4WetxVPThKrYXz2CdlpsLcDGPcU8 YDkoVhEhWHnvjbmW4Q9UNGnqG0qLdY61WUAgevq/+v4Smx+2KaOmgZRtuK2yAQ1sOyPRdP WLXsN6kty/yBi3VBWH2ONtIkiQxo5NZPmKm9uwmdQNZ9NOGKx2GNzwlhJvUa+w== 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 4LtGMJ6fK8zKVH; Wed, 27 Jul 2022 14:27:24 +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 26REROxu066270; Wed, 27 Jul 2022 14:27:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26REROXv066269; Wed, 27 Jul 2022 14:27:24 GMT (envelope-from git) Date: Wed, 27 Jul 2022 14:27:24 GMT Message-Id: <202207271427.26REROXv066269@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: 88c8cb129858 - main - sysutils/freebsd-snapshot: use pkg-message to show message on remove List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 88c8cb129858a8d8fd0382d40d46c176e6008174 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658932045; 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=i5rajWnvzSBX3mdwRvWMvFoJzZxoGAiAKXwzk2Y48h0=; b=vGMFF9t6Q/99G8u/rzjhVyIxUBpnInbd2Frjq7cL8EqCbb/nwSPboNM8savroKKgDB5xGg n3hQsA7DllBOvhsxclPhu5NvMDp9jgzn5OnYqdAB8Foksoi8hfVLA5Krh2hL29uM4BD0OX nZa0zfn3cZIoIz9AJsXjaEQanjXzoE/iZuYer1SV4tGbXtIbS6IhHz6NggVzWIdAZwIhVO hY3nZMf91yUtPtsKhtnK9X9uFQgHgFxbM5TcdeMmzQNxoA4wa/LsgAtUrPmC4rxiCQRpcA /lByTKJXv2eiPIUGFrTVEy6pSl00muvjf0f66OgurtHQPzSikDfZKBc2DKgRQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658932045; a=rsa-sha256; cv=none; b=uDuuqCW7AD0/ByAqnV249FALaaaxvZFJw7sEQJfItTTKw0Kx5Syy3aIzPGTt5uoHcV6reD LHOa2BasLBQpWrzAt6NgGLgEiq/Ny5dKkPAXiAAL87qrIGxGqXLMi42IYoIqhlAkZ1egAf XvF/LBZyhfI4BqFHF5CQrgwGdJxkG6qSoHoNUbPmj6XwNocux6sBiJ3JfNcxb4A5KXEoYV wfyXVsOgAeDtuvFD+5o1lnxHSohNenbyfHOoJQhkXaDd0Z0UrK4C1ez0XJvQJRBMjomoya bh7IJrv4Ap5H/RriSsBoD9D18COGBPr5gMwqVR9JFfH8ioK9z2Kuvx+D5tli0Q== 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=88c8cb129858a8d8fd0382d40d46c176e6008174 commit 88c8cb129858a8d8fd0382d40d46c176e6008174 Author: Baptiste Daroussin AuthorDate: 2022-07-27 14:20:35 +0000 Commit: Baptiste Daroussin CommitDate: 2022-07-27 14:27:13 +0000 sysutils/freebsd-snapshot: use pkg-message to show message on remove --- sysutils/freebsd-snapshot/Makefile | 4 ++-- sysutils/freebsd-snapshot/files/pkg-deinstall.in | 13 ------------- sysutils/freebsd-snapshot/files/pkg-message.in | 11 +++++++++++ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/sysutils/freebsd-snapshot/Makefile b/sysutils/freebsd-snapshot/Makefile index f721abcde137..e61b75dd5a25 100644 --- a/sysutils/freebsd-snapshot/Makefile +++ b/sysutils/freebsd-snapshot/Makefile @@ -1,6 +1,6 @@ PORTNAME= freebsd-snapshot DISTVERSION= 20091208.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= https://people.freebsd.org/~rse/dist/ @@ -12,7 +12,7 @@ LICENSE= BSD2CLAUSE NO_BUILD= yes NO_ARCH= yes -SUB_FILES= pkg-message pkg-deinstall +SUB_FILES= pkg-message PLIST_FILES= etc/amd.map.snap man/man8/periodic-snapshot.8.gz \ man/man8/snapshot.8.gz sbin/periodic-snapshot sbin/snapshot diff --git a/sysutils/freebsd-snapshot/files/pkg-deinstall.in b/sysutils/freebsd-snapshot/files/pkg-deinstall.in deleted file mode 100644 index ad85fb081528..000000000000 --- a/sysutils/freebsd-snapshot/files/pkg-deinstall.in +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -case $2 in - POST-DEINSTALL) - echo "If you completly remove this port, do not forget" - echo "then remove lines included by you in:" - echo "" - echo "crontab" - echo "periodic.conf" - echo "rc.conf" - echo "" - ;; -esac diff --git a/sysutils/freebsd-snapshot/files/pkg-message.in b/sysutils/freebsd-snapshot/files/pkg-message.in index a98d6b65f5ad..6abd7b58a218 100644 --- a/sysutils/freebsd-snapshot/files/pkg-message.in +++ b/sysutils/freebsd-snapshot/files/pkg-message.in @@ -27,6 +27,17 @@ Edit your rc.conf and include this: # UFS2/ZFS Snapshot Access amd_enable="YES" amd_flags="-a /.am -c 1800 -w 60 -l syslog /snap %%PREFIX%%/etc/amd.map.snap" +EOM +}, +{ type: remove + message: <