# $Id: dm.spec,v 1.89 2000/11/07 16:38:24 stewart Exp $ %define version 3.2 %define build 1 #define beta 8 #define release_txt DM version %{version} [Build %{build} public %{beta}] %define release_txt DM version %{version} [Build %{build}] Summary: NetWinder DM ARM Linux setup Name: dm Version: %{version} Release: %{build} Copyright: GPL Group: System Environment/Base ExclusiveArch: armv4l BuildRoot: /var/tmp/dm-root Source0: welcome.au Source1: bye.au %description NetWinder DM ARM Linux requires configuration after RPMS are installed, since we don't use a standard Red Hat installation program (which would do these changes for us). %changelog * Wed May 11 2000 Eric LaForest - Updated to 3.2-1 * Mon May 08 2000 Rod m. Stewart - Correction: IPX is protocal family 4, whereas appletalk is 5 * Tue Apr 25 2000 Rod m. Stewart - move sound module config to to kudzu package - fix fan_ctrl handling - new version 3.9-10 * Wed Apr 14 1999 Andrew E. Mileski - merged netwinder-release and *.kludges into this mess %install # # Clean up, just in case # rm -rf %{buildroot} # # /dev/fb* # mkdir -p %{buildroot}/dev cd %{buildroot}/dev mknod fb0 c 29 0 ln -s fb0 fb0current # # /dev/flash # /dev/nwflash # mkdir -p %{buildroot}/dev cd %{buildroot}/dev mknod nwflash c 10 160 ln -s nwflash flash # # /dev/modem # mkdir -p %{buildroot}/dev cd %{buildroot}/dev ln -sf ttyS0 modem # # /dev/mouse # /etc/sysconfig/mouse # Assume a PS2 mouse # mkdir -p %{buildroot}/dev cd %{buildroot}/dev ln -sf psaux mouse mkdir -p %{buildroot}/etc/sysconfig cd %{buildroot}/etc/sysconfig cat > mouse < modules.conf < fstab < /dev/hda1 / ext2 defaults 1 1 /dev/hda2 none swap swap 0 0 /dev/hda3 /usr ext2 defaults 1 2 none /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 EOF # # /etc/hosts # mkdir -p %{buildroot}/etc cd %{buildroot}/etc cat > hosts < redhat-release < resolv.conf < network < /usr/X11R6 # This really belongs in dm-devel, but by the time that is installed # it is too late :( # mkdir -p %{buildroot}/usr cd %{buildroot}/usr ln -s X11R6 X11 %post # # Exit if we were here once before. This may change to be on a # kludge-by-kludge basis in the future. # if [ -e /etc/.done_dm_post ] ; then exit /etc/.done_dm_post fi # # Set root password to "vnc" # /usr/sbin/pwconv echo root:vnc |chpasswd rm -f /etc/.pwd.lock # # Add pretty ls # cat >> /etc/bashrc <> login.defs < logrotate.conf # # Force less to display latin1 # sed -e '/^export/i\ \ # Force less to display latin1\ LESSCHARSET=latin1\ s/export/export LESSCHARSET/ ' /etc/profile > /tmp/$$ cp -f /tmp/$$ /etc/profile rm -f /tmp/$$ # # Add decent PATH to /etc/profile # sed -e 's#^PATH=.*#PATH=$HOME/bin:$HOME/bin/`uname -m`:/usr/local/bin:/usr/bin:/bin:/usr/X11/bin:/usr/local/sbin:/usr/sbin:/sbin#' /etc/profile > /tmp/$$ cp -f /tmp/$$ /etc/profile rm -f /tmp/$$ # # Disable auto-logout # cat >> /etc/profile <<'EOF' # Disable auto-logout unset TMOUT EOF # # Sounds # cat >> /etc/rc.d/rc.local < /dev/audio & EOF # # /proc/sys/net/ipv4/ip_always_defrag kludge # cd /etc/rc.d/init.d cp -af network network.rpmsave sed -e '/^\( ipv4_defrag_set\)/s/^/#\1/' network.rpmsave > network # # /etc/rc.d/rc.sysinit # cat >> /etc/rc.d/rc.sysinit <<'EOF' # # Spin the fan up # [ -x /usr/sbin/fan_ctrl ] && /usr/sbin/fan_ctrl start [ -x /sbin/fan_ctrl ] && /sbin/fan_ctrl start EOF # # /etc/sysconfig/clock # cat > /etc/sysconfig/clock < default.kmap # # rpmrc kludge # if [ -f /usr/lib/rpm/rpmrc ] ; then sed -e 's/^\(optflags: armv4.\).*$/\1 -O3 -fsigned-char -s -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -pipe/' /usr/lib/rpm/rpmrc > /tmp/$$ cp -f /tmp/$$ /usr/lib/rpm/rpmrc rm -f /tmp/$$ fi # # Done - mark that we were here # echo 0 >/etc/.done_dm_post %clean rm -rf %{buildroot} %files %attr(0600,root,root) /dev/fb0 %attr(-,root,root) /dev/fb0current %attr(-,root,root) /dev/flash %attr(-,root,root) /dev/modem %attr(-,root,root) /dev/mouse %attr(0600,root,root) /dev/nwbutton %attr(0600,root,root) /dev/nwdebug %attr(0600,root,root) /dev/nwflash %attr(0644,root,root) /dev/temperature %attr(0600,root,root) /dev/watchdog %attr(0644,root,root) /etc/bye.au %attr(0644,root,root) %config /etc/modules.conf %attr(0644,root,root) %config /etc/fstab %attr(0644,root,root) %config /etc/hosts %attr(0644,root,root) %config /etc/mtab %attr(0644,root,root) %config /etc/redhat-release %attr(0644,root,root) %config /etc/resolv.conf %attr(0755,root,root) %dir /etc/skel/bin %attr(0755,root,root) %dir /etc/skel/bin/%{_arch} %attr(0755,root,root) %dir /etc/skel/public_html %attr(0644,root,root) %config /etc/sysconfig/mouse %attr(0644,root,root) %config /etc/sysconfig/network %attr(0644,root,root) /etc/welcome.au %attr(-,root,root) /usr/X11