aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:53:47 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:59:48 +0000
commit5c8b0736fb28ac194e1c1f90639fcf8ee6ee3ad6 (patch)
treeb9ba584eae82e73f98db24edc2ef8aaf65286129
parent839dbcc4328b5cf011f89f8d2355ff8767336c1b (diff)
mail/nullmailer: remove useless pkg-deinstall
pkg does not allow interractive script, so the pkg-deinstall script is never run
-rw-r--r--mail/nullmailer/Makefile1
-rw-r--r--mail/nullmailer/files/pkg-deinstall.in44
2 files changed, 1 insertions, 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