diff -Nura zaptel-1.2.11/build_tools/genmodconf zaptel-1.2.11.gentoo/build_tools/genmodconf --- zaptel-1.2.11/build_tools/genmodconf 2006-05-23 14:51:00.000000000 -0300 +++ zaptel-1.2.11.gentoo/build_tools/genmodconf 2006-11-14 11:54:53.624386476 -0300 @@ -79,20 +79,6 @@ echo Building ${target}... -if [ "${1}" == "linux24" ]; then - for mod in ${3}; do - if ! grep -q "post-install ${mod} " ${target}; then - echo "post-install ${mod} /sbin/ztcfg" >> ${target} - fi - done -elif [ "${1}" == "linux26" ]; then - for mod in ${3}; do - if ! grep -q "install ${mod} " ${target}; then - echo "install ${mod} /sbin/modprobe --ignore-install ${mod} ${cmdopts} && /sbin/ztcfg" >> ${target} - fi - done -fi - if ! grep -q "alias wcfxs" ${target}; then echo "alias wcfxs wctdm" >> ${target}; fi; diff -Nura zaptel-1.2.11/build_tools/genudevrules zaptel-1.2.11.gentoo/build_tools/genudevrules --- zaptel-1.2.11/build_tools/genudevrules 2006-05-17 13:49:46.000000000 -0300 +++ zaptel-1.2.11.gentoo/build_tools/genudevrules 2006-11-14 11:54:53.625386224 -0300 @@ -22,9 +22,9 @@ cat < $(INSTALL_PREFIX)/etc/udev/rules.d/zaptel.rules + build_tools/genudevrules > zaptel.rules + install -D -m 644 zaptel.rules $(INSTALL_PREFIX)/etc/udev/rules.d/10-zaptel.rules else # !UDEVRULES @echo "**** Dynamic filesystem detected -- not creating device nodes" endif @@ -314,7 +315,7 @@ tar -zxf mISDNuser.tar.gz $(MAKE) -C mISDNuser install -install: all devices firmware +install: devices firmware install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg if [ -f sethdlc-new ]; then \ install -D -m 755 sethdlc-new $(INSTALL_PREFIX)/sbin/sethdlc; \ @@ -337,24 +338,21 @@ fi; \ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxs.o install -D -m 755 $(LIBTONEZONE_SO) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) - [ `id -u` = 0 ] && /sbin/ldconfig || : + [ `id -u` = 0 ] && /sbin/ldconfig -n $(INSTALL_PREFIX)/usr/lib || : rm -f $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO) - if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE_SO); fi install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h - install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8 - install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8 - [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || : + install -d $(INSTALL_PREFIX)/usr/share/man/man8 + install -m 644 doc/ztcfg.8 $(INSTALL_PREFIX)/usr/share/man/man8/ + install -m 644 doc/zttool.8 $(INSTALL_PREFIX)/usr/share/man/man8/ [ -f $(CONFIG_FILE) ] || install -D -m 644 zaptel.conf.sample $(CONFIG_FILE) + install -d -m 755 $(INSTALL_PREFIX)/etc/modules.d build_tools/genmodconf $(BUILDVER) "$(INSTALL_PREFIX)" "$(filter-out zaptel,$(MODULES))" - @if [ -d /etc/modutils ]; then \ - /sbin/update-modules ; \ - fi install-udev: devices