Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25530 - XMail's sendmail does not work
Summary: XMail's sendmail does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-29 14:27 UTC by sergey ivanov
Modified: 2004-06-28 14:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xmail-1.16.ebuild.diff (xmail-1.16.ebuild.diff,3.04 KB, patch)
2004-06-16 16:47 UTC, Cory Visi (RETIRED)
Details | Diff
xmail-1.20.ebuild.diff (xmail-1.20.ebuild.diff,1.08 KB, patch)
2004-06-16 16:48 UTC, Cory Visi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sergey ivanov 2003-07-29 14:27:13 UTC
There are two things to fix before it will works. 

1)xmail-1.16.ebuild may be fixed  by the following patch:
====
--- /usr/portage/net-mail/xmail/xmail-1.16.ebuild       2003-07-23
23:14:17.000000000 -0400
+++ /usr/local/portage/net-mail/xmail/xmail-1.16.ebuild        2003-07-29
08:07:53.000000000 -0400
@@ -29,7 +29,7 @@

 src_compile() {
        emake -f Makefile.lnx || die
-       sed -e "s:/var/MailRoot:/etc/xmail:g" sendmail.sh > sendmail.sh.new
+       sed -e "s:/var/MailRoot:/chroot/xmai/var/MailRoot:g" sendmail.sh >
sendmail.sh.new
 }

 src_install() {
====
As a quickfix you may edit /usr/sbin/sendmail to change
 s:/etc/xmail:/chroot/xmail/var/MailRoot:

2) Although there in ebuild /usr/sbin/sendmail.xmail is intended to be installed
with suid bit and having xmail ownership, it is installed with root ownership
and without suid bit. So it does not works until you do:
# chown xmail.xmail /usr/sbin/sendmail.xmail
# chmod 4755 /usr/sbin/sendmail.xmail
I do not understand what is wrong in ebuild's lines:
====
        insopts -o xmail -g xmail -m 4700
        newsbin sendmail sendmail.xmail
====

       Sergey
Comment 1 Cory Visi (RETIRED) gentoo-dev 2004-06-16 16:46:42 UTC
Sergey, interesting ebuild! Not one to jump into hastily, as I almost did.

I managed to fix this bug and a little more. Please take a look at the changes. Here's what I did:

- blocked parallel builds (broken Makefile)
- added CFLAGS via sed (Makefile will clobber commandline variable)
- fixed sed on sendmail.sh (this bug)
- fixed permissions on various directories and files
- made use of keepdir instead of touch .keep
- fixed permissions on sendmail.xmail (this bug)
- removed umasks
- fixed pkg_postinst warning to be more clear

Also, (very exciting haha) I included a diff to bump the version up to 1.20!
It looks like they may have dropped sparc Linux support, though. Either that, or they merged the two Makefiles. I cannot test anything except x86 unfortunately.

There shouldn't be any backwards compatibility issues. Please test and let me know (diffs attached.)
Comment 2 Cory Visi (RETIRED) gentoo-dev 2004-06-16 16:47:56 UTC
Created attachment 33402 [details, diff]
xmail-1.16.ebuild.diff
Comment 3 Cory Visi (RETIRED) gentoo-dev 2004-06-16 16:48:42 UTC
Created attachment 33403 [details, diff]
xmail-1.20.ebuild.diff

Please note, this is an incremental patch (from xmail-1.16.ebuild.diff included
in this bug.)
Comment 4 Cory Visi (RETIRED) gentoo-dev 2004-06-28 14:31:17 UTC
xmail-1.16-r1 and xmail-1.20 now in portage. Please test!