Date: Wed, 27 Jul 2022 14:27:24 GMT From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 88c8cb129858 - main - sysutils/freebsd-snapshot: use pkg-message to show message on remove Message-ID: <202207271427.26REROXv066269@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=88c8cb129858a8d8fd0382d40d46c176e6008174 commit 88c8cb129858a8d8fd0382d40d46c176e6008174 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-07-27 14:20:35 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> 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: <<EOM +If you completly remove this port, do not forget +then remove lines included by you in: + +crontab +periodic.conf +rc.conf + EOM } ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207271427.26REROXv066269>