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
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.)
Created attachment 33402 [details, diff] xmail-1.16.ebuild.diff
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.)
xmail-1.16-r1 and xmail-1.20 now in portage. Please test!