From owner-freebsd-bugs Tue Mar 7 15:10: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6C2C537C25E for ; Tue, 7 Mar 2000 15:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA92809; Tue, 7 Mar 2000 15:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24]) by hub.freebsd.org (Postfix) with ESMTP id 0DD4B37BED5 for ; Tue, 7 Mar 2000 15:00:42 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat18.x-treme.gr [212.120.197.210]) by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with SMTP id BAA28422 for ; Wed, 8 Mar 2000 01:00:34 +0200 Received: (qmail 88867 invoked by uid 1001); 7 Mar 2000 22:11:14 -0000 Message-Id: <20000307221114.88866.qmail@hades.hell.gr> Date: 7 Mar 2000 22:11:14 -0000 From: keramida@ceid.upatras.gr Reply-To: keramida@ceid.upatras.gr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17254: mailwrapper links & NO_SENDMAIL=yes Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17254 >Category: bin >Synopsis: mailwrapper links & NO_SENDMAIL=yes >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 7 15:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: The sources of 4.0 as of last night's CVSup [Mar 6, 2000]. >Description: I'm using qmail on 4.0, and the 'make world' thing keeps overwriting the symlink of /usr/sbin/sendmail pointing to the qmail wrapper /var/qmail/bin/sendmail. I've tracked this to the SYMLINKS= line in the Makefile of /usr/src/usr.sbin/mailwrapper/ and tested a small patch that will inhibit the creation of SYMLINKS if NO_SENDMAIL=yes. It doesn't seem to break 'make install' of mailwrapper, but it keeps my link safe from being overwritten. See the included patch below ;) >How-To-Repeat: If you're using qmail, make the link from /usr/sbin/sendmail to point to /var/qmail/bin/sendmail. On your next 'installworld' the link is overwritten with a link to /usr/sbin/mailwrapper. >Fix: --- usr.sbin/mailwrapper/Makefile Wed Dec 29 20:51:36 1999 +++ usr.sbin/mailwrapper.new/Makefile Tue Mar 7 23:59:38 2000 @@ -6,9 +6,11 @@ DPADD+= ${LIBUTIL} LDADD+= -lutil +.if !defined(NO_SENDMAIL) SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ ${BINDIR}/mailwrapper /usr/bin/newaliases \ ${BINDIR}/mailwrapper /usr/bin/mailq +.endif afterinstall: @if [ ! -f ${DESTDIR}/etc/mail/mailer.conf ]; then \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message