Bug 118139 - [PATCH] port mail/qmail-scanner: Makefile: QS_NOTIFY not correctly passed to configure
Summary: [PATCH] port mail/qmail-scanner: Makefile: QS_NOTIFY not correctly passed to ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 22:10 UTC by Rainer Schwarze
Modified: 2007-12-15 22:30 UTC (History)
0 users

See Also:


Attachments
file.diff (377 bytes, patch)
2007-11-19 22:10 UTC, Rainer Schwarze
no flags Details | Diff
qscanner.diff (735 bytes, patch)
2007-11-20 13:33 UTC, Felippe de Meirelles Motta
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Schwarze 2007-11-19 22:10:01 UTC
In port mail/qmail-scanner the Makefile does not correctly append the QS_NOTIFY value to CONFIGURE_ARGS when QS_NOTIFY has been specified with the make call. 

When QS_NOTIFY is not specified, the Makefile defaults will be used, when it is specified, the Makefile does not append "--notify ..." to CONFIGURE_ARGS and the defaults of the configure script are used.

For instance, if the notifications should only be sent to the admin ( make QS_NOTIFY=admin ), the result of the build process is as if configure was called with "--notify psender,precips" instead of "--notify admin".

Fix: (See patch file)

After these lines in Makefile:

.if !defined(QS_NOTIFY)
CONFIGURE_ARGS+=        --notify psender,precips
.endif

add these lines:

.if defined(QS_NOTIFY)
CONFIGURE_ARGS+=        --notify "${QS_NOTIFY}"
.endif


Patch attached with submission follows:
How-To-Repeat: Run "make QS_NOTIFY=admin". Run "grep NOTIFY_ADDRS work/qmail-scanner-2.01/qmail-scanner-queue.pl" - the first line will read "my $NOTIFY_ADDRS='psender,nmlvadm'". It should be "my $NOTIFY_ADDRS='admin'"
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-19 22:10:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Felippe de Meirelles Motta 2007-11-20 13:33:04 UTC
Edwin Groothuis escreveu:
> Maintainer of mail/qmail-scanner,
> 
> Please note that PR ports/118139 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/118139
> 

Hello Edwin,

Yes, I agree that with minor changes, follow as attach, thanks!

-- 

Atenciosamente,
Felippe de Meirelles Motta
FreeBSD Brasil LTDA.
http://www.freebsdbrasil.com.br
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2007-11-20 14:56:42 UTC
State Changed
From-To: feedback->open

Maintainer has supplied a patch in the followup.
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2007-12-15 22:22:37 UTC
State Changed
From-To: open->closed

Patch from maintainer committed.
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-12-15 22:26:05 UTC
pav         2007-12-15 22:26:01 UTC

  FreeBSD ports repository

  Modified files:
    mail/qmail-scanner   Makefile 
  Log:
  - Properly pass QS_USER, QS_ADMIN and QS_NOTIFY values to configure script
  
  PR:             ports/118139
  Submitted by:   Rainer Schwarze <rsc@admadic.de>,
                  Felippe de Meirelles Motta <lippe@freebsdbrasil.com.br> (maintainer) (patch used)
  
  Revision  Changes    Path
  1.19      +5 -3      ports/mail/qmail-scanner/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"