Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 33345 | Differences between
and this patch

Collapse All | Expand All

(-)zaptel/Makefile.orig (-5 / +7 lines)
Lines 33-39 Link Here
33
INSTALL_PREFIX=
33
INSTALL_PREFIX=
34
34
35
BUILDVER=$(shell if uname -r | grep -q ^2.6; then echo "linux26"; else echo "linux24"; fi)
35
BUILDVER=$(shell if uname -r | grep -q ^2.6; then echo "linux26"; else echo "linux24"; fi)
36
MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modprobe.d ]; then echo "$(INSTALL_PREFIX)/etc/modprobe.d/zaptel"; elif [ -d $(INSTALL_PREFIX)/etc/modutils ]; then echo "$(INSTALL_PREFIX)/etc/modutils/zaptel"; elif [ -f $(INSTALL_PREFIX)/etc/modprobe.conf ]; then echo "$(INSTALL_PREFIX)/modprobe.conf"; elif [ -f $(INSTALL_PREFIX)/etc/modules.conf ]; then echo "$(INSTALL_PREFIX)/etc/modules.conf"; else echo $(INSTALL_PREFIX)/etc/conf.modules ; fi)
36
# Patch for Gentoo, uses modules.d
37
MODCONF=$(INSTALL_PREFIX)/etc/modules.d/zaptel
37
38
38
ifeq (${BUILDVER},linux24)
39
ifeq (${BUILDVER},linux24)
39
#We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4
40
#We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4
Lines 264-269 Link Here
264
	install -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include
265
	install -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include
265
	( cd $(INSTALL_PREFIX)/usr/lib ; rm -f libtonezone.so ; ln -sf $(LIBTONEZONE) libtonezone.so )
266
	( cd $(INSTALL_PREFIX)/usr/lib ; rm -f libtonezone.so ; ln -sf $(LIBTONEZONE) libtonezone.so )
266
	/sbin/ldconfig
267
	/sbin/ldconfig
268
	mkdir -p $(INSTALL_PREFIX)/etc/modules.d
267
	if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi
269
	if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi
268
	cat $(MODCONF).bak | grep -v "alias char-major-250" | \
270
	cat $(MODCONF).bak | grep -v "alias char-major-250" | \
269
	grep -v "post-install torisa /sbin/ztcfg" | \
271
	grep -v "post-install torisa /sbin/ztcfg" | \
Lines 288-297 Link Here
288
		fi; \
290
		fi; \
289
	done
291
	done
290
292
291
	if [ -d /etc/modutils ]; then \
293
	#if [ -d /etc/modutils ]; then \
292
		/sbin/update-modules ; \
294
	#	/sbin/update-modules ; \
293
	fi
295
	#fi
294
	-/sbin/depmod -a
296
	#-/sbin/depmod -a
295
	[ -f $(INSTALL_PREFIX)/etc/zaptel.conf ] || install -m 644 zaptel.conf.sample $(INSTALL_PREFIX)/etc/zaptel.conf
297
	[ -f $(INSTALL_PREFIX)/etc/zaptel.conf ] || install -m 644 zaptel.conf.sample $(INSTALL_PREFIX)/etc/zaptel.conf
296
298
297
config:
299
config:

Return to bug 33345