ports/mail/getmail/patches/patch-getmails

15 lines
415 B
Text
Raw Normal View History

2023-09-08 05:21:37 +00:00
# Fix for use on OpenBSD
2023-08-16 22:26:55 +00:00
Index: getmails
--- getmails.orig
+++ getmails
2023-09-08 05:21:37 +00:00
@@ -38,7 +38,7 @@ isrc() {
[ -f "$1" ] && return 0 || return 1;
2023-08-16 22:26:55 +00:00
}
UID_BY_ID=$(id -u)
-PID_GETMAILS=$(pgrep -U $UID_BY_ID '^getmails$')
+PID_GETMAILS=$(pgrep -f -U $UID_BY_ID '^/bin/sh /usr/local/bin/getmails$')
if [ "x$PID_GETMAILS" != "x$$" ]; then
echo "The getmails script is already running as PID=\"$PID_GETMAILS\" ." >&2
exit 1