Date: 7 Mar 2000 22:11:14 -0000 From: keramida@ceid.upatras.gr To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17254: mailwrapper links & NO_SENDMAIL=yes Message-ID: <20000307221114.88866.qmail@hades.hell.gr>
next in thread | raw e-mail | index | archive | help
>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 <keramida@ceid.upatras.gr> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000307221114.88866.qmail>