Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2022 15:00:02 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: 5c8b0736fb28 - main - mail/nullmailer: remove useless pkg-deinstall
Message-ID:  <202207271500.26RF025I008116@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=5c8b0736fb28ac194e1c1f90639fcf8ee6ee3ad6

commit 5c8b0736fb28ac194e1c1f90639fcf8ee6ee3ad6
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-07-27 14:53:47 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-07-27 14:59:48 +0000

    mail/nullmailer: remove useless pkg-deinstall
    
    pkg does not allow interractive script, so the pkg-deinstall script
     is never run
---
 mail/nullmailer/Makefile               |  1 +
 mail/nullmailer/files/pkg-deinstall.in | 44 ----------------------------------
 2 files changed, 1 insertion(+), 44 deletions(-)

diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile
index 7d0c55095e58..edf43baa90f7 100644
--- a/mail/nullmailer/Makefile
+++ b/mail/nullmailer/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nullmailer
 PORTVERSION=	2.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://untroubled.org/nullmailer/ \
diff --git a/mail/nullmailer/files/pkg-deinstall.in b/mail/nullmailer/files/pkg-deinstall.in
deleted file mode 100644
index 1f2d7da63f59..000000000000
--- a/mail/nullmailer/files/pkg-deinstall.in
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-ask() {
-    local question default answer
-
-    question=$1
-    default=$2
-    if [ -z "${PACKAGE_BUILDING}" ]; then
-        read -p "${question} [${default}]? " answer
-    fi
-    if [ x${answer} = x ]; then
-        answer=${default}
-    fi
-    echo ${answer}
-}
-
-yesno() {
-    local dflt question answer
-
-    question=$1
-    dflt=$2
-    while :; do
-        answer=$(ask "${question}" "${dflt}")
-        case "${answer}" in
-        [Yy]*)          return 0;;
-        [Nn]*)          return 1;;
-        esac
-        echo "Please answer yes or no."
-    done
-}
-
-if [ x"$2" = xDEINSTALL ]; then
-    if [ ! -n "$BATCH" ]; then
-	if /bin/ps -axc | /usr/bin/grep -q nullmailer-send; then
-	    if yesno "There are some nullmailer processes running.  Shall I kill them" y; then
-		%%PREFIX%%/etc/rc.d/nullmailer stop
-		sleep 2
-	    else
-		echo "OK ... I hope you know what you are doing."
-	    fi
-	fi
-
-    fi
-fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207271500.26RF025I008116>