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

(-)/usr/portage/net-misc/zaptel/zaptel-1.2.11.ebuild (-5 / +18 lines)
Lines 83-93 Link Here
83
	einfo "Running pre-flight checks..."
83
	einfo "Running pre-flight checks..."
84
84
85
	# basic zaptel checks
85
	# basic zaptel checks
86
	if ! linux_chkconfig_present CRC_CCITT; then
86
	if kernel_is 2 4 ; then
87
		echo
87
        if ! linux_chkconfig_present CRC32; then
88
		eerror "Your kernel lacks CRC_CCIT support!"
88
			echo
89
		eerror "Enable CONFIG_CRC_CCIT!"
89
			eerror "Your kernel lacks CRC32 support!"
90
		result=$((result+1))
90
			eerror "Enable CONFIG_CRC32!"
91
			result=$((result+1))
92
		fi
93
	else
94
		if ! linux_chkconfig_present CRC_CCITT; then
95
			echo
96
			eerror "Your kernel lacks CRC_CCIT support!"
97
			eerror "Enable CONFIG_CRC_CCIT!"
98
			result=$((result+1))
99
		fi
91
	fi
100
	fi
92
101
93
	# check if multiple echo cancellers have been selected
102
	# check if multiple echo cancellers have been selected
Lines 257-262 Link Here
257
}
266
}
258
267
259
src_install() {
268
src_install() {
269
	if kernel_is 2 4 ; then
270
		insinto /etc
271
	    cp /etc/modules.conf ${D}/etc
272
	fi
260
	make INSTALL_PREFIX=${D} ARCH=$(tc-arch-kernel) \
273
	make INSTALL_PREFIX=${D} ARCH=$(tc-arch-kernel) \
261
	     KVERS=${KV_FULL} KSRC=/usr/src/linux install || die
274
	     KVERS=${KV_FULL} KSRC=/usr/src/linux install || die
262
275

Return to bug 155604