summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2005-06-29 21:12:17 +0000
committerTuan Van <langthang@gentoo.org>2005-06-29 21:12:17 +0000
commit996749fc5455c4417cdd13b55a866843c0b1cf42 (patch)
tree3036d08aff269b5a8f512423ef9fb8cac93f7b55 /mail-mta
parentRevert udev back to 054; update unionfs code. (diff)
downloadgentoo-2-996749fc5455c4417cdd13b55a866843c0b1cf42.tar.gz
gentoo-2-996749fc5455c4417cdd13b55a866843c0b1cf42.tar.bz2
gentoo-2-996749fc5455c4417cdd13b55a866843c0b1cf42.zip
Fix issues in bug #96632. Thanks to Jakub Moc <jakub@gentoo.org> for the patch.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/xmail/ChangeLog6
-rw-r--r--mail-mta/xmail/xmail-1.21.ebuild26
2 files changed, 29 insertions, 3 deletions
diff --git a/mail-mta/xmail/ChangeLog b/mail-mta/xmail/ChangeLog
index 194a3ab14365..79532c35c3d6 100644
--- a/mail-mta/xmail/ChangeLog
+++ b/mail-mta/xmail/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/xmail
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/ChangeLog,v 1.12 2005/06/06 13:25:38 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/ChangeLog,v 1.13 2005/06/29 21:12:17 langthang Exp $
+
+ 29 Jun 2005; Tuấn Văn <langthang@gentoo.org> xmail-1.21.ebuild:
+ Fix issues in bug #96632. Thanks to Jakub Moc <jakub@gentoo.org> for
+ the patch.
06 Jun 2005; Andrej Kacian <ticho@gentoo.org> -xmail-1.16.ebuild:
Removed 1.16.
diff --git a/mail-mta/xmail/xmail-1.21.ebuild b/mail-mta/xmail/xmail-1.21.ebuild
index 1e2dd9b49b50..c81af601ace7 100644
--- a/mail-mta/xmail/xmail-1.21.ebuild
+++ b/mail-mta/xmail/xmail-1.21.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.21.ebuild,v 1.1 2005/01/27 17:25:35 superlag Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.21.ebuild,v 1.2 2005/06/29 21:12:17 langthang Exp $
-inherit eutils
+inherit eutils linux-info
DESCRIPTION="The world's fastest email server"
HOMEPAGE="http://www.xmailserver.org/"
@@ -15,9 +15,31 @@ IUSE=""
DEPEND="virtual/libc
>=sys-apps/sed-4"
+RDEPEND="net-firewall/iptables"
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 /bin/false /dev/null xmail
}