From nobody Tue May 09 08:32:31 2023 X-Original-To: dev-commits-ports-main@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 4QFrxq4Xbfz49tbq; Tue, 9 May 2023 08:32:31 +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 4QFrxq2MY9z43r3; Tue, 9 May 2023 08:32:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683621151; 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=IUwHkH+wbdGwX/UwmS/04iOgjGSgevyIrJbURntaVEA=; b=yOqTd3UByGH47lok9BhFeqFT2LzFKTuoNb0hDFVFfHEm9kRODlp5g3huXg+5JIStopu/a1 6HsTOQGmKRmsdQQ9W+3GdyedfUr1SYuhwlsGq8ZBTIfyNA1Nk3oBWukLMqSJDHcvPqW+f3 Y0ZGwrWLTSXlosqsVxxmP/13pc1t3qk568Ep+zntmjOU//J37UGhjCw/6x17gRq8wl/CfV 8TImdZsAc2uoLLgORC3u9A6cZnDlfHEEcAZ5In2xk15hMPMlUpoG1QCU0egbCEL/4Na+Hh pZju/Yk18Qu9f+crKlaLYimWzXeeIEYkCaxJu7MHreSZ5Ex1h4yJMo54O2SQXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683621151; 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=IUwHkH+wbdGwX/UwmS/04iOgjGSgevyIrJbURntaVEA=; b=Lt0JCHUpaYSM/buKhT4v2EbwynW0KQRNqeaoZGPX3tF59L6AGHzGdLILMT9bJv0GV7Kk4v ffixeflzQjqpEhlo7SnXnhvFuQPyAjbE9QLfbR3YbFZaOyoVtc1ZRWWqDlOfPPBq08iPv6 uqplFw70+LjYUQlbxuGxOydd2YrncusgHy5U1eXED6is8Uaa4UP77HMy51dtJGeXXEGgzm GllW5rZt24Mk0SMMrLedL4m1jvWvH6NonEQXtKt208raViHk1W2igtCzukxuaP2HvuSDyG 60F3P37SSqsu+srwcpm0DHtOrqQZhlaQuwwskdvNIKeIKz7xMa8DSA0JBFYIhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683621151; a=rsa-sha256; cv=none; b=RcV2TYmBT8gOTJl1z4T6Z6brS2HQuuPv+PmJISKFUuUbAMi3eVcnPX+d1L0zG/cyV1wp6x EQjVOAQvGHnoxTPrfAg4QUNaMjjnt/H7c3qTxpXr7WTSj9Lky5DTPwN+n07BEhMTOt3uPV grKxBn3K0dh249SH68osiD3ojb6ZtQGx5tBaI45QhQR1xL73aIHi247YUo/rnAAEVtHicR 27blIlKJeeDEbFIviC3Ovvdep2Ls2C19LP9sXqa2S9qOQq140+CWgLRPvhLl3gQUBTY+rI +EPkXiTDzSg5X3zP/qc8uk9P/EZCsTL8mLUfIToBkbGX6rUsNwrhLSrI4RG6qA== 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 4QFrxq1T1BzLB0; Tue, 9 May 2023 08:32:31 +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 3498WVkO038962; Tue, 9 May 2023 08:32:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3498WVk6038961; Tue, 9 May 2023 08:32:31 GMT (envelope-from git) Date: Tue, 9 May 2023 08:32:31 GMT Message-Id: <202305090832.3498WVk6038961@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 60abf2a4fd7b - main - mail/queue-repair: fix patch and refactor List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 60abf2a4fd7b6dce1a7447259e2145cd3a243c8b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=60abf2a4fd7b6dce1a7447259e2145cd3a243c8b commit 60abf2a4fd7b6dce1a7447259e2145cd3a243c8b Author: Robert Clausecker AuthorDate: 2023-05-08 12:55:50 +0000 Commit: Robert Clausecker CommitDate: 2023-05-09 08:27:49 +0000 mail/queue-repair: fix patch and refactor - remove stray shebang, (q)nofiles changes from patch file (I ran makepatch, which picked up REINPLACE_CMD changes) - replace homegrown REINPLACE_CMD with USES=shebangfix - set NO_ARCH=yes, NO_BUILD=yes - express options-dependent commands in more declarative manner Fixes: 809ff8bfc9d4b3221ed5c5329d70d40ba3c8e900 Reported by: danfe Approved by: portmgr (build fix, infrastructure blanket) MFH: 2023Q2 --- mail/queue-repair/Makefile | 24 +++++++++++------------- mail/queue-repair/files/patch-queue__repair.py | 15 --------------- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/mail/queue-repair/Makefile b/mail/queue-repair/Makefile index 451c4b9f79fe..11b4937f5e53 100644 --- a/mail/queue-repair/Makefile +++ b/mail/queue-repair/Makefile @@ -1,6 +1,6 @@ PORTNAME= queue-repair PORTVERSION= 0.9.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail python MASTER_SITES= http://pyropus.ca/software/${PORTNAME}/ @@ -10,7 +10,11 @@ WWW= http://pyropus.ca/software/queue-repair/ LICENSE= GPLv2 -USES= python +USES= python shebangfix +SHEBANG_FILES= queue_repair.py + +NO_ARCH= yes +NO_BUILD= yes OPTIONS_DEFINE= DOCS QMAIL_PORT OPTIONS_DEFAULT= QMAIL_PORT @@ -18,25 +22,19 @@ QMAIL_PORT_DESC= Depend on qmail port QMAIL_PORT_USES= qmail:run -.include - PLIST_FILES= bin/queue-repair PORTDOCS= BLURB CHANGELOG TODO -do-build: - ${REINPLACE_CMD} -e 's,^#!/usr/bin/python,#!${PYTHON_CMD},' \ - ${WRKSRC}/queue_repair.py -.if ${PORT_OPTIONS:MQMAIL_PORT} +do-configure-QMAIL_PORT-on: ${REINPLACE_CMD} -e 's,nofiles,qnofiles,' ${WRKSRC}/queue_repair.py -.endif do-install: ${INSTALL_SCRIPT} ${WRKSRC}/queue_repair.py ${STAGEDIR}${PREFIX}/bin/queue-repair -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} -. for f in ${PORTDOCS} +.for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} -. endfor -.endif +.endfor .include diff --git a/mail/queue-repair/files/patch-queue__repair.py b/mail/queue-repair/files/patch-queue__repair.py index e6bbfde3be65..28da582a4410 100644 --- a/mail/queue-repair/files/patch-queue__repair.py +++ b/mail/queue-repair/files/patch-queue__repair.py @@ -2,21 +2,6 @@ https://bz-attachments.freebsd.org/attachment.cgi?id=242009 --- queue_repair.py.orig 2003-10-22 15:54:13 UTC +++ queue_repair.py -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/local/bin/python3.9 - '''queue_repair.py - qmail tools in Python. - Copyright (C) 2001 Charles Cazabon - -@@ -58,7 +58,7 @@ users = { - - groups = { - 'qmail' : None, -- 'nofiles' : None, -+ 'qnofiles' : None, - } - - dirs = { @@ -66,24 +66,24 @@ dirs = { # key: pathname - all paths are relative to conf-qmail # data: (user, group, mode, split)