From nobody Tue Apr 16 07:36:11 2024 X-Original-To: pkgbase@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 4VJbSh3HNhz5G2s7 for ; Tue, 16 Apr 2024 07:36:20 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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 "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJbSh06l4z4q58 for ; Tue, 16 Apr 2024 07:36:19 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; none Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 43G7aBuY047299; Tue, 16 Apr 2024 00:36:18 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1713252978; x=1713253578; r=y; bh=iBs+gB6RsownjbXeEBsENqHj2/2KJ1aazjcaOD/UCcQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=wLW1/H6oox857rYodsJwSGhf7cYMdhfTzeEbhaVaZJEB60DoJFW2iVaxP1OPHUdmC JQCPzHqKPRDlKyFXneouY+ZS4ZZubC+JizDZl3Q9D1Sl6mKn6iaWV6UDkoqNc8y6TF ULMVm0z3rkK8FivQl7yejnSO4bjjTnhPejX0bnOJ1PxTt1QLbvHrgf+fOkg/tCW+XW Kx847PUPgCIqTbfM8RpDVrMEHOUGyDKAQ6HZAJWaLlTtZt0OnOpjj78wgAcnPyBEmU qCdYh3QU/npYm1fdkspbPIhqJiWDXC1dl9LiasMd9yW5Qd6seZVjq3O9nZOcKFr4BG DIH6RQYpsfRtQ== List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 Date: Tue, 16 Apr 2024 00:36:11 -0700 From: Chris To: Lexi Winter Cc: pkgbase@freebsd.org Subject: Re: mailwrapper * In-Reply-To: References: User-Agent: UDNSMS/17.0 Message-ID: <333569ac5ddd2549c026c97dfcc376a8@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US] X-Rspamd-Queue-Id: 4VJbSh06l4z4q58 On 2024-04-15 12:32, Lexi Winter wrote: > hello, > > i am working on a patch for mailwrapper, which i'd like to move from > FreeBSD-utilities to its own package. however i'm a little stymied by > usr.sbin/mailwrapper/Makefile[0], which seems to do a few fairly odd > things for the benefit of src users, such as linking mailwrapper to > either dma or sendmail if mailwrapper itself isn't built. > > i'd like to significantly simplify the logic here so that if mailwrapper > is enabled (${MK_MAILWRAPPER} == yes), it's always installed in the > usual place, and doesn't pretend to be dma or sendmail, and there is no > special handling depending on the value of ${MK_SENDMAIL} and > ${MK_DMAGENT}. > > this might require some changes to either sendmail or dma (which of > course i'd test before submitting anything), but in principle, does this > sound like a reasonable idea? > > i am concious that many/most people don't use pkgbase yet and we > shouldn't break things for them, but this seems like an ideal to time to > clean up some of this legacy stuff. As I read it, and use it; mailwrapper(8) simply *assumes* that there is *some* default (based on available options) MTA already installed, and points to it as needed. The sendmail/dma stuff is there as a system isn't really complete if one can't send mail. How had you intended to improve the process? Strictly speaking; this process could probably just as easily be accomplished with a shell script living in /usr/(local/)libexec. Had you a specific direction in mind? > > [0] https://cgit.freebsd.org/src/tree/usr.sbin/mailwrapper/Makefile --Chris