Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 96632
Collapse All | Expand All

(-)xmail-1.21.ebuild.orig (-1 / +23 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.21.ebuild,v 1.1 2005/01/27 17:25:35 superlag Exp $
3
# $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/xmail-1.21.ebuild,v 1.1 2005/01/27 17:25:35 superlag Exp $
4
4
5
inherit eutils
5
inherit eutils linux-info
6
6
7
DESCRIPTION="The world's fastest email server"
7
DESCRIPTION="The world's fastest email server"
8
HOMEPAGE="http://www.xmailserver.org/"
8
HOMEPAGE="http://www.xmailserver.org/"
Lines 15-23 Link Here
15
15
16
DEPEND="virtual/libc
16
DEPEND="virtual/libc
17
	>=sys-apps/sed-4"
17
	>=sys-apps/sed-4"
18
RDEPEND="net-firewall/iptables"
18
PROVIDE="virtual/mta"
19
PROVIDE="virtual/mta"
19
20
20
pkg_setup() {
21
pkg_setup() {
22
23
	linux-info_pkg_setup
24
	
25
	if ! (linux_chkconfig_present NETFILTER); then
26
		eerror "${P} requires netfilter/iptables support enabled in kernel!"
27
		eerror
28
		eerror "Recompile your kernel with CONFIG_NETFILTER and CONFIG_IP_NF_TARGET_REDIRECT"
29
		eerror "support enabled and reboot. Then try to emerge ${P} again."
30
		die "Kernel without CONFIG_NETFILTER detected!"
31
	fi
32
	
33
	if ! (linux_chkconfig_present IP_NF_TARGET_REDIRECT); then
34
		eerror "${P} requires CONFIG_IP_NF_TARGET_REDIRECT support to be enabled in kernel!"
35
		eerror "Recompile your kernel with netfilter REDIRECT target support enabled."
36
		eerror
37
		eerror "Reboot will be required if compiled directly into kernel."
38
		eerror "If reboot is not desired you should choose a module instead and run"
39
		eerror "make modules && make modules_install"
40
    		die "Kernel without CONFIG_IP_NF_TARGET_REDIRECT detected!"
41
	fi
42
	
21
	enewgroup xmail
43
	enewgroup xmail
22
	enewuser xmail -1 /bin/false /dev/null xmail
44
	enewuser xmail -1 /bin/false /dev/null xmail
23
}
45
}

Return to bug 96632