# $Id: dm-x86.spec,v 1.20 2001/05/03 19:00:56 elafo Exp $ %define version 3.9 %define build 53 %define release_txt DM version %{version} [Build %{build}] Summary: NetWinder DM x86 Linux setup Name: dm-x86 Version: %{version} Release: %{build} Copyright: GPL Group: System Environment/Base ExclusiveArch: i386 i486 i586 i686 BuildRoot: /var/tmp/dm-root %description NetWinder DM x86 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 * Thu May 03 2001 Eric LaForest - release 53 (sync with base) * Mon Apr 02 2001 Eric LaForest - release 49, sync with base. * Fri Mar 09 2001 Eric LaForest - release 47 (vers. sync with base rpm) * Thu Mar 01 2001 Eric LaForest - release 43 * Thu Feb 22 2001 Eric LaForest - release 40 addendums to release 39 (more 'chkconfig --del's) * Wed Feb 21 2001 Eric LaForest - release 39 added a bunch of chkconfig disables * Thu Feb 15 2001 Eric LaForest - release 38 * Tue Feb 13 2001 Eric LaForest - release 37 disable xfs * Fri Jan 05 2001 Eric LaForest - release 36 * Tue Jan 02 2001 Eric LaForest - release 35 to match base upgrades * Thu Dec 21 2000 Eric LaForest - release 34 to match base upgrades * Wed Dec 20 2000 Eric LaForest - release 33 to match base upgrades * Tue Dec 19 2000 Eric LaForest - release 32 to match base upgrades * Mon Dec 18 2000 Eric LaForest - release 31 to match base upgrades * Fri Dec 08 2000 Eric LaForest - port to x86, release 28 * Wed Dec 06 2000 Eric LaForest - security updates, release 27 * Tue Dec 05 2000 Rod m. Stewart - disable the following services by default: autofs atalk httpd lpd - disable the following from /etc/inetd.conf by default: login, telnet, talk, ntalk, shell, finger - do not put sendmail in daemon mode. It will only handle local mail. * Fri Nov 24 2000 Eric LaForest - release 26 (missed #25) * Tue Nov 21 2000 Eric LaForest - release 24, many upgrades and new packages. * Wed Nov 15 2000 Eric LaForest - placed tabs for indentation, fixing some breakage with heredocs. release 23 * Sat Nov 11 2000 Rod m. Stewart - disable squid and sshd at boot if installed * Fri Nov 10 2000 Eric LaForest - Oops...some stuff got lost in retiring dm-devel. added here. * Wed Nov 08 2000 Eric LaForest - release 20 and 21 to go with base new binutils * Sun Nov 05 2000 Eric LaForest - build 19 cleanup of stuff that goes in base, almost nothing left. * Fri Oct 13 2000 Eric LaForest - perm fix for /dev/ttyS* (Build 18 to be) * Fri Sep 29 2000 Eric LaForest - Build 17 (new perl and setup) * Tue Sep 05 2000 Eric LaForest - Build 16 (new dhcp and final beta) * Fri Sep 01 2000 Eric LaForest - Build 15 after fixes. * Fri Aug 25 2000 Eric LaForest - 3.9-14 (after a zillion upgrades) * Wed Aug 09 2000 Eric LaForest - version 3.9-13 * Wed Aug 02 2000 Eric LaForest - Initial update to approx. RH 6.2 (build 12) Version 3.9-12 (11 went nowhere) * 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 Mar 22 2000 Rod m. Stewart - new version 3.9-9 * Sun Mar 19 2000 Rod m. Stewart - new version 3.9-8 * Fri Mar 03 2000 Rod m. Stewart - new version 3.9-7 * Tue Feb 15 2000 Rod m. Stewart - pre release stuff for DM 4.0 preperations * Wed Apr 14 1999 Andrew E. Mileski - merged netwinder-release and *.kludges into this mess %install # # Clean up, just in case # rm -rf %{buildroot} %post # # /etc/.pwd.lock will not go away :( # rm -rf /etc/.pwd.lock # # egcs # #if [ -e /usr/bin/gcc ] ; then # if [ ! -e /usr/bin/egcs ] ; then # ln -fs /usr/bin/gcc /usr/bin/egcs # fi #fi # # strip # only make the change if strip.real does not already exists. # # NOTE: make sure those are TABs, not spaces, due to <<-'EOF' # if [ -e /usr/bin/strip ] ; then if [ ! /usr/bin/strip.real ] ; then mv -f /usr/bin/strip /usr/bin/strip.real cat > /usr/bin/strip <<-'EOF' #! /bin/sh /usr/bin/strip.real $* exit 0 EOF chmod 755 /usr/bin/strip fi fi # # Permanently disable xfs at boot except for level 5 # if [ -e /etc/rc.d/init.d/xfs ] ; then chkconfig --del xfs chkconfig --level 5 xfs on fi # # Disable MySQL at boot (not configured yet) # if [ -e /etc/rc.d/init.d/mysql ] ; then chkconfig --del mysql fi # # Disable PostgreSQL at boot (not configured yet) # if [ -e /etc/rc.d/init.d/postgresql ] ; then chkconfig --del postgresql fi # # Disable Squid at boot # if [ -e /etc/rc.d/init.d/squid ] ; then chkconfig --del squid fi # # Disable SSHd at boot (should not be enabled until hostname is set) # if [ -e /etc/rc.d/init.d/sshd ] ; then chkconfig --del sshd fi # # Disable autofs at boot # if [ -e /etc/rc.d/init.d/autofs ] ; then chkconfig --del autofs fi # # Disable atalk at boot # if [ -e /etc/rc.d/init.d/atalk ] ; then chkconfig --del atalk fi # # Disable httpd at boot # if [ -e /etc/rc.d/init.d/httpd ] ; then chkconfig --del httpd fi # # Disable lpd at boot # if [ -e /etc/rc.d/init.d/lpd ] ; then chkconfig --del lpd fi # # Disable diald at boot # if [ -e /etc/rc.d/init.d/diald ] ; then chkconfig --del diald fi # # Disable krb5server at boot # if [ -e /etc/rc.d/init.d/krb5server ] ; then chkconfig --del krb5server fi # # Disable snmpd at boot # if [ -e /etc/rc.d/init.d/snmpd ] ; then chkconfig --del snmpd fi # # Disable irda at boot # if [ -e /etc/rc.d/init.d/irda ] ; then chkconfig --del irda fi # # Disable rstatd at boot # if [ -e /etc/rc.d/init.d/rstatd ] ; then chkconfig --del rstatd fi # # Disable rusersd at boot # if [ -e /etc/rc.d/init.d/rusersd ] ; then chkconfig --del rusersd fi # # Disable rwalld at boot # if [ -e /etc/rc.d/init.d/rwalld ] ; then chkconfig --del rwalld fi # # xdm (our X is old - it is started from inittab) # if [ -e /etc/rc.d/init.d/xdm ] ; then chkconfig --del xdm && rm -f /etc/rc.d/init.d/xdm fi # Some things we do not want to run by default from inetd sed -e 's|^shell|#shell|' \ -e 's|^login|#login|' \ -e 's|^telnet|#telnet|' \ -e 's|^talk|#talk|' \ -e 's|^ntalk|#ntalk|' \ -e 's|^finger|#finger|' /etc/inetd.conf > /etc/inetd.conf- mv -f /etc/inetd.conf- /etc/inetd.conf # # Take sendmail out of daemon mode. This way it only listens for # local mail. # if [ -e /etc/sysconfig/sendmail ] ; then sed -e 's|DAEMON=yes|DAEMON=no|' /etc/sysconfig/sendmail \ > /etc/sysconfig/sendmail- mv -f /etc/sysconfig/sendmail- /etc/sysconfig/sendmail fi # # /etc/redhat-release # #mkdir -p %{buildroot}/etc cd /etc cat > redhat-release <