Configure script changed.
This commit is contained in:
parent
800d30f899
commit
b9010efd42
1
Makefile
1
Makefile
|
@ -17,7 +17,6 @@ install:
|
||||||
install -d ${DESTDIR}/${PREFIX}/share/snail
|
install -d ${DESTDIR}/${PREFIX}/share/snail
|
||||||
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d
|
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d
|
||||||
install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d
|
install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d
|
||||||
install -d ${DESTDIR}/${PREFIX}/lib/snail/modules
|
|
||||||
install -d ${DESTDIR}/${PREFIX}/lib/snail/extensions
|
install -d ${DESTDIR}/${PREFIX}/lib/snail/extensions
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
|
@ -81,22 +81,57 @@ echo "DISTRIB_DESCRIPTION=$DISTRIB_DESCRIPTION"
|
||||||
echo "DISTRIB_RELEASE=$DISTRIB_RELEASE"
|
echo "DISTRIB_RELEASE=$DISTRIB_RELEASE"
|
||||||
echo "DISTRIB_CODENAME=$DISTRIB_CODENAME"
|
echo "DISTRIB_CODENAME=$DISTRIB_CODENAME"
|
||||||
|
|
||||||
echo "Configuring OpenGL libraries and nVidia GLX extensions"
|
echo "Copying system init scripts to /etc/init.d and start snail-watcher"
|
||||||
if [ "gentoo" == "$DISTRIB_ID" ]; then
|
SNAIL_INIT_D_PATH=/usr/share/snail/init.d
|
||||||
|
case "$DISTRIB_ID" in
|
||||||
|
"gentoo")
|
||||||
|
cp -f $SNAIL_INIT_D_PATH/snail-watcher.openrc /etc/init.d/snail-watcher
|
||||||
|
cp -f $SNAIL_INIT_D_PATH/snail-xserver.openrc /etc/init.d/snail-xserver
|
||||||
|
eselect rc delete snail-xserver boot default
|
||||||
|
eselect rc delete snail-watcher boot
|
||||||
|
eselect rc add snail-watcher default
|
||||||
|
eselect rc stop snail-xserver
|
||||||
|
eselect rc restart snail-watcher
|
||||||
|
;;
|
||||||
|
|
||||||
|
"debian")
|
||||||
|
cp -f $SNAIL_INIT_D_PATH/snail-watcher.sysv /etc/init.d/snail-watcher
|
||||||
|
cp -f $SNAIL_INIT_D_PATH/snail-xserver.sysv /etc/init.d/snail-xserver
|
||||||
|
update-rc.d snail-watcher defaults
|
||||||
|
/etc/init.d/snail-watcher start
|
||||||
|
;;
|
||||||
|
|
||||||
|
"fedora")
|
||||||
|
echo ""
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "No rules for Your distribution. Please make a bug report."
|
||||||
|
exit -1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "Configuring kernel modules and OpenGL libraries"
|
||||||
|
case "$DISTRIB_ID" in
|
||||||
|
"gentoo")
|
||||||
eselect opengl set xorg-x11
|
eselect opengl set xorg-x11
|
||||||
for arch in 32bit 64bit; do
|
for arch in 32bit 64bit; do
|
||||||
for chip in i915 i965 r300 r600 sw; do
|
for chip in i915 i965 r300 r600 sw; do
|
||||||
eselect mesa set $arch $chip classic &>/dev/null;
|
eselect mesa set $arch $chip classic &>/dev/null;
|
||||||
done;
|
done;
|
||||||
done
|
done
|
||||||
echo "Adding snail-watcher to default"
|
ln -sf /usr/lib/xorg/modules/extensions/libdbe.so /usr/lib/snail/extensions/libdbe.so
|
||||||
eselect rc delete snail-xserver boot default
|
ln -sf /usr/lib/xorg/modules/extensions/libdri.so /usr/lib/snail/extensions/libdri.so
|
||||||
eselect rc delete snail-watcher boot
|
ln -sf /usr/lib/xorg/modules/extensions/libdri2.so /usr/lib/snail/extensions/libdri2.so
|
||||||
eselect rc add snail-watcher default
|
ln -sf /usr/lib/xorg/modules/extensions/libextmod.so /usr/lib/snail/extensions/libextmod.so
|
||||||
eselect rc stop snail-xserver
|
ln -sf /usr/lib/xorg/modules/extensions/librecord.so /usr/lib/snail/extensions/librecord.so
|
||||||
eselect rc restart snail-watcher
|
ln -sf /usr/lib/opengl/nvidia/extensions/libglx.so /usr/lib/snail/extensions/libglx.so
|
||||||
|
ln -sf /usr/lib/opengl/nvidia/lib/libGL.so /usr/lib/snail/libGL.so
|
||||||
|
ln -sf /usr/lib/opengl/nvidia/lib/libnvidia-tls.so /usr/lib/snail/libnvidia-tls.so
|
||||||
grep acpi_call /etc/conf.d/modules || echo 'modules="${modules} acpi_call' >> /etc/conf.d/modules
|
grep acpi_call /etc/conf.d/modules || echo 'modules="${modules} acpi_call' >> /etc/conf.d/modules
|
||||||
elif [ "debian" == "$DISTRIB_ID" ]; then
|
;;
|
||||||
|
|
||||||
|
"debian")
|
||||||
grep '^acpi_call$' /etc/modules || echo acpi_call >> /etc/modules
|
grep '^acpi_call$' /etc/modules || echo acpi_call >> /etc/modules
|
||||||
rm -f /usr/lib64/xorg/modules/extensions/libglx.so
|
rm -f /usr/lib64/xorg/modules/extensions/libglx.so
|
||||||
ln -sf /usr/lib64/xorg/modules/extensions/libglx.so.* /usr/lib64/snail/modules/extensions/libglx.so
|
ln -sf /usr/lib64/xorg/modules/extensions/libglx.so.* /usr/lib64/snail/modules/extensions/libglx.so
|
||||||
|
@ -112,14 +147,17 @@ elif [ "debian" == "$DISTRIB_ID" ]; then
|
||||||
apt-get install --reinstall libgl1-mesa-glx
|
apt-get install --reinstall libgl1-mesa-glx
|
||||||
mv -f /tmp/libGL.so.* /usr/lib64
|
mv -f /tmp/libGL.so.* /usr/lib64
|
||||||
fi
|
fi
|
||||||
update-rc.d snail-watcher defaults
|
;;
|
||||||
/etc/init.d/snail-watcher start
|
|
||||||
elif [ "fedora" == "$DISTRIB_ID" ]; then
|
"fedora")
|
||||||
echo ""
|
echo ""
|
||||||
else
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
echo "No rules for Your distribution. Please make a bug report."
|
echo "No rules for Your distribution. Please make a bug report."
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "Creating backups of original xorg.conf.* files and replacing with snail's versions..."
|
echo "Creating backups of original xorg.conf.* files and replacing with snail's versions..."
|
||||||
[[ -f /etc/X11/xorg.conf && ! -f /etc/X11/xorg.conf.snail-bkp ]] && mv /etc/X11/xorg.conf /etc/X11/xorg.conf.snail-bkp
|
[[ -f /etc/X11/xorg.conf && ! -f /etc/X11/xorg.conf.snail-bkp ]] && mv /etc/X11/xorg.conf /etc/X11/xorg.conf.snail-bkp
|
||||||
|
|
Loading…
Reference in New Issue