ChangeLog

# ChangeLog for mail-mta/xmail
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/ChangeLog,v 1.24 2007/10/28 14:03:22 phreak Exp $

28 Oct 2007; Christian Heim xmail-1.22.ebuild:
Include virtual/logger in RDEPEND, as the initscript already specifies 'need
logger'.

22 Apr 2007; Andrej Kacian xmail-1.22.ebuild:
Use newinitd, newconfd and doenvd. Bug #174266.

18 Mar 2007; Marius Mauch xmail-1.22.ebuild:
Replacing einfo with elog

22 Feb 2007; Piotr Jaroszyński ChangeLog:
Transition to Manifest2.

13 Sep 2006; -xmail-1.16-r1.ebuild, -xmail-1.20.ebuild,
-xmail-1.21.ebuild:
Security-wise cleanup. See bug #140514.

27 Apr 2006; Marien Zwart files/digest-xmail-1.16-r1,
files/digest-xmail-1.20, files/digest-xmail-1.21, files/digest-xmail-1.22,
Manifest:
Fixing SHA256 digest, pass four

12 Dec 2005; Andrea Barisani xmail-1.22.ebuild:
Stable on x86.

*xmail-1.22 (10 Dec 2005)

10 Dec 2005; Andrea Barisani +xmail-1.22.ebuild:
New version, fixes security issue CAN-2005-2943. Bug #109381.

23 Aug 2005; Andrej Kacian xmail-1.16-r1.ebuild,
xmail-1.20.ebuild, xmail-1.21.ebuild:
Use -1 for shell argument to enewuser. Bug #103421.

11 Jul 2005; Andrej Kacian xmail-1.21.ebuild:
Stable on x86. Closes bug #97405, reported by Brian Dilks speakeasy.net>.

29 Jun 2005; Tuấn Văn xmail-1.21.ebuild:
Fix issues in bug #96632. Thanks to Jakub Moc for
the patch.

06 Jun 2005; Andrej Kacian -xmail-1.16.ebuild:
Removed 1.16.

06 Jun 2005; Andrej Kacian files/xmail.initd:
Fixed sed command in the initscript. Bug #91141, by hotmail.com>.

*xmail-1.21 (27 Jan 2005)

27 Jan 2005; Aaron Kulbe +xmail-1.21.ebuild:
Version bump to 1.21.

06 Dec 2004; Andrej Kacian xmail-1.16-r1.ebuild,
xmail-1.20.ebuild:
Stable on x86.

23 Oct 2004; Jason Wever xmail-1.20.ebuild:
Added ~sparc keyword.

01 Jul 2004; Jeremy Huddleston xmail-1.16-r1.ebuild,
xmail-1.16.ebuild, xmail-1.20.ebuild:
virtual/glibc -> virtual/libc

*xmail-1.20 (28 Jun 2004)

28 Jun 2004; Cory Visi xmail-1.20.ebuild:
version bump from 1.16-r1 to 1.20

*xmail-1.16-r1 (28 Jun 2004)

28 Jun 2004; Cory Visi xmail-1.16-r1.ebuild:
Fixes for Bug 25530, some contributions from Sergey Ivanov


04 Jun 2004; David Holm xmail-1.16.ebuild:
Added to ~ppc.

*xmail-1.16 (30 May 2004)

30 May 2004; Robin H. Johnson metadata.xml,
xmail-1.16.ebuild, files/15xmail, files/xmail.confd, files/xmail.initd,
files/xmailwizard:
Moved from net-mail/xmail to mail-mta/xmail.

25 Feb 2004; Jason Wever xmail-1.16.ebuild:
Added patch from bug #42771 so xmail builds again on sparc.

15 Dec 2003; files/xmail.initd:
QA: fixing chown user.group to user:group, bug #35127

17 Oct 2003; Nick Hadaway xmail-1.16.ebuild:
Marked stable for x86.

27 Jul 2003; Nick Hadaway :
Okay... both are now REALLY set to 29617.

25 Jul 2003; Nick Hadaway files/xmailwizard:
Changed port 6017 to 29617 in the wizard to match the confd defaults.

23 Jul 2003; Nick Hadaway files/xmail.initd,
files/xmail.confd:
Made changes to the initd file as suggested on bug #24923.
Thanks to Sergey Ivanov for working out the quirks with this build.
Added a warn to postinst about needing iptables enabled in the kernel.

*xmail-1.16 (21 Jul 2003)

21 Jul 2003; Nick Hadaway xmail-1.16.ebuild:
Version bump. Also fixed files/* so that there aren't any cr-lf
remnants. Made xmailwizard executable.

*xmail-1.15 (26 May 2003)

10 Jun 2003; Nick Hadaway xmail-1.15.ebuild:
Moved the useradd/groupadd routine to pkg_setup and added the
PROVIDE="virtual/mta"

09 Jun 2003; Nick Hadaway xmail-1.15.ebuild:
Commented out the interactive portion of the ebuild and updated the
groupadd/useradd portion.

26 May 2003; Sergey Ivanov xmail-1.15.ebuild,
xmail-1.15.ebuild, xmail.initd, xmail.confd, xmailwizard:
Files updated to chroot XMail into /chroot/xmail, running as unprivileged user

*XMail-1.14 (21 Mar 2003)

21 Mar 2003; Kevin Williams xmail-1.12.ebuild, files/xmailwizard, files/xmail.initd, files/xmail.confd, files/15xmail :
ENV.D file for MAIL_ROOT variable,
CONF.D file for XMail configuration,
INIT.D script greatly simplified, uses CONF.D file variables,
automated configuration script - separated from ebuild

07 Apr 2003; Sergey Ivanov xmail-1.12-r0.ebuild,
xmail-1.14-r0.ebuild, xmail.diff:
Update ebuild and patch to be independent of version numbers.

*XMail-1.12 (07 Feb 2003)

18 Feb 2003; Kevin Williams xmail-1.12.ebuild, xmail.diff:
Initial import.

11 Mar 2003; Sergey Ivanov xmail-1.12.ebuild, xmail.diff
Updated ebuild and start/stop script to start and stop it by it's own
control functions

13 Mar 2003; Sergey Ivanov xmail-1.12.ebuild, xmail.diff
Updated ebuild and start/stop script to according to debian's directory
structure of XMail mailserver, thanks to Radim Kolar ,
see http://home.worldonline.cz/~cz210552/xmail.html

18 Mar 2003; Sergey Ivanov xmail-1.12-r0.ebuild
Fix some mistakes in interactive configure script of xmail and move mailboxes
from /etc/xmail to /var/mail.

Manifest

AUX 15xmail 24 RMD160 a756268e37cbdd188a502d3576c0ca5ff3852d7d SHA1 2d9cf706a23aae2d048bcad5cbdc00300748cc1d SHA256 6c72de94a699d62ef739e22436e7437b0303ba1a4b40046936ce72018b064975
AUX xmail.confd 409 RMD160 2cf30115bcc0b013e43b2038312a8d24b5416597 SHA1 8f64b3164715fbac8343e670d529ad086237d4b2 SHA256 071618249229a7842132211603e43a94be5914f9f166fdc6ff2c689b719d07b8
AUX xmail.initd 2802 RMD160 90a4c9336f59a69c14199df90d4b821f4dd5ebba SHA1 4be3c0825190092e7bd39bfaf9ffb1d0a37816ad SHA256 96c75cd53053978e2faccb79e442bc2b1fceab763be4214fc59f930d0a157efa
AUX xmailwizard 2299 RMD160 513eb4b212c7aa469115f17beee9e2975194955a SHA1 87153804c243157aa27633c5da548a3cb8a159c4 SHA256 2373801cb55185483f5aeb143e2f475c5d6c913645f132f23b1bd600ee66309b
DIST xmail-1.22.tar.gz 416738 RMD160 a5496326ef8b8fa6adc834b2f36727849150ed46 SHA1 f57d2c01a050eca3cd9de096c071a1658ace6830 SHA256 bbf4bf4be7fb50c5bb37533370c103e65f4dddb65d0a4885025a7294381adac6
EBUILD xmail-1.22.ebuild 4216 RMD160 efde2c7efe4b114d83442c521a0987feeb35e8ff SHA1 ad556e43d38b33fa45f1a55505a5e25ed8ae7d71 SHA256 0152c6d1b8b88cc88efea5983af103660e9fc66e985baa4af37e6a9ce4e106b6
MISC ChangeLog 6074 RMD160 6bb7cdcd5fedfb5aeab0d3888a260531dc98bc68 SHA1 43f2df70a3a7ba32619dc343531068b30708a9f0 SHA256 4344d83d2ffd333541204ba9a85742de1fc52001ccd5a357d700a0a7b3b0d39b
MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32

files

metadata.xml




net-mail

xmail-1.22.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.22.ebuild,v 1.6 2007/10/28 14:03:22 phreak Exp $

inherit eutils linux-info

DESCRIPTION="The world's fastest email server"
HOMEPAGE="http://www.xmailserver.org/"
SRC_URI="http://www.xmailserver.org/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc"
IUSE=""

DEPEND="virtual/libc
>=sys-apps/sed-4"
RDEPEND="net-firewall/iptables
virtual/logger"
PROVIDE="virtual/mta"

pkg_setup() {

linux-info_pkg_setup

if ! (linux_chkconfig_present NETFILTER); then
eerror "${P} requires netfilter/iptables support enabled in kernel!"
eerror
eerror "Recompile your kernel with CONFIG_NETFILTER and CONFIG_IP_NF_TARGET_REDIRECT"
eerror "support enabled and reboot. Then try to emerge ${P} again."
die "Kernel without CONFIG_NETFILTER detected!"
fi

if ! (linux_chkconfig_present IP_NF_TARGET_REDIRECT); then
eerror "${P} requires CONFIG_IP_NF_TARGET_REDIRECT support to be enabled in kernel!"
eerror "Recompile your kernel with netfilter REDIRECT target support enabled."
eerror
eerror "Reboot will be required if compiled directly into kernel."
eerror "If reboot is not desired you should choose a module instead and run"
eerror "make modules && make modules_install"
die "Kernel without CONFIG_IP_NF_TARGET_REDIRECT detected!"
fi

enewgroup xmail
enewuser xmail -1 -1 /dev/null xmail
}

src_compile() {
sed -i -e "s:^CFLAGS = -O2:CFLAGS=$CFLAGS:g" Makefile.lnx

# Makefile does not setup dependencies properly to handle parallel build
emake -j1 -f Makefile.lnx || die

sed -e "s:/var/MailRoot:/chroot/xmail/var/MailRoot:g" sendmail.sh > sendmail.sh.new
}

src_install() {
einfo "Setting up directory hierarchy"
diropts -m 700 -o xmail -g xmail
dodir /etc/xmail
keepdir /chroot/xmail/var/MailRoot/bin
dodir /etc/xmail/tabindex
dodir /etc/xmail/dnscache/mx
dodir /etc/xmail/dnscache/ns
dodir /etc/xmail/spool/local
dodir /etc/xmail/spool/temp
dodir /etc/xmail/logs

for i in cmdaliases custdomains domains filters pop3linklocks\
pop3links pop3locks userauth
do
keepdir /etc/xmail/${i}
done

for i in pop3 smtp
do
keepdir /etc/xmail/userauth/${i}
done
rm -f ${D}/etc/xmail/userauth/.keep

einfo "Installing the XMail initial configuration"
insopts -o xmail -g xmail -m 600
cd ${S}/MailRoot
insinto /etc/xmail
doins server.tab ctrl.ipmap.tab dnsroots finger.ipmap.tab\
message.id pop3.ipmap.tab smtp.ipmap.tab\
userdef.tab

for i in mailusers extaliases domains mailusers aliases \
aliasdomain extaliases pop3links smtpauth smtpextauth \
smtpfwd smtprelay smtpgw spam-address spammers ctrlaccounts \
filters.in filters.out
do
touch ${D}/etc/xmail/${i}.tab
fowners xmail:xmail /etc/xmail/${i}.tab
fperms 600 /etc/xmail/${i}.tab
done

einfo "Installing the XMail documentation"
dodoc ${S}/docs/*
dodoc ${S}/gpl.txt
dodoc ${S}/ToDo.txt

einfo "Installing the XMail software"
doenvd ${FILESDIR}/15xmail
newinitd ${FILESDIR}/xmail.initd xmail
newconfd ${FILESDIR}/xmail.confd xmail
cd ${S}/bin
exeopts -o xmail -g xmail -m 4700
exeinto /usr/sbin
newexe sendmail sendmail.xmail
exeopts -o root -g root -m 755
newexe ../sendmail.sh.new sendmail
exeopts -o xmail -g xmail -m 700
exeinto /chroot/xmail/var/MailRoot/bin
doexe CtrlClnt XMail XMCrypt MkUsers
}

pkg_postinst() {
rm -f /etc/xmail/cmdaliases/.keep
rm -f /etc/xmail/custdomains/.keep
rm -f /etc/xmail/domains/.keep
rm -f /etc/xmail/filters/.keep
rm -f /etc/xmail/pop3linklocks/.keep
rm -f /etc/xmail/pop3links/.keep
rm -f /etc/xmail/pop3locks/.keep
rm -f /etc/xmail/userauth/pop3/.keep
rm -f /etc/xmail/userauth/smtp/.keep

#read -n 1 -p "Do you want to configure XMail now (y/n)? " YESNO
#echo ""
#if [ $YESNO == 'Y' -o $YESNO == 'y' ] ; then
# sh ${FILESDIR}/xmailwizard
#else
# einfo "You can quickly configure XMail by running ${FILESDIR}/xmailwizard."
#fi

elog "You can quickly configure XMail by running ${FILESDIR}/xmailwizard."

ewarn
ewarn "Make sure you have iptables/netfilter with connection tracking"
ewarn "and the REDIRECT target enabled in your kernel!"
ewarn
}