Bug 93523 - [Patch] mail/sympa5 : mailwrapper path in alias_manager.pl is not correct
Summary: [Patch] mail/sympa5 : mailwrapper path in alias_manager.pl is not correct
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: Vasil Dimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 11:30 UTC by Jean-François BOEUF
Modified: 2006-03-09 06:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-François BOEUF 2006-02-18 11:30:11 UTC
Perl script /usr/local/sbin/alias_manager.pl tries to run /usr/local/bin/aliaswrapper in order to update sendmail alias database, but it can't because the file does  not exist. So alias database can't be updated properly after adding or removing a mailing list. The right path to alias_wrapper is /usr/local/libexec/sympa/aliaswrapper.

Fix: this file (mail/sympa5/files/patch-src-alias_manager.pl) patching alias_manager.pl should correct the path :

new file : patch-src-alias_manager.pl
==============================================================


-my $alias_wrapper = '--MAILERPROGDIR--/aliaswrapper';
+my $alias_wrapper = '--LIBEXECDIR--/aliaswrapper';
 my $lock_file = '--EXPL_DIR--/alias_manager.lock';
 my $default_domain;
 my $path_to_queue = '--MAILERPROGDIR--/queue';--D7oTXs5b9jhOka3AM8OH3ldtQMNRqZGI6wPEYPcOpHMhic7B
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- src/alias_manager.pl  Tue Aug  9 09:02:35 2005
+++ src/alias_manager.pl Sat Feb 18 01:51:52 2006
@@ -43,7 +43,7 @@
 my $tmp_alias_file = $Conf{'tmpdir'}.'/sympa_aliases.'.time;
How-To-Repeat: Install mail/sympa5. Create a mailing list. You can read in log fils :
" admin::install_aliases : Unable to run newaliases "
The mailing list is not usable until you manualy run newaliases on the system. The problem is similar when updating or removing a list.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-02-18 11:32:11 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Olivier Girard 2006-03-06 09:03:04 UTC
Edwin Groothuis a écrit :
> Maintainer of mail/sympa5,
> 
> Please note that PR ports/93523 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/93523
> 
Hope it's not too late, i agree with this patch.

I will send this patch to Sympa Team for integration in future releases.
Comment 3 Vasil Dimov freebsd_committer freebsd_triage 2006-03-06 09:17:45 UTC
State Changed
From-To: feedback->open

I will take it, maintainer approved 


Comment 4 Vasil Dimov freebsd_committer freebsd_triage 2006-03-06 09:17:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vd

I will take it, maintainer approved
Comment 5 Vasil Dimov freebsd_committer freebsd_triage 2006-03-09 06:00:58 UTC
State Changed
From-To: open->closed

Patch added, thanks!