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

(-)/var/repositories/gentoo/net-misc/l7-filter/l7-filter-2.13.ebuild (-7 / +32 lines)
Lines 19-24 Link Here
19
S=${WORKDIR}/${MY_P}
19
S=${WORKDIR}/${MY_P}
20
RDEPEND="net-misc/l7-protocols"
20
RDEPEND="net-misc/l7-protocols"
21
21
22
kernel_warning() {
23
	ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org"
24
	ewarn "This only patches the current kernel source code. (${KV_DIR})"
25
	ewarn "Its up to you to recompile the kernel with the l7 options"
26
	ewarn
27
	ewarn "You will also need to emerge iptables with the \"extensions\" or"
28
	ewarn "\"l7filter\" USE flag (depend which version of iptables you emerge)"
29
}
30
31
nf_ct_acct_check() {
32
	ebegin "Checking for Connection tracking flow accounting support"
33
	linux_chkconfig_present NF_CT_ACCT
34
	eend $?
35
36
	if [[ $? -ne 0 ]] ; then
37
		ewarn "To successfully build the l7 patched kernel you need"
38
		ewarn "Connection tracking flow accounting support."
39
		ewarn 
40
		ewarn "Please enable Connection tracking flow accounting support"
41
		ewarn "in your kernel config, found at:"
42
		ewarn
43
		ewarn "  Networking"
44
		ewarn "    Networking Options"
45
		ewarn "      Network packet filtering framework (Netfilter)"
46
		ewarn "        Core Netfilter Configuration"
47
		ewarn "          [*] Connection tracking flow accounting"
48
	fi
49
}
50
22
which_patch() {
51
which_patch() {
23
	if kernel_is ge 2 6 22
52
	if kernel_is ge 2 6 22
24
	then
53
	then
Lines 55-61 Link Here
55
pkg_setup() {
84
pkg_setup() {
56
	linux-info_pkg_setup
85
	linux-info_pkg_setup
57
	pkg_preinstall
86
	pkg_preinstall
58
	pkg_postinst
87
	kernel_warning
59
}
88
}
60
89
61
src_unpack() {
90
src_unpack() {
Lines 137-148 Link Here
137
}
166
}
138
167
139
pkg_postinst() {
168
pkg_postinst() {
140
	ewarn "This may not work with all kernels. If it does not work please enter a bug at bugs.gentoo.org"
169
	kernel_warning
141
	ewarn "This only patches the current kernel source code. (${KV_DIR})"
170
	nf_ct_acct_check
142
	ewarn "Its up to you to recompile the kernel with the l7 options"
143
	ewarn
144
	ewarn 'You will also need to emerge iptables with the "extensions" or'
145
	ewarn '"l7filter" USE flag (depend which version of iptables you emerge)'
146
}
171
}
147
172
148
#
173
#

Return to bug 193748